(self, event)
| 44 | self.mainFrame.additionsPane.notebook.Bind(EVT_NOTEBOOK_PAGE_CHANGED, self.pageChanged) |
| 45 | |
| 46 | def pageChanged(self, event): |
| 47 | page = self.mainFrame.additionsPane.getName(event.GetSelection()) |
| 48 | if page == "Cargo": |
| 49 | self.toggleContext("cargo") |
| 50 | elif page == "Fighters": |
| 51 | self.toggleContext("fighter") |
| 52 | else: |
| 53 | self.toggleContext("drone") |
| 54 | event.Skip() |
| 55 | |
| 56 | def toggleContext(self, context): |
| 57 | # Apparently you cannot .Hide(True) on a Window, otherwise I would just .Hide(context !== x). |
nothing calls this directly
no test coverage detected