forked from souravjain540/Basic-Python-Programs
- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathclock.py
More file actions
Latest commit
18 lines (13 loc) · 370 Bytes
/
Copy pathclock.py
File metadata and controls
18 lines (13 loc) · 370 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
fromtkinterimport*
fromtkinter.ttkimport*
fromtimeimportstrftime
root=Tk()
root.title("Clock")
deftime():
string=strftime('%I:%M:%S %p')
label.config(text=string)
label.after(1000, time)
label=Label(root, font=("ds-digital",80), background="black", foreground="cyan")
label.pack(anchor='center')
time()
mainloop()