From b5c641ee2449ae97bb789cdd29e3b450973ae8bd Mon Sep 17 00:00:00 2001 From: Bernard Blackham Date: Sat, 7 May 2005 10:26:11 +0000 Subject: [PATCH] Make clock blink --- sql-edition/servers/Idler.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sql-edition/servers/Idler.py b/sql-edition/servers/Idler.py index d11fe90..22285de 100755 --- a/sql-edition/servers/Idler.py +++ b/sql-edition/servers/Idler.py @@ -240,7 +240,9 @@ class ClockIdler(Idler): self.last = None def next(self): - output = time.strftime("%H:%M:%S") + colonchar = ':' + if int(time.time()*2) & 1: colonchar = ' ' + output = time.strftime("%%H%c%%M%c%%S"%(colonchar,colonchar)) if output != self.last: self.v.display(" %8.8s " % (output)) self.last = output -- 2.20.1