added flashing : sign
This commit is contained in:
parent
3920578668
commit
362efd041a
@ -47,7 +47,7 @@ time_colors = {
|
|||||||
"Gray": graphics.Color(100,100,100),
|
"Gray": graphics.Color(100,100,100),
|
||||||
"Cyan": graphics.Color(0,255,255)
|
"Cyan": graphics.Color(0,255,255)
|
||||||
}
|
}
|
||||||
|
colon_visible = False
|
||||||
while True:
|
while True:
|
||||||
canvas.Clear()
|
canvas.Clear()
|
||||||
|
|
||||||
@ -61,6 +61,13 @@ while True:
|
|||||||
current_time = datetime.now(timezone).strftime("%H:%M %p")
|
current_time = datetime.now(timezone).strftime("%H:%M %p")
|
||||||
else:
|
else:
|
||||||
current_time = datetime.now(timezone).strftime("%H:%M")
|
current_time = datetime.now(timezone).strftime("%H:%M")
|
||||||
|
|
||||||
|
if colon_visible:
|
||||||
|
current_time = current_time.replace(":", " ")
|
||||||
|
colon_visible = False
|
||||||
|
else:
|
||||||
|
colon_visible = True
|
||||||
|
|
||||||
current_date = datetime.now(timezone).strftime("%a %d %b %Y")
|
current_date = datetime.now(timezone).strftime("%a %d %b %Y")
|
||||||
|
|
||||||
date_width = graphics.DrawText(canvas, font, 0, 0, time_colors[settings['date_color']], current_date.upper())
|
date_width = graphics.DrawText(canvas, font, 0, 0, time_colors[settings['date_color']], current_date.upper())
|
||||||
|
Loading…
Reference in New Issue
Block a user