mirror of
https://github.com/KenanZhu/AutoLibrary.git
synced 2026-06-18 07:23:03 +08:00
refactor(ALMainWorkers): 重构主工作线程的父类初始化方式
This commit is contained in:
@@ -20,7 +20,7 @@ from operators.AutoLib import AutoLib
|
|||||||
from utils.ConfigReader import ConfigReader
|
from utils.ConfigReader import ConfigReader
|
||||||
|
|
||||||
|
|
||||||
class AutoLibWorker(QThread, MsgBase):
|
class AutoLibWorker(MsgBase, QThread):
|
||||||
|
|
||||||
AutoLibWorkerIsFinished = Signal()
|
AutoLibWorkerIsFinished = Signal()
|
||||||
AutoLibWorkerFinishedWithError = Signal()
|
AutoLibWorkerFinishedWithError = Signal()
|
||||||
@@ -32,8 +32,8 @@ class AutoLibWorker(QThread, MsgBase):
|
|||||||
config_paths: dict
|
config_paths: dict
|
||||||
):
|
):
|
||||||
|
|
||||||
super().__init__(input_queue=input_queue, output_queue=output_queue)
|
MsgBase.__init__(self, input_queue, output_queue)
|
||||||
|
QThread.__init__(self)
|
||||||
self.__config_paths = config_paths
|
self.__config_paths = config_paths
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user