diplomat.wx_gui.labeler_lib.SettingWidget

class diplomat.wx_gui.labeler_lib.SettingWidget[source]

Bases: ABC

Represents a setting that can be configured by the user via a wx Control.

__init__()

Methods

__init__()

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.

abstract 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.

abstract 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.

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

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