Sha256: 255540d2149173b9b48f9c18a56dcacf7c038e40375d4f9adb397a4d62cdf02b
Contents?: true
Size: 667 Bytes
Versions: 6
Compression:
Stored size: 667 Bytes
Contents
# # tkbgerror -- bgerror ( tkerror ) module # 1998/07/16 by Hidetoshi Nagai <nagai@ai.kyutech.ac.jp> # require 'tk' module TkBgError extend Tk TkCommandNames = ['bgerror'.freeze].freeze def bgerror(message) tk_call('bgerror', message) end alias tkerror bgerror alias show bgerror module_function :bgerror, :tkerror, :show def set_handler(hdlr = Proc.new) #==> handler :: proc{|msg| ...body... } tk_call('proc', 'bgerror', 'msg', install_cmd(hdlr) + ' $msg') end def set_default begin tk_call('rename', 'bgerror', '') rescue RuntimeError end end module_function :set_handler, :set_default end
Version data entries
6 entries across 6 versions & 2 rubygems