Package Camelot :: Package camelot :: Package view :: Package model_thread :: Module no_thread_model_thread :: Class NoThreadModelThread |
[frames] | no frames]

# Class NoThreadModelThread

source code

Instance Methods
__init__(self, setup_thread=<function setup_model at 0x95a4224>) x.__init__(...) initializes x; see x.__class__.__doc__ for signature | source code
start(self) | source code
post(self, request, response=None, exception=None) Post a request to the model thread, request should be a function that takes no arguments. The request function will be called within the model thread. When the request is finished, on first occasion, the response function will be called within the gui thread. The response function takes as arguments, the results of the request function. @param request: function to be called within the model thread @param response: a slot that will be called with the result of the request function @param exception: a slot that will be called in case request throws an exception | source code
wait_on_work(self) Wait for all work to be finished, this function should only be used to do unit testing and such, since it will block the calling thread until all work is done | source code
isRunning(self) | source code
Inherited from `PyQt4.QtCore.QObject`: `blockSignals`, `childEvent`, `children`, `connect`, `connectNotify`, `customEvent`, `deleteLater`, `destroyed`, `disconnect`, `disconnectNotify`, `dumpObjectInfo`, `dumpObjectTree`, `dynamicPropertyNames`, `emit`, `event`, `eventFilter`, `findChild`, `findChildren`, `inherits`, `installEventFilter`, `isWidgetType`, `killTimer`, `metaObject`, `moveToThread`, `objectName`, `parent`, `property`, `pyqtConfigure`, `receivers`, `removeEventFilter`, `sender`, `setObjectName`, `setParent`, `setProperty`, `signalsBlocked`, `startTimer`, `thread`, `timerEvent`, `tr`, `trUtf8` Inherited from `sip.simplewrapper`: `__delattr__`, `__getattribute__`, `__new__`, `__setattr__` Inherited from `camelot.view.model_thread.AbstractModelThread`: `busy`, `run`, `traceback` Inherited from `object`: `__format__`, `__hash__`, `__reduce__`, `__reduce_ex__`, `__repr__`, `__sizeof__`, `__str__`, `__subclasshook__`

Class Variables
Inherited from `PyQt4.QtCore.QObject`: `staticMetaObject` Inherited from `camelot.view.model_thread.AbstractModelThread`: `thread_busy_signal`

Properties
Inherited from `object`: `__class__`

Method Details

### __init__(self, setup_thread=<function setup_model at 0x95a4224>) (Constructor) | source code
x.__init__(...) initializes x; see x.__class__.__doc__ for signature Overrides: object.__init__ (inherited documentation)

### post(self, request, response=None, exception=None) | source code
Post a request to the model thread, request should be a function that takes no arguments. The request function will be called within the model thread. When the request is finished, on first occasion, the response function will be called within the gui thread. The response function takes as arguments, the results of the request function. @param request: function to be called within the model thread @param response: a slot that will be called with the result of the request function @param exception: a slot that will be called in case request throws an exception Overrides: camelot.view.model_thread.AbstractModelThread.post (inherited documentation)

### wait_on_work(self) | source code
Wait for all work to be finished, this function should only be used to do unit testing and such, since it will block the calling thread until all work is done Overrides: camelot.view.model_thread.AbstractModelThread.wait_on_work (inherited documentation)