# File tk/lib/tkextlib/iwidgets/optionmenu.rb, line 27 def delete(first, last=nil) if last tk_call(@path, 'delete', first, last) else tk_call(@path, 'delete', first) end self end
# File tk/lib/tkextlib/iwidgets/optionmenu.rb, line 36 def disable(idx) tk_call(@path, 'disable', idx) self end
# File tk/lib/tkextlib/iwidgets/optionmenu.rb, line 41 def enable(idx) tk_call(@path, 'enable', idx) self end
# File tk/lib/tkextlib/iwidgets/optionmenu.rb, line 46 def get(first=nil, last=nil) if last simplelist(tk_call(@path, 'get', first, last)) elsif first tk_call(@path, 'get', first) else tk_call(@path, 'get') end end
# File tk/lib/tkextlib/iwidgets/optionmenu.rb, line 55 def get_range(first, last) get(first, last) end
# File tk/lib/tkextlib/iwidgets/optionmenu.rb, line 58 def get_selected get() end
# File tk/lib/tkextlib/iwidgets/optionmenu.rb, line 62 def index(idx) number(tk_call(@path, 'index', idx)) end
# File tk/lib/tkextlib/iwidgets/optionmenu.rb, line 66 def insert(idx, *args) tk_call(@path, 'insert', idx, *args) self end
# File tk/lib/tkextlib/iwidgets/optionmenu.rb, line 71 def select(idx) tk_call(@path, 'select', idx) self end
# File tk/lib/tkextlib/iwidgets/optionmenu.rb, line 76 def sort(*params, &b) # see 'lsort' man page about params if b tk_call(@path, 'sort', '-command', proc(&b), *params) else tk_call(@path, 'sort', *params) end 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.