My code is as below; it should draw random colour and size circles repeatedly, but only draws one. I have tried countless combinations of mainloop() and window1.update() but always have the same problem.
#!/usr/bin/env python3
from tkinter import *
from random import *
WIDTH = 1024/2
HEIGHT = 720/2
window1 = Tk()
c1 = Canvas(window1, width=WIDTH, height=HEIGHT, bg='#FFFFFF')
c1.pack()
colours = ('#FF0000', '#00FF00', '#0000FF', '#FFFF00', '#FF00FF')
while 3 == 3:
colchose = choice(colours)
x0 = randint(0, WIDTH)
y0 = randint(0, HEIGHT)
c1.create_oval(x0, y0, x0+d, y0+d, fill=colchose)
mainloop()