ui.option_menu

ui.option_menu(**kwargs)

New in metview-python version 1.9.0.

Defines an option menu (combobox) widget to be used in ui.dialog().

Parameters
  • name (str) – parameter name

  • values (list, default: ["a", "b", "c"]) – list of values

  • default (default: "a") – default value

  • beautify (bool, default: True) – beautifies values appearing in the widget

  • help ({"help_script"}, default: None) – creates a helper button with a given helper action in the widget.

  • help_script_command (str) – defines the shell command to be executed when help is “help_script”

Return type

object to be used in ui.dialog()

Note

See also ui.dialog()