[pygtk] Simple threading prevents quitting
Tobias Weber
towb at celvina.de
Mon Feb 22 23:18:19 WST 2010
Hi,
on the Mac the following works fine with both X11 and Quartz:
http://www.pygtk.org/pygtk2tutorial/examples/helloworld.py
I then added a single line to prepare for simple threading as mentioned on:
http://faq.pygtk.org/index.py?req=show&file=faq20.001.htp
gobject.threads_init()
This changes nothing when using X11, but on a Quartz build gtk.main_quit() no longer exits the process, only SIGKILL does!
To narrow it down I also added a single line to:
http://library.gnome.org/devel/gtk-tutorial/stable/c39.html#SEC-HELLOWORLD
g_thread_init(NULL);
This did not exhibit the problem, so it must be something PyGTK does. But I know little about C, so the lines may not be equivalent.
More information about the pygtk
mailing list