Ejemplo n.º 1
0
 def removeBoosters(self, boosters):
     fitID = self.mainFrame.getActiveFit()
     positions = []
     for booster in boosters:
         if booster in self.original:
             positions.append(self.original.index(booster))
     self.mainFrame.command.Submit(cmd.GuiRemoveBoostersCommand(fitID=fitID, positions=positions))
Ejemplo n.º 2
0
 def __handleBooster(self, callingWindow, mainItem, selection):
     fitID = self.mainFrame.getActiveFit()
     fit = Fit.getInstance().getFit(fitID)
     positions = []
     for booster in selection:
         if booster in fit.boosters:
             positions.append(fit.boosters.index(booster))
     self.mainFrame.command.Submit(
         cmd.GuiRemoveBoostersCommand(fitID=fitID, positions=positions))