Skip to content

Commit af2f1de

Browse files
authored
Update main.py
1 parent 051632c commit af2f1de

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#This code is to import tkinter libraries remeber to do py install tk!
2-
#This code is under the license of
2+
#This code is under the license of Creative Commons Zero v1.0 Universal
33
from tkinter import *
44
from tkinter.ttk import *
55

@@ -12,7 +12,7 @@ def time():
1212
string = strftime("%H:%M:%S %p")
1313
label.config(text = string)
1414
label.after(1000, time)
15-
15+
#To make the clock format 12 hrs. Simply change the strftime('%H:%M:%S %p') to strftime('%I:%M:%S %p').
1616
label = Label(root, font = "ds-digital 100", background = "white", foreground = "black")
1717
label.pack(anchor = "center")
1818

0 commit comments

Comments
 (0)