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 db19bc8 commit 0173fc9Copy full SHA for 0173fc9
Digital Clock/main.py
@@ -1,5 +1,5 @@
1
from time import strftime
2
-from tkinter import Label, Tk
+from tkinter import Label, Tk , Button
3
4
window = Tk()
5
window.title("Digital Clock")
@@ -27,7 +27,7 @@ def update_label():
27
clock_label.pack(anchor="center")
28
29
update_label()
30
-window.mainloop()def update_label():
+window.mainloop() def update_label():
31
clock_label.configure(text=strftime("%H:%M:%S"))
32
date_label.configure(text=strftime("%A, %b %d, %Y"))
33
clock_label.after(1000, update_label)
0 commit comments