Pablo Endres wrote:
John Finlay wrote:Note that the reason threading is not enabled by default when you run configure is that it is not yet completely solid (you may run into deadlocks, or code being run when no threadstate is being held). Feedback on successes and failures in bugzilla are appreciated, but don't expect it to be ready for production use.
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\ssemamonWin32>python 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 threading disabled at compile time
Cedric could you cook up a pygtk-1.9x with the threading included or guide me into
doing it myself?
Is there another way of doing this so I don't need the threads (I really don't think
so, but it's worth a try)?
Thanks in advance
James.
--
Email: [EMAIL PROTECTED]
WWW: http://www.daa.com.au/~james/
_______________________________________________
pygtk mailing list [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
