title: Tkinter locks Python when an icon is loaded and tk.mainloop is in a thread
body: <p>Here's the test case...</p>
  
  <pre><code>import Tkinter as tk
  import thread
  from time import sleep
  
  if __name__ == '__main__':
      t = tk.Tk()
      thread.start_new_thread(t.mainloop, ())
      # t.iconbitmap('icon.ico')
  
      b = tk.Button(text='test', command=exit)
      b.grid(row=0)
  
      while 1:
          sleep(1)
  </code></pre>
  
  <p>This code works. Uncomment the t.iconbitmap line and it locks. Re-arrange it any way you like; it will lock.</p>
  
  <p>How do I prevent tk.mainloop locking the <a href="https://en.wikipedia.org/wiki/Global_interpreter_lock" rel="nofollow noreferrer">GIL</a> when there is an icon present?</p>
  
  <p>The target is win32 and Python 2.6.2.</p>