[pygtk] PyGTK and threading
Frédéric
frederic.mantegazza at gbiloba.org
Sat Sep 6 00:56:14 WST 2008
On dimanche 17 août 2008, John Ehresman wrote:
> Threads in gtk+ on Windows have significant limitations -- please see
> http://faq.pygtk.org/index.py?req=show&file=faq21.003.htp
As I said in another discussion, I had problems with my papywizard app -
that's why I was looking for windows developpers.
But searching on py2exe wiki, I found that:
http://www.py2exe.org/index.cgi/Py2exeAndPyGTK
In this example, gtk.threads_enter()/gtk.threads_leave() are arround the
entire code, and not only in critical section. I did that, and all works
fine, instead of freezing on gtk.main() call :o)
I also have a serializer, to push PyGTK events from external thread, and
have them executed in the gtk mainloop.
Hope this helps.
--
Frédéric
http://www.gbiloba.org
More information about the pygtk
mailing list