[GRASS-SVN] r46542 - grass/branches/releasebranch_6_4/gui/wxpython/gui_modules

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


Author: martinl
Date: 2011-06-03 03:23:47 -0700 (Fri, 03 Jun 2011)
New Revision: 46542

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


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