hi am writing a program and there a oval moving towards a big blue oval. i want when the red oval arrive at the blue oval is stop.can anyone tell me hoe to do this????
from Tkinter import *
import Tkinter
import time
frame=Tkinter.Frame()
frame.pack()
canvas =Tkinter.Canvas(frame,bg = 'white',width=500, height=500)
canvas.pack()
canvas.create_oval(100,450,130,480,fill="blue", outline="blue")
def progress(d,e):
a=d
b=e
for i in range(0,100,10):
a1=a+10
b1=b+10
time.sleep(0.5)
canvas.create_oval(a,b,a1,b1,fill="red", outline="red")
canvas.update()
b=b+10
def want():
c=100
b=100
progress(c,b)
want()
frame.mainloop()
thanks you in advance