/offlineimap/head: changeset 184
Updated the manual with blinkenlights. Fixed build-dep to have python2.2-dev. Fixed TTY to has isusable() that requires TTYs on stdin and stdout.
This commit is contained in:
@ -25,6 +25,9 @@ class TTYUI(UIBase):
|
||||
def __init__(s, verbose = 0):
|
||||
s.verbose = verbose
|
||||
s.iswaiting = 0
|
||||
|
||||
def isusable(s):
|
||||
return sys.stdout.isatty() and sys.stdin.isatty()
|
||||
|
||||
def _msg(s, msg):
|
||||
if (currentThread().getName() == 'MainThread'):
|
||||
|
@ -359,8 +359,9 @@ class Blinkenlights(VerboseUI):
|
||||
c.pack(side = BOTTOM, expand = 1)
|
||||
widthmetric = tkFont.Font(family = 'Helvetica', size = 8).measure("0")
|
||||
self.loglines = 5
|
||||
if s.config.has_option("ui.Tk.Blinkenlights", "loglines"):
|
||||
self.loglines = s.config.getint("ui.Tk.Blinkenlights", "loglines")
|
||||
if self.config.has_option("ui.Tk.Blinkenlights", "loglines"):
|
||||
self.loglines = self.config.getint("ui.Tk.Blinkenlights",
|
||||
"loglines")
|
||||
self.text = Text(self.top, bg = 'black', font = ("Helvetica", 8),
|
||||
bd = 0, highlightthickness = 0, setgrid = 0,
|
||||
state = DISABLED, height = self.loglines, wrap = NONE,
|
||||
|
@ -20,8 +20,8 @@ from offlineimap.ui import *
|
||||
import sys
|
||||
|
||||
def findUI(config):
|
||||
uistrlist = ['Tk.TkUI', 'TTY.TTYUI', 'Noninteractive.Basic',
|
||||
'Noninteractive.Quiet']
|
||||
uistrlist = ['Tk.Blinkenlights', 'Tk.VerboseUI', 'TTY.TTYUI',
|
||||
'Noninteractive.Basic', 'Noninteractive.Quiet']
|
||||
if config.has_option("general", "ui"):
|
||||
uistrlist = config.get("general", "ui").replace(" ", "").split(",")
|
||||
for uistr in uistrlist:
|
||||
|
Reference in New Issue
Block a user