From: Bernard Blackham Date: Sat, 7 May 2005 10:26:11 +0000 (+0000) Subject: Make clock blink X-Git-Tag: IMPORT-FROM-UCCCVS~33 X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=c97e3947a97a9b85564c840aab22308204992511;p=uccvend-vendserver.git Make clock blink --- 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