rev 244 - in offlineimap/head/offlineimap: . ui
[email protected] Mon, 26 Aug 2002 15:35:22 -0500 (EST)
| Newsgroups | gmane.mail.imap.offlineimap.subversion |
|---|---|
| Message-ID | <[email protected]> |
Author: jgoerzen
Date: 2002-08-26 15:35:21 -0500 (Mon, 26 Aug 2002)
New Revision: 244
Modified:
offlineimap/head/offlineimap/ui/Tk.py
offlineimap/head/offlineimap/version.py
Log:
Fixed font specification support
Modified: offlineimap/head/offlineimap/version.py
==============================================================================
--- offlineimap/head/offlineimap/version.py (original)
+++ offlineimap/head/offlineimap/version.py Mon Aug 26 15:35:22 2002
@@ -1,5 +1,5 @@
productname = 'OfflineIMAP'
-versionstr = "3.2.5"
+versionstr = "3.2.6"
revno = long('$Rev$'[6:-2])
revstr = "Rev %d" % revno
datestr = '$Date$'
Modified: offlineimap/head/offlineimap/ui/Tk.py
==============================================================================
--- offlineimap/head/offlineimap/ui/Tk.py (original)
+++ offlineimap/head/offlineimap/ui/Tk.py Mon Aug 26 15:35:22 2002
@@ -368,7 +368,7 @@
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 @@
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 @@
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)