Browse Source

wxNviz: avoid focusing map display when notebook page is changed

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@35621 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 16 years ago
parent
commit
7383ea3155
1 changed files with 4 additions and 2 deletions
  1. 4 2
      gui/wxpython/gui_modules/nviz_tools.py

+ 4 - 2
gui/wxpython/gui_modules/nviz_tools.py

@@ -7,7 +7,7 @@ Classes:
  - 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 @@ class NvizToolWindow(wx.Frame):
         # 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
         #