瀏覽代碼

wxGUI: fix font settings for command output

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@53578 15284696-431f-4ddb-bdfa-cd5b030d7da7
Anna Petrášová 12 年之前
父節點
當前提交
119ea37f7c
共有 1 個文件被更改,包括 3 次插入5 次删除
  1. 3 5
      gui/wxpython/gui_core/goutput.py

+ 3 - 5
gui/wxpython/gui_core/goutput.py

@@ -44,7 +44,7 @@ from core.gcmd       import CommandThread, GMessage, GError, GException, EncodeS
 from gui_core.forms  import GUI
 from gui_core.forms  import GUI
 from gui_core.prompt import GPromptSTC
 from gui_core.prompt import GPromptSTC
 from core.debug      import Debug
 from core.debug      import Debug
-from core.settings   import UserSettings, Settings, GetDisplayVectSettings
+from core.settings   import UserSettings, GetDisplayVectSettings
 from gui_core.ghelp  import SearchModuleWindow
 from gui_core.ghelp  import SearchModuleWindow
 
 
 wxCmdOutput,   EVT_CMD_OUTPUT   = NewEvent()
 wxCmdOutput,   EVT_CMD_OUTPUT   = NewEvent()
@@ -1170,14 +1170,12 @@ class GMStc(stc.StyledTextCtrl):
     def SetStyle(self):
     def SetStyle(self):
         """!Set styles for styled text output windows with type face 
         """!Set styles for styled text output windows with type face 
         and point size selected by user (Courier New 10 is default)"""
         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 == "":
         if typeface == "":
             typeface = "Courier New"
             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:
         if typesize == None or typesize <= 0:
             typesize = 10
             typesize = 10
         typesize = float(typesize)
         typesize = float(typesize)