/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:
|
if '-d' in sys.argv:
|
||||||
imaplib.Debug = 5
|
imaplib.Debug = 5
|
||||||
|
|
||||||
#ui = offlineimap.ui.TTY.TTYUI()
|
ui = offlineimap.ui.TTY.TTYUI()
|
||||||
ui = offlineimap.ui.Tk.TkUI()
|
#ui = offlineimap.ui.Tk.TkUI()
|
||||||
ui.init_banner()
|
ui.init_banner()
|
||||||
|
|
||||||
config = ConfigParser()
|
config = ConfigParser()
|
||||||
|
@ -27,7 +27,10 @@ class TTYUI(UIBase):
|
|||||||
self.iswaiting = 0
|
self.iswaiting = 0
|
||||||
|
|
||||||
def _msg(s, msg):
|
def _msg(s, msg):
|
||||||
|
if currentThread().getName() == 'MainThread':
|
||||||
print msg
|
print msg
|
||||||
|
else:
|
||||||
|
print "%-30s %s" % (currentThread().getName(), msg)
|
||||||
sys.stdout.flush()
|
sys.stdout.flush()
|
||||||
|
|
||||||
def getpass(s, accountname, config):
|
def getpass(s, accountname, config):
|
||||||
|
Loading…
Reference in New Issue
Block a user