[GRASS-SVN] r48446 - in grass/trunk/gui/wxpython: . gui_modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Sat Sep 24 07:56:46 EDT 2011
Author: martinl
Date: 2011-09-24 04:56:46 -0700 (Sat, 24 Sep 2011)
New Revision: 48446
Modified:
grass/trunk/gui/wxpython/gui_modules/menuform.py
grass/trunk/gui/wxpython/wxgui.py
Log:
wxGUI: re-arange command output buttons - r48344
Mac OSX-related fix
Modified: grass/trunk/gui/wxpython/gui_modules/menuform.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/menuform.py 2011-09-24 11:48:58 UTC (rev 48445)
+++ grass/trunk/gui/wxpython/gui_modules/menuform.py 2011-09-24 11:56:46 UTC (rev 48446)
@@ -593,6 +593,10 @@
self.SetSize(wx.Size(min(width, 650),
min(height, 500)))
+ # fix goutput's pane size (required for Mac OSX)
+ if self.goutput:
+ self.goutput.SetSashPosition(int(self.GetSize()[1] * .75))
+
def updateValuesHook(self, event = None):
"""!Update status bar data"""
self.SetStatusText(' '.join(self.notebookpanel.createCmd(ignoreErrors = True)))
Modified: grass/trunk/gui/wxpython/wxgui.py
===================================================================
--- grass/trunk/gui/wxpython/wxgui.py 2011-09-24 11:48:58 UTC (rev 48445)
+++ grass/trunk/gui/wxpython/wxgui.py 2011-09-24 11:56:46 UTC (rev 48446)
@@ -219,6 +219,9 @@
# redirect stderr to log area
self.goutput.Redirect()
+ # fix goutput's pane size (required for Mac OSX)
+ self.goutput.SetSashPosition(int(self.GetSize()[1] * .45))
+
self.workspaceChanged = False
# start with layer manager on top
More information about the grass-commit
mailing list