pygtk + threading.Timer

Dmitry Teslenko dteslenko at gmail.com
Mon Apr 14 11:08:40 EDT 2008


2008/4/14 Jarek Zgoda <jzgoda at o2.usun.pl>:
>  > I have simple chat application with pygtk UI. I want some event (for
>  > example update user list) to have place every n seconds.
>  > What's the best way to archive it?
>  > I tried threading.Timer but result is following: all events wait till
>  > exit of gtk main loop and only then they occur.
>  > Thanks in advance
>
>  See gobject.timeout_add documentation in pygtk reference

Thanks. That's exactly what I need.



More information about the Python-list mailing list