/offlineimap/head: changeset 191

More tweaks
This commit is contained in:
jgoerzen 2002-07-25 06:06:01 +01:00
parent eb790cd78c
commit e45e737640

View File

@ -350,7 +350,7 @@ class LEDThreadFrame:
class Blinkenlights(VerboseUI): class Blinkenlights(VerboseUI):
def _createTopWindow(self): def _createTopWindow(self):
VerboseUI._createTopWindow(self, 0) VerboseUI._createTopWindow(self, 0)
#self.top.resizable(width = 0, height = 0) self.top.resizable(width = 0, height = 0)
self.top.configure(background = 'black', bd = 0) self.top.configure(background = 'black', bd = 0)
c = LEDCanvas(self.top, background = 'black', height = 20, bd = 0, c = LEDCanvas(self.top, background = 'black', height = 20, bd = 0,
highlightthickness = 0) highlightthickness = 0)
@ -369,9 +369,9 @@ class Blinkenlights(VerboseUI):
"bufferlines") "bufferlines")
self.text = ScrolledText(self.top, bg = 'black', #scrollbar = 'y', self.text = ScrolledText(self.top, bg = 'black', #scrollbar = 'y',
font = ("Helvetica", 8), font = ("Helvetica", 8),
bd = 0, highlightthickness = 0, setgrid = 0, bd = 0, highlightthickness = 0, setgrid = 0,
state = DISABLED, height = self.loglines, wrap = NONE, state = DISABLED, height = self.loglines,
width = int(c.cget('width')) / widthmetric) wrap = NONE, width = 10)
self.text.vbar.configure(background = '#000050', self.text.vbar.configure(background = '#000050',
activebackground = 'blue', activebackground = 'blue',
highlightbackground = 'black', highlightbackground = 'black',
@ -390,6 +390,7 @@ class Blinkenlights(VerboseUI):
s._createTopWindow() s._createTopWindow()
menubar = Menu(s.top, activebackground = "black", menubar = Menu(s.top, activebackground = "black",
activeforeground = "white", activeforeground = "white",
activeborderwidth = 0,
background = "black", foreground = "blue", background = "black", foreground = "blue",
font = ("Helvetica", 8), bd = 0) font = ("Helvetica", 8), bd = 0)
menubar.add_command(label = "About", command = s.showlicense) menubar.add_command(label = "About", command = s.showlicense)
@ -422,13 +423,10 @@ class Blinkenlights(VerboseUI):
s.menubar.insert_command('Exit', label = 'Show Log', s.menubar.insert_command('Exit', label = 'Show Log',
command = s._togglelog) command = s._togglelog)
s.top.update() s.top.update()
print s.top.winfo_reqheight(), s.top.winfo_reqwidth()
#s.top.configure(height = s.top.winfo_reqheight(),
# width = s.top.winfo_reqwidth())
s.top.geometry("%dx%d" % (s.top.winfo_reqwidth(), s.top.geometry("%dx%d" % (s.top.winfo_reqwidth(),
s.top.winfo_reqheight())) s.top.winfo_reqheight()))
s.top.pack_propagate(1) s.top.update()
s.text.pack_propagate(1) s.top.resizable(width = 0, height = 0)
else: else:
s.text.pack(side = BOTTOM, expand = 1, fill = BOTH) s.text.pack(side = BOTTOM, expand = 1, fill = BOTH)
@ -448,6 +446,8 @@ class Blinkenlights(VerboseUI):
logmenu.add_command(label = "Smaller Log", command = s._smallerlog) logmenu.add_command(label = "Smaller Log", command = s._smallerlog)
s.menubar.insert_cascade('Exit', label = "Log", menu = logmenu) s.menubar.insert_cascade('Exit', label = "Log", menu = logmenu)
s._rescroll() s._rescroll()
s.top.resizable(width = 1, height = 1)
def acct(s, accountname): def acct(s, accountname):
s.gettf().setcolor('purple') s.gettf().setcolor('purple')