On Tue, Nov 29, 2011 at 10:09 AM, Dave Angel <d...@davea.name> wrote:

> <snip>tkinter provides a couple of specific timer events, and I now see
> your reply to a message that said to use the after() method, which is a
> one-shot.  I believe there's another one that sets a periodic timer so you
> don't have to do an after() call each time it fires.
>

Not in Tkinter - you have to do what Peter Otten suggested:


> For a script that uses tkinter there's the after() method.
> Example:
> root = Tk()
> def hi():
>    print("ho")
> def hi_reschedule():
>    hi()
>    # make tkinter call it again after 1000 milliseconds
>    root.after(1000, hi_reschedule)
> hi_reschedule() # call it manually the first time



HTH,
Wayne
_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to