]> code.delx.au - offlineimap/commitdiff
/offlineimap/head: changeset 244
authorjgoerzen <jgoerzen>
Tue, 27 Aug 2002 01:35:21 +0000 (02:35 +0100)
committerjgoerzen <jgoerzen>
Tue, 27 Aug 2002 01:35:21 +0000 (02:35 +0100)
Fixed font specification support

offlineimap/head/offlineimap/ui/Tk.py
offlineimap/head/offlineimap/version.py

index e98230336eb6275d32a53d7f0e4844c06caa979a..4a4857149acf6d16615f67630ee3c815433a3a13 100644 (file)
@@ -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)
index b559cd4f5fa69368bbba432a1ac43db594999f1e..e55b35ceeb8fde0136e94bad2d5d805fd49564fe 100644 (file)
@@ -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(".")