I am trying to make a button that when clicked:
- Changes my label's text to "wrong answer"
- Has 2 seconds delay then changes it to "Shut down in 3..."
- Has 1 second delay then changes it to "Shut down in 2..."
- Has another 1 second delay then changes it to "Shut down in 1..."
Anyone know if this is possible?
def clickcancel():
label.config(text = "Wrong answer!")
sleep(2)
label.config(text = "Shut down in 3...")
sleep(1)
label.config(text = "Shut down in 3...2...")
sleep(1)
label.config(text="Shut down in 3...2...1...")