diplomat.wx_gui.labeler_lib.SettingWidget
- class diplomat.wx_gui.labeler_lib.SettingWidget[source]
Bases:
ABCRepresents 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 the current value of this setting.
set_hook(hook)Set the hook function for this setting, this is called whenever the setting is changed.
- abstractmethod 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.