/offlineimap/head: changeset 201

We're back, woohoo.
This commit is contained in:
jgoerzen 2002-08-07 09:08:16 +01:00
parent 4e323e188f
commit a605ce468a
2 changed files with 22 additions and 5 deletions

View File

@ -1,3 +1,10 @@
offlineimap (3.2.2) unstable; urgency=low
* Updated manual to show new Gray color.
-- John Goerzen <jgoerzen@complete.org> Thu, 25 Jul 2002 08:22:25 -0500
offlineimap (3.2.1) unstable; urgency=low
* There is a new "connecting" event that will appear in all but the

View File

@ -287,6 +287,8 @@ class VerboseUI(UIBase):
TkUI = VerboseUI
################################################## Blinkenlights
class LEDCanvas(Canvas):
def createLEDLock(self):
self.ledlock = Lock()
@ -404,6 +406,14 @@ class Blinkenlights(VerboseUI):
if s.config.has_option("ui.Tk.Blinkenlights", "showlog") and \
s.config.getboolean("ui.Tk.Blinkenlights", "showlog"):
s._togglelog()
#s.tflock.acquire()
#try:
# for i in range(s.top.winfo_reqwidth() / 10 - 1):
# newframe = LEDThreadFrame(s.canvas)
# newframe.setthread(None)
# s.availablethreadframes.append(newframe)
#finally:
# s.tflock.release()
def _togglelog(s):
if s.textenabled:
@ -531,13 +541,13 @@ class Blinkenlights(VerboseUI):
if remainingsecs:
s.menubar.entryconfig('end', label = "Sync now (%d:%02d remain)" % \
(remainingsecs / 60, remainingsecs % 60))
if s.gettf().getcolor() == 'red':
s.gettf().setcolor('black')
else:
s.gettf().setcolor('red')
time.sleep(sleepsecs)
else:
s.menubar.delete('end')
s.gettf().setcolor('black')
if s.gettf().getcolor() == 'red':
s.gettf().setcolor('black')
else:
s.gettf().setcolor('red')
time.sleep(sleepsecs)
return s.sleeping_abort