From c8442d9a6836ff7d005f4ef9edec109d6d53ec70 Mon Sep 17 00:00:00 2001 From: jgoerzen Date: Thu, 25 Jul 2002 01:40:58 +0100 Subject: [PATCH] /offlineimap/head: changeset 189 Cleaned up color handling for timer --- offlineimap/head/offlineimap/ui/Tk.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/offlineimap/head/offlineimap/ui/Tk.py b/offlineimap/head/offlineimap/ui/Tk.py index 6b30dfc..ec37979 100644 --- a/offlineimap/head/offlineimap/ui/Tk.py +++ b/offlineimap/head/offlineimap/ui/Tk.py @@ -477,6 +477,7 @@ class Blinkenlights(VerboseUI): def sleep(s, sleepsecs): s.sleeping_abort = 0 s.menubar.add_command(label = "Sync now", command = s._sleep_cancel) + s.gettf().setcolor('red') s._msg("Next sync in %d:%02d" % (sleepsecs / 60, sleepsecs % 60)) UIBase.sleep(s, sleepsecs) @@ -510,6 +511,7 @@ class Blinkenlights(VerboseUI): (remainingsecs / 60, remainingsecs % 60)) else: s.menubar.delete('end') + s.gettf().setcolor('black') if s.gettf().getcolor() == 'red': s.gettf().setcolor('black') else: