Uranium
Application Framework
 All Classes Namespaces Files Functions Variables Pages
UM.Preferences.Preferences Class Reference

Preferences are application based settings that are saved for future use. More...

Public Member Functions

def __init__
 
def addPreference
 
def setDefault
 Changes the default value of a preference. More...
 
def setValue
 
def getValue
 
def resetPreference
 
def readFromFile
 
def writeToFile
 
def getInstance
 

Static Public Attributes

int Version = 4
 
tuple preferenceChanged = Signal()
 

Detailed Description

Preferences are application based settings that are saved for future use.

Typical preferences would be window size, standard machine, etc.

Member Function Documentation

def UM.Preferences.Preferences.setDefault (   self,
  key,
  default_value 
)

Changes the default value of a preference.

If the preference is currently set to the old default, the value of the preference will be set to the new default.

Parameters
keyThe key of the preference to set the default of.
default_valueThe new default value of the preference.

The documentation for this class was generated from the following file: