qubx :: settings :: SettingsManager :: Class SettingsManager
[hide private]
[frames] | no frames]

Class SettingsManager

source code

object --+
         |
        SettingsManager

Manager for all categories of settings.

Do not construct directly; call InitSettings() and use global SettingsMgr.

For individual category access (class Settings):

>>> category = SettingsMgr["name_of_category"]
Instance Methods [hide private]
 
__init__(self, gdir, udir)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
saveAll(self)
Saves the active settings in all categories.
source code
 
resetAll(self) source code
 
listNames(self, cat)
Returns a list of available preset names for a named category.
source code
 
save(self, props, cat, name)
Saves qubx.tree.Node props as a named preset in a category.
source code
 
load(self, cat, name)
Returns a named preset in a category as a qubx.tree.Node.
source code
 
rename(self, cat, old, new)
Changes the name of a preset in a category.
source code
 
delete(self, cat, name)
Removes a named preset from a category.
source code
 
__getitem__(self, cat) source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, gdir, udir)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)