flashing colon sign
This commit is contained in:
parent
362efd041a
commit
16cf2ec73b
@ -52,6 +52,8 @@ time_colors = {
|
||||
"Cyan": graphics.Color(0,255,255)
|
||||
}
|
||||
|
||||
colon_visible = False
|
||||
|
||||
while True:
|
||||
# Clear the canvas
|
||||
canvas.Clear()
|
||||
@ -76,6 +78,12 @@ while True:
|
||||
else:
|
||||
current_time = datetime.now(timezone).strftime("%H:%M")
|
||||
|
||||
if colon_visible:
|
||||
current_time = current_time.replace(":", " ")
|
||||
colon_visible = False
|
||||
else:
|
||||
colon_visible = True
|
||||
|
||||
current_weekday = datetime.now(timezone).strftime("%A")
|
||||
current_date = datetime.now(timezone).strftime("%d %b %Y")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user