[GRASS-SVN] r62492 - in grass/branches/releasebranch_7_0: . gui/wxpython/modules

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Oct 30 18:27:51 PDT 2014


Author: annakrat
Date: 2014-10-30 18:27:51 -0700 (Thu, 30 Oct 2014)
New Revision: 62492

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


Property changes on: grass/branches/releasebranch_7_0
___________________________________________________________________
Modified: svn:mergeinfo
   - /grass/trunk:62487
   + /grass/trunk:62487,62491

Modified: grass/branches/releasebranch_7_0/gui/wxpython/modules/colorrules.py
===================================================================
--- grass/branches/releasebranch_7_0/gui/wxpython/modules/colorrules.py	2014-10-31 01:26:43 UTC (rev 62491)
+++ grass/branches/releasebranch_7_0/gui/wxpython/modules/colorrules.py	2014-10-31 01:27:51 UTC (rev 62492)
@@ -488,8 +488,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
@@ -533,6 +531,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