hi ..... i'm making an animation but am having a problem Tkinter.
the problem is that when i open the file with python 2.5 and execute the code then it works but by just double clicking on the file icon the program don't not work properly.its does not show the animation.it just show all the circle at once. can anyone tell me why its so.....
here is my codes.....
from time import sleep
import Tkinter
frame=Tkinter.Frame()
frame.pack()
canvas =Tkinter.Canvas(frame,bg = 'white',width=500, height=500)
canvas.pack()
def generate():
for i in range(0,100,5):
#sleep(1)
frame.after(1000)
canvas.create_oval(200-i,300-i,210+i,310+i) #my first oval
print i
#frame.after(2000)
#canvas.create_oval(220,320,230,330) # my second oval
button=Tkinter.Button(frame,fg="blue", text="GENERATE", command=generate).pack()
frame.mainloop()