[GRASS-SVN] r39857 -
grass/branches/develbranch_6/gui/wxpython/gui_modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Nov 30 01:06:41 EST 2009
Author: cmbarton
Date: 2009-11-30 01:06:40 -0500 (Mon, 30 Nov 2009)
New Revision: 39857
Modified:
grass/branches/develbranch_6/gui/wxpython/gui_modules/goutput.py
Log:
Fix bug that hits first time users of GRASS lacking a .grasswx6 file.
Modified: grass/branches/develbranch_6/gui/wxpython/gui_modules/goutput.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_modules/goutput.py 2009-11-30 01:31:46 UTC (rev 39856)
+++ grass/branches/develbranch_6/gui/wxpython/gui_modules/goutput.py 2009-11-30 06:06:40 UTC (rev 39857)
@@ -796,30 +796,31 @@
settings = preferences.Settings()
- self.typeface = settings.Get(group='display', key='outputfont', subkey='type')
- if self.typeface == "": self.typeface = "Courier New"
+ typeface = settings.Get(group='display', key='outputfont', subkey='type')
+ if typeface == "": typeface = "Courier New"
- self.typesize = float(settings.Get(group='display', key='outputfont', subkey='size'))
- if self.typesize == None or self.typesize <= 0: self.typesize = 10
+ typesize = settings.Get(group='display', key='outputfont', subkey='size')
+ if typesize == None or typesize <= 0: typesize = 10
+ typesize = float(typesize)
self.StyleDefault = 0
- self.StyleDefaultSpec = "face:%s,size:%d,fore:#000000,back:#FFFFFF" % (self.typeface, self.typesize)
+ self.StyleDefaultSpec = "face:%s,size:%d,fore:#000000,back:#FFFFFF" % (typeface, typesize)
self.StyleCommand = 1
- self.StyleCommandSpec = "face:%s,size:%d,,fore:#000000,back:#bcbcbc" % (self.typeface, self.typesize)
+ self.StyleCommandSpec = "face:%s,size:%d,,fore:#000000,back:#bcbcbc" % (typeface, typesize)
self.StyleOutput = 2
- self.StyleOutputSpec = "face:%s,size:%d,,fore:#000000,back:#FFFFFF" % (self.typeface, self.typesize)
+ self.StyleOutputSpec = "face:%s,size:%d,,fore:#000000,back:#FFFFFF" % (typeface, typesize)
# fatal error
self.StyleError = 3
- self.StyleErrorSpec = "face:%s,size:%d,,fore:#7F0000,back:#FFFFFF" % (self.typeface, self.typesize)
+ self.StyleErrorSpec = "face:%s,size:%d,,fore:#7F0000,back:#FFFFFF" % (typeface, typesize)
# warning
self.StyleWarning = 4
- self.StyleWarningSpec = "face:%s,size:%d,,fore:#0000FF,back:#FFFFFF" % (self.typeface, self.typesize)
+ self.StyleWarningSpec = "face:%s,size:%d,,fore:#0000FF,back:#FFFFFF" % (typeface, typesize)
# message
self.StyleMessage = 5
- self.StyleMessageSpec = "face:%s,size:%d,,fore:#000000,back:#FFFFFF" % (self.typeface, self.typesize)
+ self.StyleMessageSpec = "face:%s,size:%d,,fore:#000000,back:#FFFFFF" % (typeface, typesize)
# unknown
self.StyleUnknown = 6
- self.StyleUnknownSpec = "face:%s,size:%d,,fore:#000000,back:#FFFFFF" % (self.typeface, self.typesize)
+ self.StyleUnknownSpec = "face:%s,size:%d,,fore:#000000,back:#FFFFFF" % (typeface, typesize)
# default and clear => init
self.StyleSetSpec(wx.stc.STC_STYLE_DEFAULT, self.StyleDefaultSpec)
More information about the grass-commit
mailing list