title: Updating a wxPython progress bar after calling app.MainLoop()
body: <p>I have a python script that performs a calculation, and I have created a class for a pop-up wxPython progress bar. Currently I have:</p>
  
  <pre><code>app=wx.App()
  progress = ProgressBar()
  app.MainLoop()
  
  for i in xrange(len(toBeAnalysed)):
      analyse(toBeAnalysed[i])
      progress.update(i/len(toBeAnalysed)*100)
  </code></pre>
  
  <p>Now, this example doesn't work for obvious reasons. Is there any way I can run the app.MainLoop() in a different thread but still communicate the progress (and .update() it) as the calculations are completed?</p>
  
  <p>Thanks for the help.</p>