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

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Jun 3 06:22:04 EDT 2011


Author: martinl
Date: 2011-06-03 03:22:04 -0700 (Fri, 03 Jun 2011)
New Revision: 46541

Modified:
   grass/branches/develbranch_6/gui/wxpython/gui_modules/gmodeler.py
Log:
annakrat: wxGUI: small correction of r46534 in modeler
	  (megre r46540 from trunk)


Modified: grass/branches/develbranch_6/gui/wxpython/gui_modules/gmodeler.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_modules/gmodeler.py	2011-06-03 10:19:22 UTC (rev 46540)
+++ grass/branches/develbranch_6/gui/wxpython/gui_modules/gmodeler.py	2011-06-03 10:22:04 UTC (rev 46541)
@@ -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