[GRASS-SVN] r35827 - grass/trunk/gui/wxpython/gui_modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Feb 9 09:48:54 EST 2009
Author: martinl
Date: 2009-02-09 09:48:54 -0500 (Mon, 09 Feb 2009)
New Revision: 35827
Modified:
grass/trunk/gui/wxpython/gui_modules/nviz_tools.py
Log:
wxGUI: attempt to fix nviz page switching on Mac
Modified: grass/trunk/gui/wxpython/gui_modules/nviz_tools.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/nviz_tools.py 2009-02-09 13:06:52 UTC (rev 35826)
+++ grass/trunk/gui/wxpython/gui_modules/nviz_tools.py 2009-02-09 14:48:54 UTC (rev 35827)
@@ -91,8 +91,7 @@
# bindings
#
self.Bind(wx.EVT_CLOSE, self.OnClose)
- # avoid focusing map display window
- self.notebook.Bind(wx.EVT_NOTEBOOK_PAGE_CHANGED, lambda x: None)
+ self.notebook.Bind(wx.EVT_NOTEBOOK_PAGE_CHANGED, self.OnPageChanged)
#
# layout
@@ -102,6 +101,9 @@
self.SetSize(size)
+ def OnPageChanged(self, event):
+ pass # do nothing, avoid focusing map display window
+
def PostViewEvent(self, zExag=False):
"""Change view settings"""
event = wxUpdateView(zExag=zExag)
More information about the grass-commit
mailing list