Method: Tk::BWidget::ListBox#imagebind

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

#imagebind(context, *args) ⇒ Object

def imagebind(*args)

_bind_for_event_class(Event_for_Items, [path, 'bindImage'], *args)
self

end



57
58
59
60
61
62
63
64
65
66
67
# File 'lib/tkextlib/bwidget/listbox.rb', line 57

def imagebind(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_for_event_class(Event_for_Items, [path, 'bindImage'],
                        context, cmd, *args)
  self
end