[GRASS-SVN] r53579 - grass/branches/develbranch_6/gui/wxpython/gui_core

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Oct 27 03:05:30 PDT 2012


Author: annakrat
Date: 2012-10-27 03:05:30 -0700 (Sat, 27 Oct 2012)
New Revision: 53579

Modified:
   grass/branches/develbranch_6/gui/wxpython/gui_core/goutput.py
Log:
wxGUI: fix font settings for command output (merge from trunk, r53578)

Modified: grass/branches/develbranch_6/gui/wxpython/gui_core/goutput.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_core/goutput.py	2012-10-27 09:49:02 UTC (rev 53578)
+++ grass/branches/develbranch_6/gui/wxpython/gui_core/goutput.py	2012-10-27 10:05:30 UTC (rev 53579)
@@ -44,7 +44,7 @@
 from gui_core.forms  import GUI
 from gui_core.prompt import GPromptSTC
 from core.debug      import Debug
-from core.settings   import UserSettings, Settings
+from core.settings   import UserSettings
 from gui_core.ghelp  import SearchModuleWindow
 
 wxCmdOutput,   EVT_CMD_OUTPUT   = NewEvent()
@@ -1148,14 +1148,12 @@
     def SetStyle(self):
         """!Set styles for styled text output windows with type face 
         and point size selected by user (Courier New 10 is default)"""
-
-        settings = Settings()
         
-        typeface = settings.Get(group = 'appearance', key = 'outputfont', subkey = 'type')   
+        typeface = UserSettings.Get(group = 'appearance', key = 'outputfont', subkey = 'type')   
         if typeface == "":
             typeface = "Courier New"
         
-        typesize = settings.Get(group = 'appearance', key = 'outputfont', subkey = 'size')
+        typesize = UserSettings.Get(group = 'appearance', key = 'outputfont', subkey = 'size')
         if typesize == None or typesize <= 0:
             typesize = 10
         typesize = float(typesize)



More information about the grass-commit mailing list