Browse Source

wxGUI: small correction of https://trac.osgeo.org/grass/changeset/46534 in modeler

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@46540 15284696-431f-4ddb-bdfa-cd5b030d7da7
Anna Petrášová 14 năm trước cách đây
mục cha
commit
cab98bb427
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      gui/wxpython/gui_modules/gmodeler.py

+ 2 - 2
gui/wxpython/gui_modules/gmodeler.py

@@ -567,7 +567,7 @@ class ModelFrame(wx.Frame):
         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 @@ class ModelFrame(wx.Frame):
         
     def OnVariables(self, event):
         """!Switch to variables page"""
-        self.notebook.SetSelection(2)
+        self.notebook.SetSelectionByName('variables')
         
     def OnRemoveItem(self, event):
         """!Remove shape