Exemplo n.º 1
0
class CqsscWinner(QMainWindow):

    def __init__(self, parent=None):
        super(CqsscWinner, self).__init__(parent)
        self.resize(800, 600)
        self.initWorker()
        self.initConnect()

    def initWorker(self):
        self.worker = CqsscWorker()
        self.workerThread = QThread()
        self.worker.moveToThread(self.workerThread)
        self.workerThread.start()
        self.workerThread.started.connect(self.worker.analyzeData)
        # self.workerThread.started.connect(self.worker)

    def initConnect(self):
        signalManager.statusTextChanged.connect(self.statusBar().showMessage)
Exemplo n.º 2
0
 def initWorker(self):
     self.worker = CqsscWorker()
     self.workerThread = QThread()
     self.worker.moveToThread(self.workerThread)
     self.workerThread.start()
     self.workerThread.started.connect(self.worker.analyzeData)