[GRASS-SVN] r53578 - grass/trunk/gui/wxpython/gui_core
svn_grass at osgeo.org
svn_grass at osgeo.org
Sat Oct 27 02:49:03 PDT 2012
Author: annakrat
Date: 2012-10-27 02:49:02 -0700 (Sat, 27 Oct 2012)
New Revision: 53578
Modified:
grass/trunk/gui/wxpython/gui_core/goutput.py
Log:
wxGUI: fix font settings for command output
Modified: grass/trunk/gui/wxpython/gui_core/goutput.py
===================================================================
--- grass/trunk/gui/wxpython/gui_core/goutput.py 2012-10-27 07:55:18 UTC (rev 53577)
+++ grass/trunk/gui/wxpython/gui_core/goutput.py 2012-10-27 09:49:02 UTC (rev 53578)
@@ -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, GetDisplayVectSettings
+from core.settings import UserSettings, GetDisplayVectSettings
from gui_core.ghelp import SearchModuleWindow
wxCmdOutput, EVT_CMD_OUTPUT = NewEvent()
@@ -1170,14 +1170,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