]> code.delx.au - offlineimap/commitdiff
/offlineimap/head: changeset 243
authorjgoerzen <jgoerzen>
Tue, 27 Aug 2002 01:06:02 +0000 (02:06 +0100)
committerjgoerzen <jgoerzen>
Tue, 27 Aug 2002 01:06:02 +0000 (02:06 +0100)
Font size for Blinkenlights UI is now configurable.

offlineimap/head/debian/changelog
offlineimap/head/offlineimap.conf
offlineimap/head/offlineimap/ui/Tk.py

index 043f2551cd2fb35f901f7dc9439322b6bd266339..029ffa8d4b07ca27629bcf5a27cbe83b4efcf9bc 100644 (file)
@@ -3,6 +3,7 @@ offlineimap (3.3.0) unstable; urgency=low
   * Moved executable to bin/offlineimap.  This will allow setup.py to
     properly install it as offlineimap instead of offlineimap.py.
   * Made sure executables use /usr/bin/env in bangpath.
+  * Font size for Blinkenlights interface is now configurable.
 
  -- John Goerzen <jgoerzen@complete.org>  Tue, 20 Aug 2002 10:46:56 -0500
 
index cfdf9f96e45e3e7622a2354948c0ea827b03271a..2b9fee4f8403d895a5e20592d44bf4ef68de9857 100644 (file)
@@ -127,6 +127,10 @@ bufferlines = 500
 
 showlog = false
 
+# Sets the font information.
+
+fontfamily = Helvetica
+fontsize = 8
 
 ##################################################
 # Accounts
index f57cfe28ba28f1fff8aad6e2867882ba9f7015dc..e98230336eb6275d32a53d7f0e4844c06caa979a 100644 (file)
@@ -350,6 +350,14 @@ class LEDThreadFrame:
          
 
 class Blinkenlights(VerboseUI):
+    def __init__(s, config, verbose = 0):
+        VerboseUI.__init__(s, config, verbose)
+        s.fontfamily = 'Helvetica'
+        s.fontsize = 8
+        if config.has_option('ui.Tk.Blinkenlights', 'fontfamily'):
+            s.fontfamily = config.get('ui.Tk.Blinkenlights', 'fontfamily')
+        if config.has_option('ui.Tk.Blinkenlights', 'fontsize'):
+            s.fontsize = config.getint('ui.Tk.Blinkenlights', 'fontsize')
     def _createTopWindow(self):
         VerboseUI._createTopWindow(self, 0)
         #self.top.resizable(width = 0, height = 0)