Esempio n. 1
0
 def copyFit(self, event=None):
     sFit = Fit.getInstance()
     fitID = sFit.copyFit(self.fitID)
     self.shipBrowser.fitIDMustEditName = fitID
     wx.PostEvent(self.shipBrowser,
                  events.Stage3Selected(shipID=self.shipID))
     wx.PostEvent(self.mainFrame, events.FitSelected(fitID=fitID))
Esempio n. 2
0
    def createNewFit(self, event=None):
        self.tcFitName.Show(False)

        sFit = Fit.getInstance()
        fitID = sFit.newFit(self.shipID, self.tcFitName.GetValue())

        wx.PostEvent(self.shipBrowser,
                     events.Stage3Selected(shipID=self.shipID, back=False))
        wx.PostEvent(self.mainFrame, events.FitSelected(fitID=fitID))
Esempio n. 3
0
 def selectFit(self, event=None, newTab=False):
     if newTab:
         wx.PostEvent(self.mainFrame,
                      events.FitSelected(fitID=self.fitID, startup=2))
     else:
         wx.PostEvent(self.mainFrame, events.FitSelected(fitID=self.fitID))