PyDocs

Nav

Graphical user interfaces with Tk

OptionMenu

tkinter

class
  • OptionMenu(master, variable, value, *values, **kwargs)
A helper subclass of Menubutton that displays a pop-up menu of mutually exclusive choices. variable is a Variable kept in sync with the selection, value is the initial choice, and values are the remaining menu entries. The keyword argument command may be given a callback that is invoked with the selected value, and the keyword argument name sets the Tk widget name.
Changed in 3.14
  • 3.14: Added support for the name keyword argument.
Members of OptionMenu

d

destroy
Destroy the widget, also cleaning up the associated pop-up menu.
0 Examples
No examples for tkinter/OptionMenu.
See Also
No see-alsos for tkinter/OptionMenu
0 Notes
No notes for OptionMenu