示例#1
0
 def removeCargos(self, cargos):
     fitID = self.mainFrame.getActiveFit()
     itemIDs = []
     for cargo in cargos:
         if cargo in self.original:
             itemIDs.append(cargo.itemID)
     self.mainFrame.command.Submit(cmd.GuiRemoveCargosCommand(fitID=fitID, itemIDs=itemIDs))
示例#2
0
 def __handleCargo(self, callingWindow, mainItem, selection):
     fitID = self.mainFrame.getActiveFit()
     itemIDs = [c.itemID for c in selection]
     self.mainFrame.command.Submit(
         cmd.GuiRemoveCargosCommand(fitID=fitID, itemIDs=itemIDs))