[GRASS-SVN] r35621 - grass/trunk/gui/wxpython/gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Jan 25 14:53:30 EST 2009


Author: martinl
Date: 2009-01-25 14:53:29 -0500 (Sun, 25 Jan 2009)
New Revision: 35621

Modified:
   grass/trunk/gui/wxpython/gui_modules/nviz_tools.py
Log:
wxNviz: avoid focusing map display when notebook page is changed


Modified: grass/trunk/gui/wxpython/gui_modules/nviz_tools.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/nviz_tools.py	2009-01-25 18:14:22 UTC (rev 35620)
+++ grass/trunk/gui/wxpython/gui_modules/nviz_tools.py	2009-01-25 19:53:29 UTC (rev 35621)
@@ -7,7 +7,7 @@
  - NvizToolWindow
  - ViewPositionWindow
 
-(C) 2008 by the GRASS Development Team
+(C) 2008-2009 by the GRASS Development Team
 
 This program is free software under the GNU General Public
 License (>=v2). Read the file COPYING that comes with GRASS
@@ -91,7 +91,9 @@
         # bindings
         #
         self.Bind(wx.EVT_CLOSE, self.OnClose)
-
+        # avoid focusing map display window
+        self.notebook.Bind(wx.EVT_NOTEBOOK_PAGE_CHANGED, lambda x: None)
+        
         #
         # layout
         #



More information about the grass-commit mailing list