+ 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.

5th Dec 2017, 4:53 AM
ΞⓀⒾⓃⒼΞ
ΞⓀⒾⓃⒼΞ - avatar
4 ответов
+ 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.
2nd Dec 2017, 6:12 PM
Ahri Fox
Ahri Fox - avatar
+ 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... 😀
30th Nov 2017, 4:45 AM
VISHNU P.S
VISHNU P.S - avatar
+ 2
@stwine mime thank you. Although I still don't understand how to implement it in Tkinter
5th Dec 2017, 4:54 AM
ΞⓀⒾⓃⒼΞ
ΞⓀⒾⓃⒼΞ - avatar
+ 1
# Using python from time import sleep import os time = int(input()) while time != 0: print(time) time -= 1 sleep(1) system('cls')
5th Dec 2017, 5:45 AM
#RahulVerma
#RahulVerma - avatar