[pygtk] idle_add vs. threads_enter/threads_leave
Jason Heeris
jason.heeris at gmail.com
Tue Jul 6 13:10:07 WST 2010
On 5 July 2010 17:53, Pietro Battiston <me at pietrobattiston.it> wrote:
> Il giorno lun, 05/07/2010 alle 16.32 +0800, Jason Heeris ha scritto:
>> 3. I don't need to do the threads_enter/leave (or use the context
>> manager) if I only use glib.idle_add (or timeout_add, etc)
>
> No, you don't. If you don't really need threads, life is much simpler.
Aaaah, I've just discovered that using only glib.idle_add on Windows
does *not* mean that things get updated at the next available
oppurtunity. They only get updated when the widget gets redrawn (I
think... or maybe when the user interacts with the UI). Maybe this is
a known issue.
— Jason
More information about the pygtk
mailing list