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_value()

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.

get_value() Any[source]

Get the current value of this setting.

Returns:

Any, the current set value of this setting as based on the wx control.

set_hook(hook: Callable[[str], None])[source]

Set the hook function for this setting, this is called whenever the setting is changed.