Package qubx_single :: Module rates :: Class SinglePlex
[hide private]
[frames] | no frames]

Class SinglePlex

source code

          object --+    
                   |    
qubx.GTK.Requestable --+
                       |
                      SinglePlex

Instance Methods [hide private]
 
__init__(self, signals)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
__onInvalidate(self, signals) source code
 
get(self, receiver)
Override this method to compute the answer(s) and pass them via gobject; e.g.:
source code

Inherited from qubx.GTK.Requestable: invalidate, request

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

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, signals)
(Constructor)

source code 

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

Parameters:
  • get - lambda receiver: gobject.idle_add(receiver, answer_part_1, answer_part_2, ...) -- computation function to replace self.get (or you can inherit this class and override self.get)
Overrides: object.__init__
(inherited documentation)

get(self, receiver)

source code 

Override this method to compute the answer(s) and pass them via gobject; e.g.:

>>> val = 2+2
>>> val2 = 2*2
>>> gobject.idle_add(receiver, val, val2) # it's up to you how many args are passed

Alternatively, pass get=lambda receiver: ... to the constructor.

Overrides: qubx.GTK.Requestable.get
(inherited documentation)