Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python3
- import tkinter, time
- root = tkinter.Tk()
- clock = tkinter.Label(root, width=24)
- clock.pack()
- def tick():
- clock.config(text=time.strftime('%H:%M:%S'))
- root.after(200, tick)
- tick()
- root.mainloop()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement