Esempio n. 1
0
 def removeCommandFits(self, commandFits):
     fitID = self.mainFrame.getActiveFit()
     commandFitIDs = []
     for commandFit in commandFits:
         if commandFit in self.fits:
             commandFitIDs.append(commandFit.ID)
     self.mainFrame.command.Submit(cmd.GuiRemoveCommandFitsCommand(fitID=fitID, commandFitIDs=commandFitIDs))
Esempio n. 2
0
 def __handleCommandFit(self, callingWindow, mainItem, selection):
     fitID = self.mainFrame.getActiveFit()
     commandFitIDs = [cf.ID for cf in selection]
     self.mainFrame.command.Submit(
         cmd.GuiRemoveCommandFitsCommand(fitID=fitID,
                                         commandFitIDs=commandFitIDs))