catalight.catalight_GUI.Worker
- class catalight.catalight_GUI.Worker(*args: Any, **kwargs: Any)
Bases:
QRunnable
Worker thread.
Inherits from QRunnable to handle worker thread setup, signals and wrap-up.
- Parameters:
callback (function) – The function callback to run on this worker thread. Supplied args and kwargs will be passed through to the runner.
args – Arguments to pass to the callback function
kwargs – Keywords to pass to the callback function
References
- [1] (https://www.pythonguis.com/tutorials/
multithreading-pyqt-applications-qthreadpool/)
- __init__(fn, *args, **kwargs)
Methods
__init__
(fn, *args, **kwargs)- run()
Initialise the runner function with passed args, kwargs.