[GRASS-SVN] r62493 - grass/branches/releasebranch_6_4/gui/wxpython/modules

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Oct 30 18:28:24 PDT 2014


Author: annakrat
Date: 2014-10-30 18:28:24 -0700 (Thu, 30 Oct 2014)
New Revision: 62493

Modified:
   grass/branches/releasebranch_6_4/gui/wxpython/modules/colorrules.py
Log:
wxGUI: AddGrowableRow must be after adding rows for wxPython 3 (merge from trunk, r62491)

Modified: grass/branches/releasebranch_6_4/gui/wxpython/modules/colorrules.py
===================================================================
--- grass/branches/releasebranch_6_4/gui/wxpython/modules/colorrules.py	2014-10-31 01:27:51 UTC (rev 62492)
+++ grass/branches/releasebranch_6_4/gui/wxpython/modules/colorrules.py	2014-10-31 01:28:24 UTC (rev 62493)
@@ -465,8 +465,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
@@ -509,7 +507,10 @@
         bodySizer.Add(item = self.rulesPanel.numRules, pos = (row, 0),
                       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