diplomat.wx_gui.labeler_lib.SettingCollection

class diplomat.wx_gui.labeler_lib.SettingCollection(**values)[source]

Bases: object

Represents a collection of named SettingWidgets. Widget values can be extacted from the ui using get_values.

__init__(**values)[source]

Create a new Setting Collection.

Parameters:

values – A set of keyword arguments, the name of the argument is the name of the setting, and the value should be a SettingWidget.

Methods

__init__(**values)

Create a new Setting Collection.

get_values()

Get the values of all of the settings.

get_values() Config[source]

Get the values of all of the settings.

Returns:

A Config object, or a dictionary with attribute style lookup of the settings in this SettingCollection. The names match those pased to the constructor, and the values are the values currently stored in the SettingWidgets…