You need to run gtk.threads_init() in the same thread that you run gtk.mainloop().
John
Pablo Endres wrote:
Ok I've narrowed down what happens just before it freezes
Heres whats being done:
## Start a thread to run the gtk.mainloop()
self.rm = RunMain()
print "Going to start"##test
self.rm.start()
print "Started "
And RunMain is this class:
import threading
class RunMain(threading.Thread):
"Class defined to run the gtk.mainloop without blocking the application"
def __init__(self):
threading.Thread.__init__(self)
def run(self):
gtk.mainloop()
Is there anything wrong?
This code works no problem on with pygtk-0.6.x on linux but I'm trying to make it work on pygtk-1.9x on win2000
_______________________________________________ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
