diplomat.wx_gui.settings_dialog.SettingsDialog

class diplomat.wx_gui.settings_dialog.SettingsDialog(*args: Any, **kwargs: Any)[source]

Bases: Dialog

A dialog of settings. Allows displaying a SettingCollection to a user in a dialog.

__init__(*args, title: str = 'Settings', settings: SettingCollection, **kwargs)[source]

Create a new dialog.

Parameters:
  • title – The title of the dialog.

  • settings – The settings to display.

Additional positional and keyword arguments are passed directly to wx.Dialog constructor.

Methods

__init__(*args[, title])

Create a new dialog.

get_values()

Get the values selected by the user in the settings dialog.

get_values() Config[source]

Get the values selected by the user in the settings dialog.

Returns:

A Config object, containing the values selected by the user.