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

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Jun 3 06:19:23 EDT 2011


Author: annakrat
Date: 2011-06-03 03:19:22 -0700 (Fri, 03 Jun 2011)
New Revision: 46540

Modified:
   grass/trunk/gui/wxpython/gui_modules/gmodeler.py
Log:
wxGUI: small correction of r46534 in modeler

Modified: grass/trunk/gui/wxpython/gui_modules/gmodeler.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/gmodeler.py	2011-06-03 10:16:36 UTC (rev 46539)
+++ grass/trunk/gui/wxpython/gui_modules/gmodeler.py	2011-06-03 10:19:22 UTC (rev 46540)
@@ -567,7 +567,7 @@
         self.notebook.AddPage(page = self.itemPanel, text=_('Items'), name = 'items')
         self.notebook.AddPage(page = self.variablePanel, text=_('Variables'), name = 'variables')
         self.notebook.AddPage(page = self.goutput, text=_('Command output'), name = 'output')
-        wx.CallAfter(self.notebook.SetSelection, 0)
+        wx.CallAfter(self.notebook.SetSelectionByName, 'model')
         wx.CallAfter(self.ModelChanged, False)
 
         self.Bind(wx.EVT_CLOSE, self.OnCloseWindow)
@@ -624,7 +624,7 @@
         
     def OnVariables(self, event):
         """!Switch to variables page"""
-        self.notebook.SetSelection(2)
+        self.notebook.SetSelectionByName('variables')
         
     def OnRemoveItem(self, event):
         """!Remove shape



More information about the grass-commit mailing list