I'm trying to make an intercom in python just for fun.
I want it to write "Err" and blink for 5 seconds when you try to call a number more than 69.
But time.sleep() won't work in tkinter and I don't know how to work with the .after() method.
if int(lbl.cget("text"))>69:
for i in range(5):
lbl.configure(text="Err")
time.sleep(0.5)
lbl.configure(text=" ")
time.sleep(0.5)