On Sat, 8 May 2004, Johan Dahlin wrote: > or just use the gtk+ ones > > while gtk.events_pending(): > gtk.main_iteration(1)
There are issues with this. Quoting Owen Taylor from gnome bug 138161 which I filed a while ago: > gtk_main_quit() is *purely* convenience functionality; no GTK+ > function ever calls it. If you want to write your own main loop, > just keep your own quit variable. > > (Note also that gtk_main_iteration() is obsolete; see the > mainloop functionality in GLib for the current interfaces) I really need to push this issue out to gtk-devel to get it resolved as it is symptomatic of a larger architectural problem. I just haven't had the time yet to shepherd a discussion about this on the gtk-devel list. Now, pygtk could just wrap the underlying gobject calls and provide a gtk.main_iteration() function which is simply convenience. However, I don't believe that it currently does this. -a _______________________________________________ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
