[GRASS-SVN] r52287 - grass/trunk/gui/wxpython/gmodeler

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Jul 3 04:49:53 PDT 2012


Author: martinl
Date: 2012-07-03 04:49:53 -0700 (Tue, 03 Jul 2012)
New Revision: 52287

Modified:
   grass/trunk/gui/wxpython/gmodeler/preferences.py
Log:
wxGUI/gmodeler: fix layout of model property dialog (missing wx.EXPAND flag)


Modified: grass/trunk/gui/wxpython/gmodeler/preferences.py
===================================================================
--- grass/trunk/gui/wxpython/gmodeler/preferences.py	2012-07-03 11:05:41 UTC (rev 52286)
+++ grass/trunk/gui/wxpython/gmodeler/preferences.py	2012-07-03 11:49:53 UTC (rev 52287)
@@ -7,7 +7,7 @@
  - preferences::PreferencesDialog
  - preferences::PropertiesDialog
 
-(C) 2010-2011 by the GRASS Development Team
+(C) 2010-2012 by the GRASS Development Team
 
 This program is free software under the GNU General Public License
 (>=v2). Read the file COPYING that comes with GRASS for details.
@@ -458,7 +458,7 @@
     def _layout(self):
         metaSizer = wx.StaticBoxSizer(self.metaBox, wx.VERTICAL)
         gridSizer = wx.GridBagSizer(hgap = 3, vgap = 3)
-        gridSizer.AddGrowableCol(0)
+        gridSizer.AddGrowableCol(1)
         gridSizer.AddGrowableRow(1)
         gridSizer.Add(item = wx.StaticText(parent = self, id = wx.ID_ANY,
                                          label = _("Name:")),
@@ -487,7 +487,7 @@
                       flag = wx.ALIGN_LEFT |
                       wx.ALIGN_CENTER_VERTICAL | wx.EXPAND,
                       pos = (2, 1))
-        metaSizer.Add(item = gridSizer)
+        metaSizer.Add(item = gridSizer, proportion = 1, flag = wx.EXPAND)
         
         cmdSizer = wx.StaticBoxSizer(self.cmdBox, wx.VERTICAL)
         cmdSizer.Add(item = self.overwrite,



More information about the grass-commit mailing list