Tk callback at certain time point?
johngrayson42
johngrayson at home.com
Wed Dec 5 06:54:47 EST 2001
More information about the Python-list mailing list
Wed Dec 5 06:54:47 EST 2001
- Previous message (by thread): Cursors in Tkinter
- Next message (by thread): Tk callback at certain time point?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Use after...
from Tkinter import *
def printEnd(wid):
wid.configure(text="Done!!!")
wid.after(2000, wid.quit)
root = Tk()
widget = Label(root, text="wait please...")
widget.pack()
widget.after(10000, printEnd, widget)
widget.mainloop()
John
- Previous message (by thread): Cursors in Tkinter
- Next message (by thread): Tk callback at certain time point?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list