title: Create loop that doesn't lock up the window Pyqt4
body: <p>I'm using PyQt4 and I've created a window with a toggle button.  When I select the button, I would like to start a loop that updates the screen as quickly as possible.  Currently, it locks up my windows and I cannot select the button again to turn off the loop or even move the window.  I was hoping to find a way to do this without threads.
  I can't post my actual code, but this is basically what I have right now.</p>
  
  <pre><code>self.connect(self.pushButton,SIGNAL("toggled(bool)"),self.testLoop)
  
  def testLoop(self, bool):
      while bool:
          print "looping"
  </code></pre>