As per examples seen online, I've created a Worker
thread. I'm looking for a thread to run my GUI while one thread executes my code. Worker
thread is defined as:
class Worker(QThread):
def __init__(self, parent = None):
QThread.__init__(self, parent)
self.exiting = False
self.size = QSize(0, 0)
def __del__(self):
self.exiting = True
self.wait()
pretty simple. Within my Window
class, I have this line in the __init__
function: self.thread = Worker()
. However, I never do anything with that self.thread afterwards. What am I supposed to be doing with it? This does not seem to be laid out as nicely as other threading mechanisms..