cola.settings – Settings manager

This handles saving complex settings such as bookmarks, etc.

class cola.settings.SettingsManager

Manages a SettingsModel singleton

get_gui_state
Returns the state for a gui
save_gui_state
Saves settings for a cola view
settings
Returns the SettingsModel singleton
class cola.settings.SettingsModel
add_bookmark(bookmark)
Adds a bookmark to the saved settings
get_gui_state(name)
Returns the state an gui
load()
Loads settings if they exist
path()
Path to the model’s on-disk representation
remove_bookmark(bookmark)
Removes a bookmark from the saved settings
save()
Saves settings to the .cola file
set_gui_state(name, state)
Sets GUI state for a view

Previous topic

cola.resources – Resources

Next topic

cola.utils – Miscellaneous helpers

This Page

Quick search