# File tk/lib/tkextlib/bwidget/listbox.rb, line 135 def delete(*args) tk_send('delete', *args) self end
# File tk/lib/tkextlib/bwidget/listbox.rb, line 140 def edit(item, text, *args) tk_send('edit', tagid(item), text, *args) self end
# File tk/lib/tkextlib/bwidget/listbox.rb, line 145 def exist?(item) bool(tk_send('exists', tagid(item))) end
# File tk/lib/tkextlib/bwidget/listbox.rb, line 158 def get_item(idx) tk_send('items', idx) end
def imagebind(*args)
_bind_for_event_class(Event_for_Items, [path, 'bindImage'], *args) self
end
# File tk/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
def #imagebind_append(*args)
_bind_append_for_event_class(Event_for_Items, [path, 'bindImage'], *args) self
end
# File tk/lib/tkextlib/bwidget/listbox.rb, line 73 def imagebind_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 _bind_append_for_event_class(Event_for_Items, [path, 'bindImage'], context, cmd, *args) self end
# File tk/lib/tkextlib/bwidget/listbox.rb, line 85 def imagebind_remove(*args) _bind_remove_for_event_class(Event_for_Items, [path, 'bindImage'], *args) self end
# File tk/lib/tkextlib/bwidget/listbox.rb, line 90 def imagebindinfo(*args) _bindinfo_for_event_class(Event_for_Items, [path, 'bindImage'], *args) end
# File tk/lib/tkextlib/bwidget/listbox.rb, line 149 def index(item) num_or_str(tk_send('index', tagid(item))) end
# File tk/lib/tkextlib/bwidget/listbox.rb, line 153 def insert(idx, item, keys={}) tk_send('insert', idx, tagid(item), *hash_kv(keys)) self end
# File tk/lib/tkextlib/bwidget/listbox.rb, line 162 def items(first=None, last=None) list(tk_send('items', first, last)) end
# File tk/lib/tkextlib/bwidget/listbox.rb, line 166 def move(item, idx) tk_send('move', tagid(item), idx) self end
# File tk/lib/tkextlib/bwidget/listbox.rb, line 171 def reorder(neworder) tk_send('reorder', neworder) self end
# File tk/lib/tkextlib/bwidget/listbox.rb, line 176 def see(item) tk_send('see', tagid(item)) self end
# File tk/lib/tkextlib/bwidget/listbox.rb, line 192 def selection_add(*args) tk_send_without_enc('selection', 'add', *(args.collect{|item| tagid(item)})) self end
# File tk/lib/tkextlib/bwidget/listbox.rb, line 181 def selection_clear tk_send_without_enc('selection', 'clear') self end
# File tk/lib/tkextlib/bwidget/listbox.rb, line 204 def selection_get(*args) simplelist(tk_send_without_enc('selection', 'get')).collect{|item| Tk::BWidget::ListBox::Item.id2obj(self, item) } end
# File tk/lib/tkextlib/bwidget/listbox.rb, line 198 def selection_remove(*args) tk_send_without_enc('selection', 'remove', *(args.collect{|item| tagid(item)})) self end
# File tk/lib/tkextlib/bwidget/listbox.rb, line 186 def selection_set(*args) tk_send_without_enc('selection', 'set', *(args.collect{|item| tagid(item)})) self end
# File tk/lib/tkextlib/bwidget/listbox.rb, line 44 def tagid(tag) if tag.kind_of?(Tk::BWidget::ListBox::Item) tag.id else # tag _get_eval_string(tag) end end
def textbind(*args)
_bind_for_event_class(Event_for_Items, [path, 'bindText'], *args) self
end
# File tk/lib/tkextlib/bwidget/listbox.rb, line 98 def textbind(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, 'bindText'], context, cmd, *args) self end
def #textbind_append(*args)
_bind_append_for_event_class(Event_for_Items, [path, 'bindText'], *args) self
end
# File tk/lib/tkextlib/bwidget/listbox.rb, line 114 def textbind_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 _bind_append_for_event_class(Event_for_Items, [path, 'bindText'], context, cmd, *args) self end
Commenting is here to help enhance the documentation. For example, code samples, or clarification of the documentation.
If you have questions about Ruby or the documentation, please post to one of the Ruby mailing lists. You will get better, faster, help that way.
If you wish to post a correction of the docs, please do so, but also file bug report so that it can be corrected for the next release. Thank you.
If you want to help improve the Ruby documentation, please visit Documenting-ruby.org.