[GRASS-SVN] r48855 -
grass/branches/develbranch_6/gui/wxpython/gui_modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Oct 19 14:55:55 EDT 2011
Author: martinl
Date: 2011-10-19 11:55:55 -0700 (Wed, 19 Oct 2011)
New Revision: 48855
Modified:
grass/branches/develbranch_6/gui/wxpython/gui_modules/menuform.py
Log:
wxGUI: fix GNotebook.SetSelectionByName()
Modified: grass/branches/develbranch_6/gui/wxpython/gui_modules/menuform.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_modules/menuform.py 2011-10-19 18:48:43 UTC (rev 48854)
+++ grass/branches/develbranch_6/gui/wxpython/gui_modules/menuform.py 2011-10-19 18:55:55 UTC (rev 48855)
@@ -1915,8 +1915,9 @@
@param page names, eg. 'layers', 'output', 'search', 'pyshell', 'nviz'
"""
- if self.GetSelection() != self.GetPageIndexByName('output'):
- self.SetSelection(self.GetPageIndexByName(page))
+ idx = self.GetPageIndexByName(page)
+ if self.GetSelection() != idx:
+ self.SetSelection(idx)
def GetPageIndexByName(self, page):
"""!Get notebook page index
More information about the grass-commit
mailing list