Module: TkBindCore
Instance Method Summary collapse
- #bind(context, *args, &block) ⇒ Object
- #bind_append(context, *args, &block) ⇒ Object
- #bind_remove(context) ⇒ Object
- #bindinfo(context = nil) ⇒ Object
Instance Method Details
#bind(context, *args, &block) ⇒ Object
3260 3261 3262 3263 3264 3265 3266 3267 3268 |
# File 'lib/tk.rb', line 3260 def bind(context, *args, &block) # if args[0].kind_of?(Proc) || args[0].kind_of?(Method) if TkComm._callback_entry?(args[0]) || !block cmd = args.shift else cmd = block end Tk.bind(self, context, cmd, *args) end |
#bind_append(context, *args, &block) ⇒ Object
3270 3271 3272 3273 3274 3275 3276 3277 3278 |
# File 'lib/tk.rb', line 3270 def bind_append(context, *args, &block) # if args[0].kind_of?(Proc) || args[0].kind_of?(Method) if TkComm._callback_entry?(args[0]) || !block cmd = args.shift else cmd = block end Tk.bind_append(self, context, cmd, *args) end |
#bind_remove(context) ⇒ Object
3280 3281 3282 |
# File 'lib/tk.rb', line 3280 def bind_remove(context) Tk.bind_remove(self, context) end |