from random import randint, choise import thinker size = 500 tk=Tk() diapazon = 0 my_canvas = Canvas (tk, width=size, height=size) my_canvas.pack() while diapazon<1000: color = choise(['green', 'red', 'blue', 'orange', 'yellow', 'pink', 'purple', 'violet', 'magenta', 'cyan']) x1 = randint(0,size) y1 = randint(0,size) d = randint(0,size/S) my_canvas.create_oval [x1,y1,x1+d,y1+d,fill=color) tk.update() diapason+=1