[GRASS-SVN] r60991 - in grass/trunk/gui/wxpython: modules psmap
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu Jun 26 13:26:14 PDT 2014
Author: annakrat
Date: 2014-06-26 13:26:14 -0700 (Thu, 26 Jun 2014)
New Revision: 60991
Modified:
grass/trunk/gui/wxpython/modules/mcalc_builder.py
grass/trunk/gui/wxpython/psmap/frame.py
Log:
wxGUI: fix windows size for wxPython3 on Mac
Modified: grass/trunk/gui/wxpython/modules/mcalc_builder.py
===================================================================
--- grass/trunk/gui/wxpython/modules/mcalc_builder.py 2014-06-26 19:47:54 UTC (rev 60990)
+++ grass/trunk/gui/wxpython/modules/mcalc_builder.py 2014-06-26 20:26:14 UTC (rev 60991)
@@ -262,7 +262,9 @@
self._layout()
self.SetMinSize(self.GetBestSize())
-
+ # workaround for http://trac.wxwidgets.org/ticket/13628
+ self.SetSize(self.GetBestSize())
+
def _return_funct(self,event):
i = event.GetString()
self._addSomething(self.funct_dict[i])
Modified: grass/trunk/gui/wxpython/psmap/frame.py
===================================================================
--- grass/trunk/gui/wxpython/psmap/frame.py 2014-06-26 19:47:54 UTC (rev 60990)
+++ grass/trunk/gui/wxpython/psmap/frame.py 2014-06-26 20:26:14 UTC (rev 60991)
@@ -166,7 +166,9 @@
self._layout()
self.SetMinSize(wx.Size(775, 600))
-
+ # workaround for http://trac.wxwidgets.org/ticket/13628
+ self.SetSize(self.GetBestSize())
+
self.Bind(fnb.EVT_FLATNOTEBOOK_PAGE_CHANGING, self.OnPageChanging)
self.Bind(fnb.EVT_FLATNOTEBOOK_PAGE_CHANGED, self.OnPageChanged)
self.Bind(wx.EVT_CLOSE, self.OnCloseWindow)
More information about the grass-commit
mailing list