[GRASS-SVN] r65041 - grass/branches/releasebranch_7_0/gui/wxpython/dbmgr
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu Apr 9 11:38:21 PDT 2015
Author: wenzeslaus
Date: 2015-04-09 11:38:21 -0700 (Thu, 09 Apr 2015)
New Revision: 65041
Modified:
grass/branches/releasebranch_7_0/gui/wxpython/dbmgr/base.py
Log:
wxGUI: use FitInside instead of deprecated SetVirtualSizeHints (backport r64635)
Modified: grass/branches/releasebranch_7_0/gui/wxpython/dbmgr/base.py
===================================================================
--- grass/branches/releasebranch_7_0/gui/wxpython/dbmgr/base.py 2015-04-09 18:27:17 UTC (rev 65040)
+++ grass/branches/releasebranch_7_0/gui/wxpython/dbmgr/base.py 2015-04-09 18:38:21 UTC (rev 65041)
@@ -2920,8 +2920,12 @@
proportion = 2,
flag = wx.TOP | wx.BOTTOM | wx.RIGHT | wx.EXPAND,
border = 3)
-
- layerSizer.SetVirtualSizeHints(self.addPanel)
+
+ # SetVirtualSizeHints is deprecated and is
+ # exactly the same as FitInside() in wxWidgets 2.9 and later
+ getattr(layerSizer, 'FitInside',
+ layerSizer.SetVirtualSizeHints)(self.addPanel)
+
self.addPanel.SetAutoLayout(True)
self.addPanel.SetSizer(pageSizer)
pageSizer.Fit(self.addPanel)
More information about the grass-commit
mailing list