[GRASS-SVN] r44677 - grass/trunk/gui/wxpython/gui_modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Dec 22 14:40:16 EST 2010
Author: martinl
Date: 2010-12-22 11:40:16 -0800 (Wed, 22 Dec 2010)
New Revision: 44677
Modified:
grass/trunk/gui/wxpython/gui_modules/menuform.py
Log:
wxGUI/dialog: setting height
Modified: grass/trunk/gui/wxpython/gui_modules/menuform.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/menuform.py 2010-12-22 14:26:58 UTC (rev 44676)
+++ grass/trunk/gui/wxpython/gui_modules/menuform.py 2010-12-22 19:40:16 UTC (rev 44677)
@@ -864,9 +864,14 @@
sizeFrame = self.GetBestSize()
self.SetMinSize(sizeFrame)
- self.SetSize(wx.Size(sizeFrame[0], sizeFrame[1] + 0.33 * max(self.notebookpanel.panelMinHeight,
- self.notebookpanel.constrained_size[1])))
+ if hasattr(self, "closebox"):
+ scale = 0.33
+ else:
+ scale = 0.50
+ self.SetSize(wx.Size(sizeFrame[0], sizeFrame[1] + scale * max(self.notebookpanel.panelMinHeight,
+ self.notebookpanel.constrained_size[1])))
+
# thread to update dialog
# create queues
self.requestQ = Queue.Queue()
More information about the grass-commit
mailing list