Skip to content

Instantly share code, notes, and snippets.

@rochacbruno
Created December 5, 2011 21:26
Show Gist options
  • Save rochacbruno/1435433 to your computer and use it in GitHub Desktop.
Save rochacbruno/1435433 to your computer and use it in GitHub Desktop.
import Tkinter
from time import strftime
relogio = Tkinter.Label()
relogio.pack()
relogio['font'] = "Helvetica 120 bold"
relogio['text'] = strftime("%H:%M:%S")
def tictac():
agora = strftime("%H:%M:%S")
if agora != relogio['text']:
relogio['text'] = agora
relogio.after(100, tictac)
tictac()
relogio.mainloop()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment