title: How to pause and resume a thread using the threading module?
body: <p>I have a long process that I've scheduled to run in a thread, because otherwise it will freeze the UI in my wxpython application.</p>
  <p>I'm using:</p>
  <pre><code>threading.Thread(target=myLongProcess).start()
  </code></pre>
  <p>to start the thread and it works, but I don't know how to pause and resume the thread. I looked in the Python docs for the above methods, but wasn't able to find them.</p>
  <p>Could anyone suggest how I could do this?</p>