Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #by Luciano Ramalho
- import tkinter
- from time import strftime
- relógio = tkinter.Label()
- relógio.pack()
- relógio['font'] = 'Helvetica 120 bold'
- relógio['text'] = strftime('%H:%M:%S')
- def tictac():
- agora = strftime('%H:%M:%S')
- if agora != relógio['text']:
- relógio['text'] = agora
- relógio.after(100, tictac)
- tictac()
- relógio.mainloop()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement