[GRASS-SVN] r62491 - grass/trunk/gui/wxpython/modules

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Oct 30 18:26:43 PDT 2014


Author: annakrat
Date: 2014-10-30 18:26:43 -0700 (Thu, 30 Oct 2014)
New Revision: 62491

Modified:
   grass/trunk/gui/wxpython/modules/colorrules.py
Log:
wxGUI: AddGrowableRow must be after adding rows for wxPython 3

Modified: grass/trunk/gui/wxpython/modules/colorrules.py
===================================================================
--- grass/trunk/gui/wxpython/modules/colorrules.py	2014-10-30 12:05:09 UTC (rev 62490)
+++ grass/trunk/gui/wxpython/modules/colorrules.py	2014-10-31 01:26:43 UTC (rev 62491)
@@ -490,8 +490,6 @@
     def _createBody(self, parent):
         """Create dialog body consisting of rules and preview"""
         bodySizer =  wx.GridBagSizer(hgap = 5, vgap = 5)
-        bodySizer.AddGrowableRow(1)
-        bodySizer.AddGrowableCol(2)
 
         row = 0
         # label with range
@@ -535,6 +533,9 @@
                       flag = wx.ALIGN_CENTER_VERTICAL)
         bodySizer.Add(item = self.rulesPanel.btnAdd, pos = (row, 1))
         
+        bodySizer.AddGrowableRow(1)
+        bodySizer.AddGrowableCol(2)
+
         return bodySizer    
         
     def InitDisplay(self):



More information about the grass-commit mailing list