call_settings

Contains the programming logic for the settings window in the GUI.

class eldonationtracker.call_settings.MyForm(participant_conf, tracker)

Bases: PyQt5.QtWidgets.QDialog

Class for the settings Window.

persistent_save()

Use xdg_config, saves a persistent config to the XDG spot.

reload_config()

Reload the values from the config file.

Called by gui.py before loading the settings window.

revert()

Revert the values in the settings window.

If the user made mistakes while editing the config this will take them back to the values since they opened the window.

save()

Save the values in the window to participant.conf.

Calls the write_config method from extralife_IO.ParticipantConf.

eldonationtracker.call_settings.main(participant_conf)

Launch the window.