Here is my code:
from tkinter import *
import time
master=Tk()
w=Canvas(master,width=500,height=500)
w.pack()
line=w.create_line
rect=w.create_rectangle
oval=w.create_oval
poly=w.create_polygon
rect(0,100,500,150,fill="#770077")
for x in range(0,51):
rect(0,100,x*10,150,fill="#007700")
w.after(100)
I've tried using the time.sleep()
function, but that did not help, so I tried tkinter's wait function, and that didn't do anything either. This is for a class, but no one from the class has any ideas either.