Package fife :: Package extensions :: Module fife_settings :: Class SettingEntry
[hide private]
[frames] | no frames]

Class SettingEntry

source code

object --+
         |
        SettingEntry

Instance Methods [hide private]
 
__init__(self, module, name, widgetname, applyfunction=None, initialdata=None, requiresrestart=False)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
initializeWidget(self, widget, currentValue)
Initialize the widget with needed data
source code
 
onApply(self, data)
Implement actions that need to be taken when the setting is changed here.
source code
 
_getModule(self) source code
 
_setModule(self, module) source code
 
_getName(self) source code
 
_setName(self, name) source code
 
_getSettingWidgetName(self) source code
 
_setSettingWidgetName(self, settingwidgetname) source code
 
_getRequiresRestart(self) source code
 
_setRequiresRestart(self, requiresrestart) source code
 
_getInitialData(self) source code
 
_setInitialData(self, initialdata) source code
 
_getApplyFunction(self) source code
 
_setApplyFunction(self, applyfunction) source code
 
__str__(self)
str(x)
source code

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

Class Variables [hide private]
  module = property(_getModule, _setModule)
  name = property(_getName, _setName)
  settingwidgetname = property(_getSettingWidgetName, _setSettin...
  requiresrestart = property(_getRequiresRestart, _setRequiresRe...
  initialdata = property(_getInitialData, _setInitialData)
  applyfunction = property(_getApplyFunction, _setApplyFunction)
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, module, name, widgetname, applyfunction=None, initialdata=None, requiresrestart=False)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Parameters:
  • module (String) - The Setting module this Entry belongs to
  • name (String) - The Setting's name
  • widgetname (String) - The name of the widget that is used to change this setting
  • applyfunction (function) - function that makes the changes when the Setting is saved
  • initialdata (String or Boolean) - If the widget supports the setInitialData() function this can be used to set the initial data
  • requiresrestart (Boolean) - Whether or not the changing of this setting requires a restart
Overrides: object.__init__

__str__(self)
(Informal representation operator)

source code 

str(x)

Overrides: object.__str__
(inherited documentation)

Class Variable Details [hide private]

settingwidgetname

Value:
property(_getSettingWidgetName, _setSettingWidgetName)

requiresrestart

Value:
property(_getRequiresRestart, _setRequiresRestart)