title: How can I run gtk.main() asynchronsly in pygtk?
body: <p>The basic code that I have so far is below. How do I thread gtk.main() so that the code after Display is initialized runs asynchronously?</p>
  
  <pre><code>import pygtk
  pygtk.require("2.0")
  import gtk
  
  class Display():
  
      def __init__(self):
          self.fail = "This will fail to display"
          window = gtk.Window(gtk.WINDOW_TOPLEVEL)
          window.connect("destroy", lambda w: gtk.main_quit())
          window.show()
          self.main()            
  
      def main(self):
          gtk.main()
  
  class Test():
  
      def __init__(self, display):
          print display.fail
  
  d = Display()
  t = Test(d)
  </code></pre>