module TkBindCore

Public Instance Methods

bind(context, *args, &block) click to toggle source
# File lib/tk.rb, line 3259
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) click to toggle source
# File lib/tk.rb, line 3269
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) click to toggle source
# File lib/tk.rb, line 3279
def bind_remove(context)
  Tk.bind_remove(self, context)
end
bindinfo(context=nil) click to toggle source
# File lib/tk.rb, line 3283
def bindinfo(context=nil)
  Tk.bindinfo(self, context)
end