ewoksorange.bindings.taskexecutor.ThreadedTaskExecutor#
- class ewoksorange.bindings.taskexecutor.ThreadedTaskExecutor[source]#
Bases:
QThread,TaskExecutorCreate and execute an Ewoks task in a dedicated thread.
- Auto = 0#
- Eco = 2#
- High = 1#
- HighPriority = 4#
- HighestPriority = 5#
- IdlePriority = 0#
- InheritPriority = 7#
- LowPriority = 2#
- LowestPriority = 1#
- NormalPriority = 3#
- class Priority(value)#
Bases:
EnumAn enumeration.
- HighPriority = 4#
- HighestPriority = 5#
- IdlePriority = 0#
- InheritPriority = 7#
- LowPriority = 2#
- LowestPriority = 1#
- NormalPriority = 3#
- TimeCriticalPriority = 6#
- TimeCriticalPriority = 6#
- blockSignals(self, b: bool) bool#
- cancel_running_task()[source]#
cancel current processing. The targetted EwoksTask must have implemented the ‘cancel’ function
- childEvent(self, a0: QChildEvent | None)#
- children(self) list[QObject]#
- connectNotify(self, signal: QMetaMethod)#
- create_task(log_missing_inputs=False, **kwargs)#
- Parameters:
log_missing_inputs (
bool)- Return type:
None
- currentThread() QThread | None#
- currentThreadId() PyQt6.sip.voidptr | None#
- property current_task: Task | None#
- customEvent(self, a0: QEvent | None)#
- deleteLater(self)#
- destroyed#
destroyed(self, object: Optional[QObject] = None) [signal]
- disconnect(a0: QMetaObject.Connection) bool#
- disconnect(self) None
- disconnectNotify(self, signal: QMetaMethod)#
- property done: bool | None#
Returns None when the task was not or could not be instantiated
- dumpObjectInfo(self)#
- dumpObjectTree(self)#
- dynamicPropertyNames(self) list[QByteArray]#
- event(self, event: QEvent | None) bool#
- eventDispatcher(self) QAbstractEventDispatcher | None#
- eventFilter(self, a0: QObject | None, a1: QEvent | None) bool#
- property exception: Exception | None#
The instantiation exception, the execution exception or None
- exec(self) int#
- execute_task()#
- Return type:
None
- exit(self, returnCode: int = 0)#
- findChild(self, type: type[QObjectT], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) QObjectT#
- findChild(self, types: tuple[type[QObjectT], ...], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) QObjectT
- findChildren(self, type: type[QObjectT], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]#
- findChildren(self, types: tuple[type[QObjectT], ...], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
- findChildren(self, type: type[QObjectT], re: QRegularExpression, options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
- findChildren(self, types: tuple[type[QObjectT], ...], re: QRegularExpression, options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
- finished#
finished(self) [signal]
- property has_task: bool#
- idealThreadCount() int#
- inherits(self, classname: str | None) bool#
- installEventFilter(self, a0: QObject | None)#
- isCurrentThread(self) bool#
- isFinished(self) bool#
- isInterruptionRequested(self) bool#
- isMainThread() bool#
- isQuickItemType(self) bool#
- isRunning(self) bool#
- isSignalConnected(self, signal: QMetaMethod) bool#
- isWidgetType(self) bool#
- isWindowType(self) bool#
- killTimer(self, id: int)#
- loopLevel(self) int#
- metaObject(self) QMetaObject | None#
- moveToThread(self, thread: QThread | None)#
- msleep(a0: int)#
- objectName(self) str#
- objectNameChanged#
objectNameChanged(self, objectName: Optional[str]) [signal]
- property output_variables: dict | None#
- parent(self) QObject | None#
- priority(self) QThread.Priority#
- property(self, name: str | None) Any#
- pyqtConfigure(...)#
Each keyword argument is either the name of a Qt property or a Qt signal. For properties the property is set to the given value which should be of an appropriate type. For signals the signal is connected to the given value which should be a callable.
- quit(self)#
- receivers(self, signal: PYQT_SIGNAL) int#
- removeEventFilter(self, a0: QObject | None)#
- requestInterruption(self)#
- sender(self) QObject | None#
- senderSignalIndex(self) int#
- serviceLevel(self) QThread.QualityOfService#
- setEventDispatcher(self, eventDispatcher: QAbstractEventDispatcher | None)#
- setObjectName(self, name: QByteArray | bytes | bytearray | memoryview | str | None)#
- setParent(self, a0: QObject | None)#
- setPriority(self, priority: QThread.Priority)#
- setProperty(self, name: str | None, value: Any) bool#
- setServiceLevel(self, serviceLevel: QThread.QualityOfService)#
- setStackSize(self, stackSize: int)#
- setTerminationEnabled(enabled: bool = True)#
- signalsBlocked(self) bool#
- sleep(a0: int)#
- stackSize(self) int#
- start(self, priority: QThread.Priority = QThread.InheritPriority)#
- startTimer(self, interval: int, timerType: Qt.TimerType = Qt.CoarseTimer) int#
- started#
started(self) [signal]
- staticMetaObject = <PyQt6.QtCore.QMetaObject object>#
- stop(timeout=None, wait=False)[source]#
Stop the current thread
- Parameters:
timeout (
Optional[float])wait (
bool)
- Return type:
None
- property succeeded: bool | None#
Returns None when the task was not or could not be instantiated
- terminate(self)#
- thread(self) QThread | None#
- timerEvent(self, a0: QTimerEvent | None)#
- tr(sourceText: str | None, disambiguation: str | None = None, n: int = -1) str#
- usleep(a0: int)#
- wait(self, deadline: QDeadlineTimer = QDeadlineTimer(QDeadlineTimer.Forever)) bool#
- wait(self, time: int) bool
- yieldCurrentThread()#