# File tk/lib/tkextlib/bwidget/tree.rb, line 61 def areabind(context, *args) if TkComm._callback_entry?(args[0]) || !block_given? cmd = args.shift else cmd = Proc.new end _bind_for_event_class(Event_for_Items, [path, 'bindArea'], context, cmd, *args) self end
# File tk/lib/tkextlib/bwidget/tree.rb, line 72 def areabind_append(context, *args) 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, 'bindArea'], context, cmd, *args) self end
# File tk/lib/tkextlib/bwidget/tree.rb, line 83 def areabind_remove(*args) _bind_remove_for_event_class(Event_for_Items, [path, 'bindArea'], *args) self end
# File tk/lib/tkextlib/bwidget/tree.rb, line 88 def areabindinfo(*args) _bindinfo_for_event_class(Event_for_Items, [path, 'bindArea'], *args) end
# File tk/lib/tkextlib/bwidget/tree.rb, line 174 def close_tree(node, recurse=None) tk_send('closetree', tagid(node), recurse) self end
# File tk/lib/tkextlib/bwidget/tree.rb, line 179 def delete(*args) tk_send('delete', *(args.collect{|node| tagid(node)})) self end
# File tk/lib/tkextlib/bwidget/tree.rb, line 184 def edit(node, text, *args) tk_send('edit', tagid(node), text, *args) self end
# File tk/lib/tkextlib/bwidget/tree.rb, line 189 def exist?(node) bool(tk_send('exists', tagid(node))) end
# File tk/lib/tkextlib/bwidget/tree.rb, line 193 def find(findinfo, confine=None) Tk::BWidget::Tree::Node.id2obj(self, tk_send(findinfo, confine)) end
# File tk/lib/tkextlib/bwidget/tree.rb, line 199 def find_line(linenum) self.find(linenum) end
# File tk/lib/tkextlib/bwidget/tree.rb, line 196 def find_position(x, y, confine=None) self.find(_at(x,y), confine) end
# File tk/lib/tkextlib/bwidget/tree.rb, line 221 def get_node(node, idx) Tk::BWidget::Tree::Node.id2obj(self, tk_send('nodes', tagid(node), idx)) end
def imagebind(*args)
_bind_for_event_class(Event_for_Items, [path, 'bindImage'], *args) self
end
# File tk/lib/tkextlib/bwidget/tree.rb, line 96 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/tree.rb, line 112 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/tree.rb, line 124 def imagebind_remove(*args) _bind_remove_for_event_class(Event_for_Items, [path, 'bindImage'], *args) self end
# File tk/lib/tkextlib/bwidget/tree.rb, line 129 def imagebindinfo(*args) _bindinfo_for_event_class(Event_for_Items, [path, 'bindImage'], *args) end
# File tk/lib/tkextlib/bwidget/tree.rb, line 203 def index(node) num_or_str(tk_send('index', tagid(node))) end
# File tk/lib/tkextlib/bwidget/tree.rb, line 207 def insert(idx, parent, node, keys={}) tk_send('insert', idx, tagid(parent), tagid(node), *hash_kv(keys)) self end
# File tk/lib/tkextlib/bwidget/tree.rb, line 212 def line(node) number(tk_send('line', tagid(node))) end
# File tk/lib/tkextlib/bwidget/tree.rb, line 216 def move(parent, node, idx) tk_send('move', tagid(parent), tagid(node), idx) self end
# File tk/lib/tkextlib/bwidget/tree.rb, line 225 def nodes(node, first=None, last=None) simplelist(tk_send('nodes', tagid(node), first, last)).collect{|node| Tk::BWidget::Tree::Node.id2obj(self, node) } end
# File tk/lib/tkextlib/bwidget/tree.rb, line 231 def open?(node) bool(self.itemcget(tagid(node), 'open')) end
# File tk/lib/tkextlib/bwidget/tree.rb, line 235 def open_tree(node, recurse=None) tk_send('opentree', tagid(node), recurse) self end
# File tk/lib/tkextlib/bwidget/tree.rb, line 240 def parent(node) Tk::BWidget::Tree::Node.id2obj(self, tk_send('parent', tagid(node))) end
# File tk/lib/tkextlib/bwidget/tree.rb, line 244 def reorder(node, neworder) tk_send('reorder', tagid(node), neworder) self end
# File tk/lib/tkextlib/bwidget/tree.rb, line 249 def see(node) tk_send('see', tagid(node)) self end
# File tk/lib/tkextlib/bwidget/tree.rb, line 254 def selection_add(*args) tk_send_without_enc('selection', 'add', *(args.collect{|node| tagid(node)})) self end
# File tk/lib/tkextlib/bwidget/tree.rb, line 260 def selection_clear tk_send_without_enc('selection', 'clear') self end
# File tk/lib/tkextlib/bwidget/tree.rb, line 265 def selection_get list(tk_send_without_enc('selection', 'get')) end
# File tk/lib/tkextlib/bwidget/tree.rb, line 269 def selection_include?(*args) bool(tk_send_without_enc('selection', 'get', *(args.collect{|node| tagid(node)}))) end
# File tk/lib/tkextlib/bwidget/tree.rb, line 274 def selection_range(*args) tk_send_without_enc('selection', 'range', *(args.collect{|node| tagid(node)})) self end
# File tk/lib/tkextlib/bwidget/tree.rb, line 280 def selection_remove(*args) tk_send_without_enc('selection', 'remove', *(args.collect{|node| tagid(node)})) self end
# File tk/lib/tkextlib/bwidget/tree.rb, line 286 def selection_set(*args) tk_send_without_enc('selection', 'set', *(args.collect{|node| tagid(node)})) self end
# File tk/lib/tkextlib/bwidget/tree.rb, line 292 def selection_toggle(*args) tk_send_without_enc('selection', 'toggle', *(args.collect{|node| tagid(node)})) self end
# File tk/lib/tkextlib/bwidget/tree.rb, line 52 def tagid(tag) if tag.kind_of?(Tk::BWidget::Tree::Node) 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/tree.rb, line 137 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/tree.rb, line 153 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
# File tk/lib/tkextlib/bwidget/tree.rb, line 165 def textbind_remove(*args) _bind_remove_for_event_class(Event_for_Items, [path, 'bindText'], *args) self end
# File tk/lib/tkextlib/bwidget/tree.rb, line 170 def textbindinfo(*args) _bindinfo_for_event_class(Event_for_Items, [path, 'bindText'], *args) 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.