diplomat.wx_gui.settings_dialog.DropDown
- class diplomat.wx_gui.settings_dialog.DropDown(options: List[Any], option_names: List[str] | None = None, default: int = 0, **kwargs)[source]
Bases:
SettingWidget- __init__(options: List[Any], option_names: List[str] | None = None, default: int = 0, **kwargs)[source]
Methods
__init__(options[, option_names, default])get_new_widget([parent])Get a widget capable of changing this setting.
Get the current value of this setting.
set_hook(hook)Set the hook function for this setting, this is called whenever the setting is changed.
- get_new_widget(parent=None) wx.Control[source]
Get a widget capable of changing this setting.
- Parameters:
parent – The parent container this wxWidget will be placed in.
- Returns:
A wx.Control, to be used to update this setting in the user interface.