/offlineimap/head: changeset 189

Cleaned up color handling for timer
This commit is contained in:
jgoerzen 2002-07-25 01:40:58 +01:00
parent 2ad3c6459a
commit c8442d9a68

View File

@ -477,6 +477,7 @@ class Blinkenlights(VerboseUI):
def sleep(s, sleepsecs): def sleep(s, sleepsecs):
s.sleeping_abort = 0 s.sleeping_abort = 0
s.menubar.add_command(label = "Sync now", command = s._sleep_cancel) 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)) s._msg("Next sync in %d:%02d" % (sleepsecs / 60, sleepsecs % 60))
UIBase.sleep(s, sleepsecs) UIBase.sleep(s, sleepsecs)
@ -510,6 +511,7 @@ class Blinkenlights(VerboseUI):
(remainingsecs / 60, remainingsecs % 60)) (remainingsecs / 60, remainingsecs % 60))
else: else:
s.menubar.delete('end') s.menubar.delete('end')
s.gettf().setcolor('black')
if s.gettf().getcolor() == 'red': if s.gettf().getcolor() == 'red':
s.gettf().setcolor('black') s.gettf().setcolor('black')
else: else: