[GRASS-SVN] r60369 - grass/trunk/gui/wxpython/gui_core

svn_grass at osgeo.org svn_grass at osgeo.org
Tue May 20 01:52:18 PDT 2014


Author: zarch
Date: 2014-05-20 01:52:18 -0700 (Tue, 20 May 2014)
New Revision: 60369

Modified:
   grass/trunk/gui/wxpython/gui_core/goutput.py
Log:
Remove deprecated warning in wxpython3

Modified: grass/trunk/gui/wxpython/gui_core/goutput.py
===================================================================
--- grass/trunk/gui/wxpython/gui_core/goutput.py	2014-05-20 08:18:30 UTC (rev 60368)
+++ grass/trunk/gui/wxpython/gui_core/goutput.py	2014-05-20 08:52:18 UTC (rev 60369)
@@ -226,7 +226,9 @@
         self.outputSizer.SetSizeHints(self)
         self.panelOutput.SetSizer(self.outputSizer)
         # eliminate gtk_widget_size_allocate() warnings
-        self.outputSizer.SetVirtualSizeHints(self.panelOutput)
+        # avoid to use a deprecated method in wxPython >= 2.9
+        getattr(self.outputSizer, 'FitInside',
+                self.outputSizer.SetVirtualSizeHints)(self.panelOutput)
         
         if self._gcstyle & GC_PROMPT:
             promptSizer.Fit(self)



More information about the grass-commit mailing list