Package Camelot :: Package camelot :: Package view :: Package model_thread :: Module signal_slot_model_thread :: Class TaskHandler
[frames] | no frames]

Class TaskHandler

source code


A task handler is an object that handles tasks that appear in a queue, when its handle_task method is called, it will sequentially handle all tasks that are in the queue.
Instance Methods
 
__init__(self, queue)
is called
source code
 
busy(self, *args, **kwargs) source code
 
handle_task(self, *args, **kwargs)
Handle all tasks that are in the queue
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 object: __format__, __hash__, __reduce__, __reduce_ex__, __repr__, __sizeof__, __str__, __subclasshook__

Class Variables

Inherited from PyQt4.QtCore.QObject: staticMetaObject

Properties

Inherited from object: __class__

Method Details

__init__(self, queue)
(Constructor)

source code 
is called
Parameters:
  • queue - the queue from which to pop a task when handle_task
Overrides: object.__init__

busy(self, *args, **kwargs)

source code 
Decorators:
  • @synchronized

handle_task(self, *args, **kwargs)

source code 
Handle all tasks that are in the queue
Decorators:
  • @synchronized