Skip to content

Instantly share code, notes, and snippets.

@fmasanori
Last active June 28, 2017 19:19
Show Gist options
  • Select an option

  • Save fmasanori/4961824 to your computer and use it in GitHub Desktop.

Select an option

Save fmasanori/4961824 to your computer and use it in GitHub Desktop.
Clock GUI
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()
Copy link

ghost commented Mar 29, 2017

AWESOME DUDE

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment