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

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Mar 8 00:41:52 EST 2009


Author: cmbarton
Date: 2009-03-08 00:41:52 -0500 (Sun, 08 Mar 2009)
New Revision: 36240

Modified:
   grass/trunk/gui/wxpython/gui_modules/nviz_tools.py
Log:
Fix so that tabs change notebook pages on Mac, without setting focus to display.

Modified: grass/trunk/gui/wxpython/gui_modules/nviz_tools.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/nviz_tools.py	2009-03-08 05:40:36 UTC (rev 36239)
+++ grass/trunk/gui/wxpython/gui_modules/nviz_tools.py	2009-03-08 05:41:52 UTC (rev 36240)
@@ -99,7 +99,8 @@
         self.SetSize(size)
 
     def OnPageChanged(self, event):
-        pass # do nothing, avoid focusing map display window
+        new = event.GetSelection()
+        self.notebook.ChangeSelection(new)
     
     def PostViewEvent(self, zExag=False):
         """Change view settings"""



More information about the grass-commit mailing list