Method: Tk::BWidget::LabelEntry#entrybind

Defined in:
lib/tkextlib/bwidget/labelentry.rb

#entrybind(context, *args) ⇒ Object

def entrybind(*args)

_bind([path, 'bind'], *args)
self

end



45
46
47
48
49
50
51
52
53
54
# File 'lib/tkextlib/bwidget/labelentry.rb', line 45

def entrybind(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
  _bind([path, 'bind'], context, cmd, *args)
  self
end