appJar can remember various GUI settings, and restore them on launch.
appJar will store the following settings:
[GEOM] # geometry = string - size, location # fullscreen = True/False # minsize = string - x,y # state = string - withdrawn/zoomed [TOOLBAR] # pinned = True/False [TOGGLES] # name = True/False [TABS] # name = selected tab [PAGES] # name = selected page [SUBWINDOWS] # name = True/False [SUBWINDOW_NAME] # geometry = string - size, location # fullscreen = True/False # minsize = string - x,y # state = string - withdrawn/zoomed [EXTERNAL] # name = value
Set this flag to
Truein the constructor to enable settings.
This will cause them to be loaded & saved automatically.
This function can be called manually if you want to load settings at a later time.
An alternative file can be specified.
useSettingsis set to False, appjar won't save the settings back at the end.
This will save the current settings, with an optional file name.
This allows you to request a user setting of the specified name.
If no setting is found, the
defaultvalue will be returned.
This will store the named setting, with the specified value.
You must make sure settings are being saved, for this to take effect.
Command Line Arguments
It's possible to switch on settings from the command line.
Simply use the
-s flag, with an optional file name:
python3 themes.py -s # turn on settings
Turn on settings, with a specified filename:
python3 themes.py -s myFile.txt # turn on settings with a specified filename