This is one small snippet of after event usage. You could express if you find this kind of simple code to be usefull as snippet. Notice also vegaseat's sticky message threads in begining of Python forum in addition to code snippets.
Color changing window demo of tkinter after timer events
3,593 Views
About the Author

IT Pro doing Eng-Fin-Eng translations
# originally posted in thread http://www.daniweb.com/software-development/python/threads/298190/1282328#post1282328
try:
from Tkinter import *
except:
from tkinter import *
def change(a=0):
color_label.config(bg = "blue" if a & 1 else "purple")
color_label.after(400,change, a ^ 1 )
if __name__ == '__main__':
win = Tk()
win.geometry("500x300")
win.title('Demonstrating after event')
color_label = Label(win)
color_label.pack(expand=YES, fill=BOTH)
change()
win.mainloop()
JoshuaBurleson
23
Posting Whiz
TrustyTony
888
pyMod
Team Colleague
Featured Poster
jklotzner
0
Newbie Poster
Gribouillis
1,391
Programming Explorer
Team Colleague
Be a part of the DaniWeb community
We're a friendly, industry-focused community of 1.20 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.