In Files

  • tk/lib/tk.rb

Class/Module Index [+]

Quicksearch

TkBindCore

Public Instance Methods

bind(context, *args) click to toggle source

def bind(context, cmd=Proc.new, *args)

Tk.bind(self, context, cmd, *args)

end

 
               # File tk/lib/tk.rb, line 3399
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) click to toggle source

def #bind_append(context, cmd=Proc.new, *args)

Tk.bind_append(self, context, cmd, *args)

end

 
               # File tk/lib/tk.rb, line 3412
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) click to toggle source
 
               # File tk/lib/tk.rb, line 3422
def bind_remove(context)
  Tk.bind_remove(self, context)
end
            
bindinfo(context=nil) click to toggle source
 
               # File tk/lib/tk.rb, line 3426
def bindinfo(context=nil)
  Tk.bindinfo(self, context)
end