Module: TkBindCore
Instance Method Summary collapse
-
#bind(context, *args) ⇒ Object
def bind(context, cmd=Proc.new, *args) Tk.bind(self, context, cmd, *args) end.
-
#bind_append(context, *args) ⇒ Object
def bind_append(context, cmd=Proc.new, *args) Tk.bind_append(self, context, cmd, *args) end.
- #bind_remove(context) ⇒ Object
- #bindinfo(context = nil) ⇒ Object
Instance Method Details
#bind(context, *args) ⇒ Object
3133 3134 3135 3136 3137 3138 3139 3140 3141 |
# File 'lib/tk.rb', line 3133 def bind(context, *args) # if args[0].kind_of?(Proc) || args[0].kind_of?(Method) if TkComm._callback_entry?(args[0]) || !block_given? cmd = args.shift else cmd = Proc.new end Tk.bind(self, context, cmd, *args) end |
#bind_append(context, *args) ⇒ Object
3146 3147 3148 3149 3150 3151 3152 3153 3154 |
# File 'lib/tk.rb', line 3146 def bind_append(context, *args) # if args[0].kind_of?(Proc) || args[0].kind_of?(Method) if TkComm._callback_entry?(args[0]) || !block_given? cmd = args.shift else cmd = Proc.new end Tk.bind_append(self, context, cmd, *args) end |
#bind_remove(context) ⇒ Object
3156 3157 3158 |
# File 'lib/tk.rb', line 3156 def bind_remove(context) Tk.bind_remove(self, context) end |