Method: Tk::BWidget::ListBox#textbind_append

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

#textbind_append(context, *args, &block) ⇒ Object



98
99
100
101
102
103
104
105
106
107
108
# File 'lib/tkextlib/bwidget/listbox.rb', line 98

def textbind_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
  _bind_append_for_event_class(Event_for_Items, [path, 'bindText'],
                               context, cmd, *args)
  self
end