From f1aeb50d041811f58b35c7dd808700a4f234ba56 Mon Sep 17 00:00:00 2001 From: jgoerzen Date: Tue, 27 Aug 2002 02:35:21 +0100 Subject: [PATCH] /offlineimap/head: changeset 244 Fixed font specification support --- offlineimap/head/offlineimap/ui/Tk.py | 8 ++++---- offlineimap/head/offlineimap/version.py | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/offlineimap/head/offlineimap/ui/Tk.py b/offlineimap/head/offlineimap/ui/Tk.py index e982303..4a48571 100644 --- a/offlineimap/head/offlineimap/ui/Tk.py +++ b/offlineimap/head/offlineimap/ui/Tk.py @@ -368,7 +368,7 @@ class Blinkenlights(VerboseUI): c.createLEDLock() self.canvas = c 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 if self.config.has_option("ui.Tk.Blinkenlights", "loglines"): self.loglines = self.config.getint("ui.Tk.Blinkenlights", @@ -378,10 +378,10 @@ class Blinkenlights(VerboseUI): self.bufferlines = self.config.getint("ui.Tk.Blinkenlights", "bufferlines") self.text = ScrolledText(self.top, bg = 'black', #scrollbar = 'y', - font = ("Helvetica", 8), + font = (self.fontfamily, self.fontsize), bd = 0, highlightthickness = 0, setgrid = 0, state = DISABLED, height = self.loglines, - wrap = NONE, width = 10) + wrap = NONE, width = 60) self.text.vbar.configure(background = '#000050', activebackground = 'blue', highlightbackground = 'black', @@ -401,7 +401,7 @@ class Blinkenlights(VerboseUI): activeforeground = "white", activeborderwidth = 0, 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 = "Show Log", command = s._togglelog) menubar.add_command(label = "Exit", command = s.terminate) diff --git a/offlineimap/head/offlineimap/version.py b/offlineimap/head/offlineimap/version.py index b559cd4..e55b35c 100644 --- a/offlineimap/head/offlineimap/version.py +++ b/offlineimap/head/offlineimap/version.py @@ -1,8 +1,8 @@ productname = 'OfflineIMAP' -versionstr = "3.2.5" -revno = long('$Rev: 234 $'[6:-2]) +versionstr = "3.2.6" +revno = long('$Rev: 244 $'[6:-2]) 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(".")