title: How to initialize a QT thread in python
body: <p>As per examples seen online, I've created a <code>Worker</code> thread.  I'm looking for a thread to run my GUI while one thread executes my code.  <code>Worker</code> thread is defined as:</p>
  
  <pre><code>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()
  </code></pre>
  
  <p>pretty simple.  Within my <code>Window</code> class, I have this line in the <code>__init__</code> function: <code>self.thread = Worker()</code>.  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..</p>