/head: changeset 106
Updated and enhanced the TTY display to use thread names as well.
This commit is contained in:
parent
188497d972
commit
acc436beb1
@ -26,8 +26,8 @@ from threading import *
|
||||
if '-d' in sys.argv:
|
||||
imaplib.Debug = 5
|
||||
|
||||
#ui = offlineimap.ui.TTY.TTYUI()
|
||||
ui = offlineimap.ui.Tk.TkUI()
|
||||
ui = offlineimap.ui.TTY.TTYUI()
|
||||
#ui = offlineimap.ui.Tk.TkUI()
|
||||
ui.init_banner()
|
||||
|
||||
config = ConfigParser()
|
||||
|
@ -27,7 +27,10 @@ class TTYUI(UIBase):
|
||||
self.iswaiting = 0
|
||||
|
||||
def _msg(s, msg):
|
||||
if currentThread().getName() == 'MainThread':
|
||||
print msg
|
||||
else:
|
||||
print "%-30s %s" % (currentThread().getName(), msg)
|
||||
sys.stdout.flush()
|
||||
|
||||
def getpass(s, accountname, config):
|
||||
|
Loading…
Reference in New Issue
Block a user