All instance variables should be considered public readable except for
those prefixed with an underscore. The value property should also be considered public
writable. value is a property which will correctly notify
observers when changed.
Subclasses may define new value properties that perform conversions or
do other tasks. The data retrieved via the value property must always be
the data that should be persisted to disk for a setting.
|
|
__init__(self,
state,
name,
default,
label,
description,
persist)
Initializes all instance variables. |
source code
|
|
|
|
update(self,
setting)
Updates this setting with the default value and current value of
another setting of the same kind. |
source code
|
|
|
Setting
|
|
|
object
|
|
|
|
_setValue(self,
val)
Sets the value and notifies all observers only if the new value is
different from the old. |
source code
|
|
|
|
|
|
|
addObserver(self,
ob,
*args)
Stores a weak reference to the observer to be notified when the
value of this setting changes. |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
object
|
|
|
|
|
|
Inherited from object:
__delattr__,
__getattribute__,
__hash__,
__new__,
__reduce__,
__reduce_ex__,
__repr__,
__setattr__,
__str__
|
|
object
|
_cached
Cached value from the last save invocation
|
|
dictionary
|
_observers
Callables to notify on a value change mapped to their
arguments
|
|
object
|
_value
Arbitrary protected value of this setting.
|
|
object
|
default
Default value of the setting
|
|
string
|
description
Extended description of the setting
|
|
string
|
label
Label of the setting
|
|
string
|
name
Name of the setting
|
|
boolean
|
persist
Should this setting value be persisted to disk?
|
|
weakref.proxy to AEState.AEState
|
state
Object in which this setting resides
|