+ 1
Ten seconds timer?
Hey! my fellow autodidacts, I am creating a GUI with tkinter and I want to know how to create a ten seconds. So essentially it's counting down from ten seconds to zero. Once it's zero the application pauses. I'd like to know how I can incorporate the time module with this.
4 Respuestas
+ 9
well use stwines code, except replace the print with a gui text. it's been a long while since I tinkered with tkinter , so that may not be an exact description.
+ 4
import time
for i in range(10,0,-1):
print ("The count is:: ",i)
time.sleep(1)
☺☺🤗
well actually a I really don't know much about python GUI interface.I just applied everything that I had studied until now. I hope this could help you in some way... 😀
+ 2
@stwine mime thank you. Although I still don't understand how to implement it in Tkinter
+ 1
# Using python
from time import sleep
import os
time = int(input())
while time != 0:
print(time)
time -= 1
sleep(1)
system('cls')