We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 051632c commit af2f1deCopy full SHA for af2f1de
main.py
@@ -1,5 +1,5 @@
1
#This code is to import tkinter libraries remeber to do py install tk!
2
-#This code is under the license of
+#This code is under the license of Creative Commons Zero v1.0 Universal
3
from tkinter import *
4
from tkinter.ttk import *
5
@@ -12,7 +12,7 @@ def time():
12
string = strftime("%H:%M:%S %p")
13
label.config(text = string)
14
label.after(1000, time)
15
-
+#To make the clock format 12 hrs. Simply change the strftime('%H:%M:%S %p') to strftime('%I:%M:%S %p').
16
label = Label(root, font = "ds-digital 100", background = "white", foreground = "black")
17
label.pack(anchor = "center")
18
0 commit comments