Hi Tim, thanks for your reply. > Both idle_add and timeout_add are thread safe, as are all GLib mainloop > functions AFAIK. It's the GTK and GDK functions you have to be careful > with. You don't need (3)/(4). You should still have (1)/(2), or "with > gtk.gdk.lock:" if your version of gtk is new enough. It may be easier to
That's great; too bad this essential bit of info is missing from the pygtk docs (at least the online one). Also, related to Hrvoje Niksic's comment, is it safe to use GDK calls from other threads at all (as long as you guard them with the appropriate incantations)? Or do you absolutely have to schedule all GUI work to the GUI thread? If the latter, then I also don't see the point of locking in the callback. _______________________________________________ pygtk mailing list [email protected] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://faq.pygtk.org/
