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

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Mar 8 00:33:26 EST 2009


Author: cmbarton
Date: 2009-03-08 00:33:25 -0500 (Sun, 08 Mar 2009)
New Revision: 36237

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

Modified: grass/branches/develbranch_6/gui/wxpython/gui_modules/nviz_tools.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_modules/nviz_tools.py	2009-03-07 20:47:20 UTC (rev 36236)
+++ grass/branches/develbranch_6/gui/wxpython/gui_modules/nviz_tools.py	2009-03-08 05:33:25 UTC (rev 36237)
@@ -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