[GRASS-SVN] r35623 - grass/branches/develbranch_6/gui/wxpython/gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Jan 25 14:58:07 EST 2009


Author: martinl
Date: 2009-01-25 14:58:06 -0500 (Sun, 25 Jan 2009)
New Revision: 35623

Modified:
   grass/branches/develbranch_6/gui/wxpython/gui_modules/nviz_tools.py
Log:
wxNviz: avoid focusing map display when notebook page is changed
       (merge from trunk, r35621)


Modified: grass/branches/develbranch_6/gui/wxpython/gui_modules/nviz_tools.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_modules/nviz_tools.py	2009-01-25 19:55:58 UTC (rev 35622)
+++ grass/branches/develbranch_6/gui/wxpython/gui_modules/nviz_tools.py	2009-01-25 19:58:06 UTC (rev 35623)
@@ -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