[GRASS-SVN] r48447 - in grass/branches/develbranch_6/gui/wxpython: . gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Sep 24 07:58:56 EDT 2011


Author: martinl
Date: 2011-09-24 04:58:56 -0700 (Sat, 24 Sep 2011)
New Revision: 48447

Modified:
   grass/branches/develbranch_6/gui/wxpython/gui_modules/menuform.py
   grass/branches/develbranch_6/gui/wxpython/wxgui.py
Log:
wxGUI: re-arange command output buttons - r48344
      Mac OSX-related fix
      (merge r48446 from trunk)


Modified: grass/branches/develbranch_6/gui/wxpython/gui_modules/menuform.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_modules/menuform.py	2011-09-24 11:56:46 UTC (rev 48446)
+++ grass/branches/develbranch_6/gui/wxpython/gui_modules/menuform.py	2011-09-24 11:58:56 UTC (rev 48447)
@@ -544,6 +544,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/branches/develbranch_6/gui/wxpython/wxgui.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/wxgui.py	2011-09-24 11:56:46 UTC (rev 48446)
+++ grass/branches/develbranch_6/gui/wxpython/wxgui.py	2011-09-24 11:58:56 UTC (rev 48447)
@@ -212,6 +212,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