Option Menu

Inheritance diagram of tools.optionmenu
class ShapeOptionMenu(master, variable, value, **kwargs)[source]

Custom OptionMenu which allows the user to select a value from a menu and update upon button click.

Parameters:
  • master – The widget to draw to
  • variable – A StringVar() object for displaying options
  • value (str) – The default value of the menu
  • **kwargs

    Tkinter dict args note: only supports -command

set_menu(options)[source]

Set the internal menu, this allows the program to dynamically create menus on the fly when a user clicks.

Parameters:options (list) – A list of str objects which is the new menu