Package schrodinger :: Package application :: Package msv :: Module utils :: Class BaseSignalAttribute
[hide private]
[frames] | no frames]

Class BaseSignalAttribute

object --+
         |
        BaseSignalAttribute
Known Subclasses:

A util class for handling emitting a signal while changing an attribute.

Instance Methods [hide private]
 
__init__(self, val)
x.__init__(...) initializes x; see help(type(x)) for signature
 
__get__(self, obj, objtype)
 
__set__(self, obj, val)
Sets the value for the option and emits a signal.

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

Class Variables [hide private]
  SIGNAL_NAME = ''
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, val)
(Constructor)

 

x.__init__(...) initializes x; see help(type(x)) for signature

Parameters:
  • val (Any of the built-in type, such as bool, int, float, str) - Initial value for the option.
Overrides: object.__init__

__get__(self, obj, objtype)

 
Parameters:
  • obj (Object) - Object that has the option. Not used.
  • objtype (An object, such as a class, that has the property) - Type of the object that has the option property. Not used.

__set__(self, obj, val)

 

Sets the value for the option and emits a signal.

Parameters:
  • obj (An instance of that object type.) - Object that has both the option and the signal.
  • val (Any of the built-in type, such as bool, int, float, str) - Value to be set for the option.