Answer the question
In order to leave comments, you need to log in
How to run a class in a separate process?
At the moment, my program is released with a thread launcher. But the problem is that in principle it is impossible to control the flow until the final result arrives.
Here is the implementation of my flow
def threadIbazar(self):
self.ui.parserButton_sk_4.setEnabled(False)
self.ui.parserButton_sk_4.setText('Сканування запущено')
self.thread_4 = QtCore.QThread()
self.parserIbazar = ParserIbazar()
self.parserIbazar.moveToThread(self.thread_4)
self.parserIbazar.newTextSignalIbazar.connect(self.addNewItemIbazar)
self.thread_4.started.connect(self.parserIbazar.run)
self.thread_4.start()
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question