# File tk/lib/tkextlib/tcllib/toolbar.rb, line 73 def [](key) cget key end
# File tk/lib/tkextlib/tcllib/toolbar.rb, line 77 def []=(key,val) configure key, val val end
# File tk/lib/tkextlib/tcllib/toolbar.rb, line 85 def cget(option) @t.itemcget(@id, option) end
# File tk/lib/tkextlib/tcllib/toolbar.rb, line 88 def cget_strict(option) @t.itemcget_strict(@id, option) end
# File tk/lib/tkextlib/tcllib/toolbar.rb, line 82 def cget_tkstring(option) @t.itemcget_tkstring(@id, option) end
# File tk/lib/tkextlib/tcllib/toolbar.rb, line 97 def configinfo(key=nil) @t.itemconfiginfo(@id, key) end
# File tk/lib/tkextlib/tcllib/toolbar.rb, line 92 def configure(key, value=None) @t.itemconfigure(@id, key, value) self end
# File tk/lib/tkextlib/tcllib/toolbar.rb, line 101 def current_configinfo(key=nil) @t.current_itemconfiginfo(@id, key) end
# File tk/lib/tkextlib/tcllib/toolbar.rb, line 105 def delete @t.delete(@id) end
# File tk/lib/tkextlib/tcllib/toolbar.rb, line 59 def initaialize(parent, *args) @parent = @t = parent @tpath = parent.path @path = @id = @t.tk_send('add', *args) # A same id is rejected by the Tcl function. ToolbarItemID_TBL.mutex.synchronize{ ToolbarItemID_TBL[@id] = self ToolbarItemID_TBL[@tpath] = {} unless ToolbarItemID_TBL[@tpath] ToolbarItemID_TBL[@tpath][@id] = self } end
# File tk/lib/tkextlib/tcllib/toolbar.rb, line 109 def itemid @t.itemid(@id) end
Commenting is here to help enhance the documentation. For example, sample code, 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.