Browse Source

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 năm trước cách đây
mục cha
commit
119ea37f7c
1 tập tin đã thay đổi với 3 bổ sung5 xóa
  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.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 @@ class GMStc(stc.StyledTextCtrl):
     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)