Re: Threaded pygtk application hangs when accessibility is enabled

2010-02-11 Thread James Tatum
Hi Joanie, Aha! You spotted it. That was one of two places where UI code was not wrapped in threads_enter()/threads_leave(). Yes, the UI is being updated outside the main thread, but according to what I've read[1], so long as any code that updates the UI is wrapped in threads_enter() or threads_le

Re: Threaded pygtk application hangs when accessibility is enabled

2010-02-10 Thread Li Yuan
Hi James, You can try to call gtk.gdk.threads_init() earlier. From the document of GTK+, gdk_threads_init should be called before any other GTK+ or GDK functions. And please make sure all PyGTK related calls in the thread are wrapped by gtk.threads_enter/gtk.threads_leave. (From http://faq.pygtk.o

Re: Threaded pygtk application hangs when accessibility is enabled

2010-02-10 Thread Joanmarie Diggs
Hi James. My expertise in threads is almost exclusively being on the receiving end of a hang due to this sort of thing, and filing a bug to get someone like you to fix it. ;-) Having said that I *think* you might be modifying the GUI outside of the main thread when you set the cancel button's