---------- Forwarded message ----------
Date: Thu, 6 Oct 2005 23:55:26 -0700 (PDT)
From: Mike Cheponis <[EMAIL PROTECTED]>
To: Danny Yoo <[EMAIL PROTECTED]>
Subject: Re: [Tutor] Simple Tkinter question
Danny, I got it:
from Tkinter import *
from time import *
def my_update():
for i in range(3):
tv.set("Now it's %d"%i)
root.update()
sleep(1)
root=Tk()
tv=StringVar()
Entry(textvariable=tv).pack()
tv.set("Initial Value of StringVar")
Button(text="Update", command=my_update).pack()
root.mainloop()
Trick is call to update() - which I found by looking at a few pages before the
one your URL pointed me to, so THANKS!!! again.
Detail is here:
http://www.pythonware.com/library/tkinter/introduction/x9374-event-processing.htm
-Mike
_______________________________________________
Tutor maillist - [email protected]
http://mail.python.org/mailman/listinfo/tutor