[GRASS-SVN] r40307 - grass/branches/develbranch_6/gui/wxpython/gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Jan 7 17:16:32 EST 2010


Author: martinl
Date: 2010-01-07 17:16:32 -0500 (Thu, 07 Jan 2010)
New Revision: 40307

Modified:
   grass/branches/develbranch_6/gui/wxpython/gui_modules/menuform.py
Log:
wxGUI: command console is optional
       (merge r40306 from trunk)


Modified: grass/branches/develbranch_6/gui/wxpython/gui_modules/menuform.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_modules/menuform.py	2010-01-07 22:14:01 UTC (rev 40306)
+++ grass/branches/develbranch_6/gui/wxpython/gui_modules/menuform.py	2010-01-07 22:16:32 UTC (rev 40307)
@@ -634,11 +634,7 @@
             self.standalone   = False
         else:
             self.standalone = True
-            #             try:
-            #                 self.goutput  = self.parent.GetLogWindow()
-            #             except:
-            #                 self.goutput  = None
-
+        
         # logo+description
         topsizer = wx.BoxSizer(wx.HORIZONTAL)
 
@@ -807,7 +803,8 @@
         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"""



More information about the grass-commit mailing list