Re: [pygtk] gtk.mainloop()

2003-01-31 Thread James Henstridge
Pablo Endres wrote: John Finlay wrote: You need to run gtk.threads_init() in the same thread that you run gtk.mainloop(). Thanks I set it just before the gtk.mainloop(), but now I get this error: C:\tmp\ssemamonWin32python gui.py Exception in thread Thread-1: Traceback (most recent

Re: [pygtk] gtk.mainloop()

2003-01-31 Thread Pablo Endres
On Fri, 31 Jan 2003, James Henstridge wrote: Pablo Endres wrote: John Finlay wrote: You need to run gtk.threads_init() in the same thread that you run gtk.mainloop(). Note that the reason threading is not enabled by default when you run configure is that it is not yet

RE: [pygtk] gtk.mainloop()

2003-01-30 Thread Pablo Endres
John Finlay wrote: You need to run gtk.threads_init() in the same thread that you run gtk.mainloop(). Thanks I set it just before the gtk.mainloop(), but now I get this error: C:\tmp\ssemamonWin32python gui.py Exception in thread Thread-1: Traceback (most recent call last):

RE: [pygtk] gtk.mainloop()

2003-01-30 Thread Cedric Gustin
At 08:41 AM 1/30/2003 -0400, Pablo Endres wrote: C:\tmp\ssemamonWin32python gui.py Exception in thread Thread-1: Traceback (most recent call last): File C:\Python22\lib\threading.py, line 408, in __bootstrap self.run() File gui.py, line 203, in run gtk.threads_init() RuntimeError:

[pygtk] gtk.mainloop()

2003-01-29 Thread Pablo Endres
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

Re: [pygtk] gtk.mainloop()

2003-01-29 Thread John Finlay
Hi Pablo, 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