Switch to the relevant additions pane when items are added to it

This commit is contained in:
cncfanatics
2010-10-21 07:34:23 +02:00
parent 68c352a44c
commit 1e75f09e0b
4 changed files with 6 additions and 1 deletions

View File

@@ -49,7 +49,6 @@ class AdditionsPane(TogglePanel):
size.SetHeight(200)
self.notebook.SetMinSize(size)
baseSizer.Add(self.notebook, 1, wx.EXPAND)
self.notebook.AddPage(DroneView(self.notebook), "Drones")
self.notebook.AddPage(ImplantView(self.notebook), "Implants")
self.notebook.AddPage(BoosterView(self.notebook), "Boosters")
@@ -57,3 +56,6 @@ class AdditionsPane(TogglePanel):
# self.Expand()
PANES = ["Drones", "Implants", "Boosters"]
def select(self, name):
self.notebook.SetSelection(self.PANES.index(name))