Method: TkBgError.set_handler
- Defined in:
- ext/lib/tk/bgerror.rb
.set_handler(hdlr = Proc.new) ⇒ Object
> handler :: proc{|msg| …body… }
19 20 21 |
# File 'ext/lib/tk/bgerror.rb', line 19 def set_handler(hdlr = Proc.new) #==> handler :: proc{|msg| ...body... } tk_call('proc', 'bgerror', 'msg', install_cmd(hdlr) + ' $msg') end |