Re: Tkinter -- the best way to make a realtime loop

2009-10-09 Thread eb303
On Oct 8, 7:15 pm, J Wolfe vorticitywo...@gmail.com wrote: Thank you both for your replies. I had something similar to this: def incr(): var.set(1 + var.get()) root.after(1000, incr) except I had an extra set of parenthesis... def incr(): var.set(1 + var.get()) root.after(1000,

Re: Tkinter -- the best way to make a realtime loop

2009-10-08 Thread eb303
On Oct 8, 12:40 am, J Wolfe vorticitywo...@gmail.com wrote: What's the best way to make a realtime loop in Tkinter? I know in perl you can use repeat and it will call a function every x seconds, in python it seems like after may be the equivalent though it doesn't seem to behave like the perl

Re: Tkinter -- the best way to make a realtime loop

2009-10-08 Thread Hendrik van Rooyen
On Thursday, 8 October 2009 00:40:42 J Wolfe wrote: What's the best way to make a realtime loop in Tkinter? I know in perl you can use repeat and it will call a function every x seconds, in python it seems like after may be the equivalent though it doesn't seem to behave like the perl repeat

Tkinter -- the best way to make a realtime loop

2009-10-07 Thread J Wolfe
What's the best way to make a realtime loop in Tkinter? I know in perl you can use repeat and it will call a function every x seconds, in python it seems like after may be the equivalent though it doesn't seem to behave like the perl repeat function. Any ideas? Thanks, Jonathan --