Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 008e533

Browse files
authored
Merge pull request #1 from YasinRezvani/patch-1
add date and change font and color
2 parents 9ba71e6 + 203af13 commit 008e533

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

‎app.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
window.resizable(False, False) # =====setting a fixed window size =======
1010

1111
clock_label = Label(
12-
window, bg="green", fg="white", font=("Times", 30, "bold"), relief="flat"
12+
window, bg="black", fg="cyan", font=("Arial", 30, "bold"), relief="flat"
1313
)
1414
clock_label.place(x=20, y=20)
1515

@@ -20,9 +20,10 @@ def update_label():
2020
2121
every 80 milliseconds
2222
"""
23-
current_time = strftime("%H: %M: %S")
23+
current_time = strftime("%H: %M: %S\n %d-%m-%Y ")
2424
clock_label.configure(text=current_time)
2525
clock_label.after(80, update_label)
26+
clock_label.pack(anchor="center")
2627

2728

2829
update_label()

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /