/offlineimap/head: changeset 243

Font size for Blinkenlights UI is now configurable.
This commit is contained in:
jgoerzen 2002-08-27 02:06:02 +01:00
parent 1c8b42500b
commit 6a6a49b1a9
3 changed files with 13 additions and 0 deletions

View 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

View File

@ -127,6 +127,10 @@ bufferlines = 500
showlog = false
# Sets the font information.
fontfamily = Helvetica
fontsize = 8
##################################################
# Accounts

View 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)