6.63. umbra.preferences

preferences.py

Platform:
Windows, Linux, Mac Os X.
Description:
This module is the main Umbra package module.
It defines various classes, methods and definitions to run, maintain and exit the Application.
The main Application object is the Umbra class.

Others:

6.63.1. Module Attributes

umbra.preferences.LOGGER

6.63.2. Classes

class umbra.preferences.Preferences(file=None)[source]

Bases: object

This class provides methods to manipulate Application preferences / settings.
Those are stored and retrieved using a QSettings class.
Parameters:file – Current preferences file path. ( String )
file[source]

This method is the property for self.__file attribute.

Returns:self.__file. ( String )
settings[source]

This method is the property for self.__settings attribute.

Returns:self.__settings. ( QSettings )
defaultSettings[source]

This method is the property for self.__defaultSettings attribute.

Returns:self.__defaultSettings. ( QSettings )
defaultLayoutsSettings[source]

This method is the property for self.__defaultLayoutsSettings attribute.

Returns:self.__defaultLayoutsSettings. ( QSettings )
setKey(section, key, value)[source]

This method stores given key in settings file.

Parameters:
  • section – Current section to save the key into. ( String )
  • key – Current key to save. ( String )
  • value – Current key value to save. ( Object )
getKey(section, key)[source]

This method gets key value from settings file.

Parameters:
  • section – Current section to retrieve key from. ( String )
  • key – Current key to retrieve. ( String )
Returns:

Current key value. ( Object )

keyExists(section, key)[source]

This method checks if given key exists.

Parameters:
  • section – Current section to check key in. ( String )
  • key – Current key to check. ( String )
Returns:

Key existence. ( Boolean )

setDefaultPreferences()[source]

This method defines the default settings file content.

Returns:Method success. ( Boolean )
setDefaultLayouts(ignoredLayouts=None)[source]

This method sets the default layouts in the preferences file.

Parameters:ignoredLayouts – Ignored layouts. ( Tuple / List )
Returns:Method success. ( Boolean )

Table Of Contents

Previous topic

6.62. umbra.managers.patchesManager

Next topic

6.64. umbra.processing

This Page