John K Luebs wrote:
Interestingly, if we substitute "Timeout, input, and idle handlers" in
place of "Signal callbacks" the statement becomes correct. As long as
you only call mainloop in the main thread, those glib handlers will only
be called in the main thread, additionally, those handlers must
acquire the gtk lock if they are going to call gtk.
If you only call mainloop in the main thread and you only do gtk things in the main thread, why would you need to acquire the gtk lock to do things in TImeout, input and idle handlers which only get called by the main thread?
Under Windows, if you don't call gtk.threads_init() then GTK will never release the Python GIL (Global Interpreter Lock). This will mean that other Python threads will hardly ever get a chance to run, and your program will run slowly.
-- Tim Evans Applied Research Associates NZ http://www.aranz.com/ _______________________________________________ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
