/offlineimap/head: changeset 244

Fixed font specification support
This commit is contained in:
jgoerzen 2002-08-27 02:35:21 +01:00
parent 6a6a49b1a9
commit f1aeb50d04
2 changed files with 7 additions and 7 deletions

View File

@ -368,7 +368,7 @@ class Blinkenlights(VerboseUI):
c.createLEDLock() c.createLEDLock()
self.canvas = c self.canvas = c
c.pack(side = BOTTOM, expand = 0, fill = X) c.pack(side = BOTTOM, expand = 0, fill = X)
widthmetric = tkFont.Font(family = 'Helvetica', size = 8).measure("0") widthmetric = tkFont.Font(family = self.fontfamily, size = self.fontsize).measure("0")
self.loglines = 5 self.loglines = 5
if self.config.has_option("ui.Tk.Blinkenlights", "loglines"): if self.config.has_option("ui.Tk.Blinkenlights", "loglines"):
self.loglines = self.config.getint("ui.Tk.Blinkenlights", self.loglines = self.config.getint("ui.Tk.Blinkenlights",
@ -378,10 +378,10 @@ class Blinkenlights(VerboseUI):
self.bufferlines = self.config.getint("ui.Tk.Blinkenlights", self.bufferlines = self.config.getint("ui.Tk.Blinkenlights",
"bufferlines") "bufferlines")
self.text = ScrolledText(self.top, bg = 'black', #scrollbar = 'y', self.text = ScrolledText(self.top, bg = 'black', #scrollbar = 'y',
font = ("Helvetica", 8), font = (self.fontfamily, self.fontsize),
bd = 0, highlightthickness = 0, setgrid = 0, bd = 0, highlightthickness = 0, setgrid = 0,
state = DISABLED, height = self.loglines, state = DISABLED, height = self.loglines,
wrap = NONE, width = 10) wrap = NONE, width = 60)
self.text.vbar.configure(background = '#000050', self.text.vbar.configure(background = '#000050',
activebackground = 'blue', activebackground = 'blue',
highlightbackground = 'black', highlightbackground = 'black',
@ -401,7 +401,7 @@ class Blinkenlights(VerboseUI):
activeforeground = "white", activeforeground = "white",
activeborderwidth = 0, activeborderwidth = 0,
background = "black", foreground = "blue", background = "black", foreground = "blue",
font = ("Helvetica", 8), bd = 0) font = (s.fontfamily, s.fontsize), bd = 0)
menubar.add_command(label = "About", command = s.showlicense) menubar.add_command(label = "About", command = s.showlicense)
menubar.add_command(label = "Show Log", command = s._togglelog) menubar.add_command(label = "Show Log", command = s._togglelog)
menubar.add_command(label = "Exit", command = s.terminate) menubar.add_command(label = "Exit", command = s.terminate)

View File

@ -1,8 +1,8 @@
productname = 'OfflineIMAP' productname = 'OfflineIMAP'
versionstr = "3.2.5" versionstr = "3.2.6"
revno = long('$Rev: 234 $'[6:-2]) revno = long('$Rev: 244 $'[6:-2])
revstr = "Rev %d" % revno revstr = "Rev %d" % revno
datestr = '$Date: 2002-08-09 15:52:09 -0500 (Fri, 09 Aug 2002) $' datestr = '$Date: 2002-08-26 15:35:21 -0500 (Mon, 26 Aug 2002) $'
versionlist = versionstr.split(".") versionlist = versionstr.split(".")