Trees | Indices | Help |
|
---|
|
object --+ | sip.simplewrapper --+ | sip.wrapper --+ | PyQt4.QtCore.QObject --+ | Qt.QtCore.QObject --+ | AbstractParam
Base class for all Param classes. A Param is a descriptor for storing data, which means that a single Param instance will manage the data values for multiple instances of the class that owns it. class Owner(object): data_x = IntParam() data_y = IntParam() An instance of the Owner class can be created normally, and params can be accessed as normal attributes: owner_instance = Owner() owner_instance.data_x = 4 When a Param value is set, the valueChanged signal is emitted. Params can be serialized and deserialized to and from JSON. WARNING: as descriptors, instances of this class will not behave normally if used as class variables.
|
|||
NO_VALUE NO_VALUE() |
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from Inherited from Inherited from Inherited from |
|
|||
DataClass = None hash(x) |
|||
Inherited from |
|
|||
|
x.__init__(...) initializes x; see help(type(x)) for signature
|
Returns the value of this param for the specific owner instance. If the value has not been set, the default value will be returned.
|
Set the value of this param for the specific owner instance.
|
Returns the default value for this param. This is method is called when this param's value is requested from an instance on which a value has not already been set. Override this method to modify the default value.
|
Gets the current value of this param for the specified instance.
|
Sets a new value for this param for the specified instance.
|
Emits the appropriate signals indicating this param has changed. A valueChanged signal is always emitted from this param. In addition, a signal on the owner instance wil also be emitted, if it exists. For example: class Owner(object): data_x = IntParam() data_y = IntParam() o = Owner() o.data_xChanged.connect(slot_func) o.data_x = 3 This will result in the slot_func being called. The signals are propogated up the chain of owner instances, so changes to nested params will signal that the parent params have changed as well. @param owner_instance: the instance on which this param is an attribute @type owner_instance: object |
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Wed Jan 25 01:18:10 2017 | http://epydoc.sourceforge.net |