By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,302 Members | 1,812 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,302 IT Pros & Developers. It's quick & easy.

pygtk + threading.Timer

P: n/a
Hello!
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
Jun 27 '08 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Dmitry Teslenko napisał(a):
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

--
Jarek Zgoda
Skype: jzgoda | GTalk: zg***@jabber.aster.pl | voice: +48228430101

"We read Knuth so you don't have to." (Tim Peters)
Jun 27 '08 #2

P: n/a
2008/4/14 Jarek Zgoda <jz****@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.
Jun 27 '08 #3

This discussion thread is closed

Replies have been disabled for this discussion.