Skip to content

Instantly share code, notes, and snippets.

@aldente39
Created February 26, 2012 02:50
Show Gist options
  • Save aldente39/1912419 to your computer and use it in GitHub Desktop.
Save aldente39/1912419 to your computer and use it in GitHub Desktop.
tk_animation_test
import Tkinter as tk
import time
root = tk.Tk()
c0 = tk.Canvas(root, width = 300, height = 300)
for i in range(0,202,2):
time.sleep(0.1)
n = c0.create_oval(i,125,50+i,175, tags = 'o')
c0.pack()
c0.update()
if i != 200:
c0.delete('o')
root.mainloop()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment