[GRASS-SVN] r40263 - in grass/trunk/gui/wxpython: . gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Jan 5 17:36:57 EST 2010


Author: martinl
Date: 2010-01-05 17:36:56 -0500 (Tue, 05 Jan 2010)
New Revision: 40263

Modified:
   grass/trunk/gui/wxpython/gui_modules/goutput.py
   grass/trunk/gui/wxpython/gui_modules/menuform.py
   grass/trunk/gui/wxpython/wxgui.py
Log:
wxGUI: fix sash position (tested on Linux/Windows)


Modified: grass/trunk/gui/wxpython/gui_modules/goutput.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/goutput.py	2010-01-05 20:14:52 UTC (rev 40262)
+++ grass/trunk/gui/wxpython/gui_modules/goutput.py	2010-01-05 22:36:56 UTC (rev 40263)
@@ -283,10 +283,9 @@
         # split window
         if self.parent.GetName() == 'LayerManager':
             self.SplitHorizontally(self.panelOutput, self.panelPrompt, -75)
-            self.SetMinimumPaneSize(100)
         else:
             self.SplitHorizontally(self.panelOutput, self.panelPrompt, -10)
-            self.SetMinimumPaneSize(45)
+        self.SetMinimumPaneSize(35)
         self.Fit()
         
         # layout

Modified: grass/trunk/gui/wxpython/gui_modules/menuform.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/menuform.py	2010-01-05 20:14:52 UTC (rev 40262)
+++ grass/trunk/gui/wxpython/gui_modules/menuform.py	2010-01-05 22:36:56 UTC (rev 40263)
@@ -851,6 +851,9 @@
         if width > 640: width = 640
         if height > 480: height = 480
         self.SetSize((width,height))
+        
+        # fix goutput's pane size
+        self.goutput.SetSashPosition(int(self.GetSize()[1] * .75))
 
     def updateValuesHook(self):
         """!Update status bar data"""

Modified: grass/trunk/gui/wxpython/wxgui.py
===================================================================
--- grass/trunk/gui/wxpython/wxgui.py	2010-01-05 20:14:52 UTC (rev 40262)
+++ grass/trunk/gui/wxpython/wxgui.py	2010-01-05 22:36:56 UTC (rev 40263)
@@ -179,9 +179,11 @@
         # -> OnSize() -> UpdateMap()
         if self.curr_page and not self.curr_page.maptree.mapdisplay.IsShown():
             self.curr_page.maptree.mapdisplay.Show()
-
+        
         # redirect stderr to log area    
         self.goutput.Redirect()
+        # fix goutput's pane size
+        self.goutput.SetSashPosition(int(self.GetSize()[1] * .45))
         
         # start with layer manager on top
         self.curr_page.maptree.mapdisplay.Raise()



More information about the grass-commit mailing list