Real-time Update

kyosohma at gmail.com kyosohma at gmail.com
Thu Jul 19 10:07:33 EDT 2007


On Jul 18, 4:43 pm, a... at pythoncraft.com (Aahz) wrote:
> In article <1184747090.102324.265... at i13g2000prf.googlegroups.com>,
>
> ReTrY  <ret... at gmail.com> wrote:
>
> >I'm writing a program with Tkinter GUI, When the program is running it
> >need to be updated every five seconds (data comes from internet). How
> >should I do that ? How to make a function in main loop ?
>
> See the Tkinter example from my threads tutorial on my website.
> --
> Aahz (a... at pythoncraft.com)           <*>        http://www.pythoncraft.com/
>
> I support the RKAB

There's also a good example on the wxPython wiki dealing with threads
that you should be able to adapt to Tkinter.

http://wiki.wxpython.org/LongRunningTasks

Mike




More information about the Python-list mailing list