Skip to content

Commit e4011f8

Browse files
Update graphical clock.py
1 parent be58ecb commit e4011f8

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

graphical clock.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#-------Please follow me-------
2+
13
from tkinter import *
24
from tkinter.ttk import *
35

@@ -12,11 +14,11 @@ def time():
1214
label.after(1000, time)
1315

1416

15-
label = Label(tk, font=('Comic Sans MS', 40, 'bold'),
16-
background='black',
17+
label = Label(tk, font=('Comic Sans MS', 40, 'bold'), #you can change the font (https://github.com/RandomMonkey99/python-Clock/blob/main/disponible%20tkinter%20fonts.md) the text size and the stile(bold, italic, underline)
18+
background='black',#you can change background and foreground
1719
foreground='green')
1820

1921
label.pack(anchor='s')
2022
time()
2123

22-
mainloop()
24+
tk.mainloop()

0 commit comments

Comments
 (0)