Last active
June 28, 2017 19:19
-
-
Save fmasanori/4961824 to your computer and use it in GitHub Desktop.
Clock GUI
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import tkinter | |
| from time import strftime | |
| #by Luciano Ramalho | |
| clock = tkinter.Label() | |
| clock.pack() | |
| clock['font'] = 'Helvetica 120 bold' | |
| clock['text'] = strftime('%H:%M:%S') | |
| def tictac(): | |
| agora = strftime('%H:%M:%S') | |
| if agora != clock['text']: | |
| clock['text'] = agora | |
| clock.after(100, tictac) | |
| tictac() | |
| clock.mainloop() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
AWESOME DUDE