[GRASS-SVN] r35828 -
grass/branches/develbranch_6/gui/wxpython/gui_modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Feb 9 09:52:55 EST 2009
Author: martinl
Date: 2009-02-09 09:52:55 -0500 (Mon, 09 Feb 2009)
New Revision: 35828
Modified:
grass/branches/develbranch_6/gui/wxpython/gui_modules/nviz_tools.py
Log:
wxGUI: attempt to fix nviz page switching on Mac
(merge from devbr6, r35827)
Modified: grass/branches/develbranch_6/gui/wxpython/gui_modules/nviz_tools.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_modules/nviz_tools.py 2009-02-09 14:48:54 UTC (rev 35827)
+++ grass/branches/develbranch_6/gui/wxpython/gui_modules/nviz_tools.py 2009-02-09 14:52:55 UTC (rev 35828)
@@ -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