mosaic.parallel.TaskWorker#
- class TaskWorker(func, *args, **kwargs)[source]#
Bases:
QObject
Worker object that performs the actual task in a background thread.
Methods
__init__
(func, *args, **kwargs)Initialize the worker with the function and arguments.
blockSignals
(self, b)childEvent
(self, a0)children
(self)connectNotify
(self, signal)customEvent
(self, a0)deleteLater
(self)disconnect
(-> bool disconnect)disconnectNotify
(self, signal)dumpObjectInfo
(self)dumpObjectTree
(self)dynamicPropertyNames
(self)event
(self, a0)eventFilter
(self, a0, a1)findChild
(-> QObjectT)findChildren
(...)inherits
(self, classname)installEventFilter
(self, a0)isQuickItemType
(self)isSignalConnected
(self, signal)isWidgetType
(self)isWindowType
(self)killTimer
(self, id)metaObject
(self)moveToThread
(self, thread)objectName
(self)parent
(self)process
()Execute the function and emit signals based on the result.
property
(self, name)pyqtConfigure
(...)Each keyword argument is either the name of a Qt property or a Qt signal.
receivers
(self, signal)removeEventFilter
(self, a0)sender
(self)senderSignalIndex
(self)setObjectName
(self, name)setParent
(self, a0)setProperty
(self, name, value)signalsBlocked
(self)startTimer
(self, interval[, timerType])thread
(self)timerEvent
(self, a0)tr
(sourceText[, disambiguation, n])Attributes
destroyed
pyqtSignal(*types, name: str = ..., revision: int = ..., arguments: Sequence = ...) -> PYQT_SIGNAL
pyqtSignal(*types, name: str = ..., revision: int = ..., arguments: Sequence = ...) -> PYQT_SIGNAL
objectNameChanged
pyqtSignal(*types, name: str = ..., revision: int = ..., arguments: Sequence = ...) -> PYQT_SIGNAL
pyqtSignal(*types, name: str = ..., revision: int = ..., arguments: Sequence = ...) -> PYQT_SIGNAL
staticMetaObject
warningOccurred
pyqtSignal(*types, name: str = ..., revision: int = ..., arguments: Sequence = ...) -> PYQT_SIGNAL