Skip to content

Worker Threads

Workers for GUI.

Classes:

Name Description
MainWorker

Worker for running process.

MainThread

Worker thread for running process.

MainWorker(signals: WorkerSignals, engine: Engine) dataclass

Worker for running process.

Methods:

Name Description
from_config

Post-initialization tasks.

run

Run the process.

stop

Stop the process.

from_config(config: ConfigModel) -> MainWorker classmethod

Post-initialization tasks.

run() -> None

Run the process.

stop() -> None

Stop the process.

MainThread(worker: MainWorker)

Bases: QThread

Worker thread for running process.

Initialize the worker thread.

Methods:

Name Description
run

Run the process.

stop

Stop the process.

run() -> None

Run the process.

stop() -> None

Stop the process.