Package qubx_macro_r :: Module qubx_plugin :: Class OptToolData
[hide private]
[frames] | no frames]

Class OptToolData

source code

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

Caches last-used data until changed.

Instance Methods [hide private]
 
__init__(self, get_data_prep)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
set_use_group(self, x) source code
 
__onChangeIdl(self, *args) source code
 
__onChangeFileList(self, *args) source code
 
__onSetFileList(self, i, field_name, val, prev, undoing) source code
 
__onChangeStimulus(self, *args) source code
 
__onSwitchDataFile(self, Data, file) source code
 
__onSetConstant(self, r, field, val, prev, undoing) 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]
  use_group

Inherited from object: __class__

Method Details [hide private]

__init__(self, get_data_prep)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) 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)

Property Details [hide private]

use_group

Get Method:
unreachable(self)
Set Method:
unreachable(self, x)