[GRASS-SVN] r40306 - grass/trunk/gui/wxpython/gui_modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu Jan 7 17:14:02 EST 2010
Author: martinl
Date: 2010-01-07 17:14:01 -0500 (Thu, 07 Jan 2010)
New Revision: 40306
Modified:
grass/trunk/gui/wxpython/gui_modules/menuform.py
Log:
wxGUI: command console is optional
Modified: grass/trunk/gui/wxpython/gui_modules/menuform.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/menuform.py 2010-01-07 17:25:07 UTC (rev 40305)
+++ grass/trunk/gui/wxpython/gui_modules/menuform.py 2010-01-07 22:14:01 UTC (rev 40306)
@@ -680,11 +680,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)
@@ -853,7 +849,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