utils.settings.SettingManager.SettingManager

class utils.settings.SettingManager.SettingManager

Bases: object

A class to manage the settings

Variables:
  • settings – The settings

  • instance – The instance of the class

Methods

createInitialSettings

get_instance

Get the instance of the class

get_last_graph

Get the last graph name for the specified slot

get_setting

Get the value of the specified setting

get_settings

Get the settings

remove_changed

Remove the changed flag

save

Save the settings to the config file

set_last_graph

Set the last graph name for the specified slot

set_setting

Set the value of the specified setting

Attributes

default_settings

instance

version

static get_instance() SettingManager

Get the instance of the class

Returns:

The instance of the class

get_last_graph(graph_number) str

Get the last graph name for the specified slot

get_setting(setting_name) any

Get the value of the specified setting

Parameters:

setting_name – The name of the setting

Returns:

The value of the setting

get_settings() dict

Get the settings

Returns:

The settings

remove_changed()

Remove the changed flag

save()

Save the settings to the config file

set_last_graph(graph_number, graph_name)

Set the last graph name for the specified slot

Parameters:
  • graph_number – The slot number

  • graph_name – The graph name

set_setting(setting_name, setting_value)

Set the value of the specified setting

Parameters:
  • setting_name – The name of the setting

  • setting_value – The value of the setting