Bläddra i källkod

wxGUI: command console is optional

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@40306 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 15 år sedan
förälder
incheckning
9bcb5b5152
1 ändrade filer med 3 tillägg och 6 borttagningar
  1. 3 6
      gui/wxpython/gui_modules/menuform.py

+ 3 - 6
gui/wxpython/gui_modules/menuform.py

@@ -680,11 +680,7 @@ class mainFrame(wx.Frame):
             self.standalone   = False
         else:
             self.standalone = True
-            #             try:
-            #                 self.goutput  = self.parent.GetLogWindow()
-            #             except:
-            #                 self.goutput  = None
-
+        
         # logo+description
         topsizer = wx.BoxSizer(wx.HORIZONTAL)
 
@@ -853,7 +849,8 @@ class mainFrame(wx.Frame):
         self.SetSize((width,height))
         
         # fix goutput's pane size
-        self.goutput.SetSashPosition(int(self.GetSize()[1] * .75))
+        if self.goutput:
+            self.goutput.SetSashPosition(int(self.GetSize()[1] * .75))
 
     def updateValuesHook(self):
         """!Update status bar data"""