darfix.gui.operationThread.OperationThread#

class darfix.gui.operationThread.OperationThread(parent, function)[source]#

Bases: QThread

Given a function and a set of arguments, it calls it whenever the thread is started.

HighPriority = 4#
HighestPriority = 5#
IdlePriority = 0#
InheritPriority = 7#
LowPriority = 2#
LowestPriority = 1#
NormalPriority = 3#
class Priority#

Bases: int

TimeCriticalPriority = 6#
blockSignals(self, b: bool) bool#
childEvent(self, a0: QChildEvent | None)#
children(self) List[QObject]#
connectNotify(self, signal: QMetaMethod)#
currentThread() QThread | None#
currentThreadId() PyQt5.sip.voidptr | 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)#
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#
exec(self) int#
exec_(self) int#
exit(self, returnCode: int = 0)#
findChild(self, type: Type[QObjectT], name: str | None = '', options: Qt.FindChildOptions | Qt.FindChildOption = Qt.FindChildrenRecursively) QObjectT#
findChild(self, types: Tuple[Type[QObjectT], ...], name: str | None = '', options: Qt.FindChildOptions | Qt.FindChildOption = Qt.FindChildrenRecursively) QObjectT
findChildren(self, type: Type[QObjectT], name: str | None = '', options: Qt.FindChildOptions | Qt.FindChildOption = Qt.FindChildrenRecursively) List[QObjectT]#
findChildren(self, types: Tuple[Type[QObjectT], ...], name: str | None = '', options: Qt.FindChildOptions | Qt.FindChildOption = Qt.FindChildrenRecursively) List[QObjectT]
findChildren(self, type: Type[QObjectT], regExp: QRegExp, options: Qt.FindChildOptions | Qt.FindChildOption = Qt.FindChildrenRecursively) List[QObjectT]
findChildren(self, types: Tuple[Type[QObjectT], ...], regExp: QRegExp, options: Qt.FindChildOptions | Qt.FindChildOption = Qt.FindChildrenRecursively) List[QObjectT]
findChildren(self, type: Type[QObjectT], re: QRegularExpression, options: Qt.FindChildOptions | Qt.FindChildOption = Qt.FindChildrenRecursively) List[QObjectT]
findChildren(self, types: Tuple[Type[QObjectT], ...], re: QRegularExpression, options: Qt.FindChildOptions | Qt.FindChildOption = Qt.FindChildrenRecursively) List[QObjectT]
finished#

finished(self) [signal]

idealThreadCount() int#
inherits(self, classname: str | None) bool#
installEventFilter(self, a0: QObject | None)#
isFinished(self) bool#
isInterruptionRequested(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]

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)#
run(self)[source]#
sender(self) QObject | None#
senderSignalIndex(self) int#
setArgs(*args, **kwargs)[source]#

Function to set the arguments of the function

Parameters:

args (List) –

setEventDispatcher(self, eventDispatcher: QAbstractEventDispatcher | None)#
setObjectName(self, name: str | None)#
setParent(self, a0: QObject | None)#
setPriority(self, priority: QThread.Priority)#
setProperty(self, name: str | None, value: Any) bool#
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 = <PyQt5.QtCore.QMetaObject object>#
terminate(self)#
thread(self) QThread | None#
timerEvent(self, a0: QTimerEvent | None)#
tr(self, sourceText: str | None, disambiguation: str | None = None, n: int = -1) str#
usleep(a0: int)#
wait(self, msecs: int = ULONG_MAX) bool#
wait(self, deadline: QDeadlineTimer) bool
yieldCurrentThread()#