(self, implants)
| 244 | self.removeImplants([implant]) |
| 245 | |
| 246 | def removeImplants(self, implants): |
| 247 | fitID = self.mainFrame.getActiveFit() |
| 248 | fit = Fit.getInstance().getFit(fitID) |
| 249 | if fit.implantLocation != ImplantLocation.FIT: |
| 250 | return |
| 251 | positions = [] |
| 252 | for implant in implants: |
| 253 | if implant in self.original: |
| 254 | positions.append(self.original.index(implant)) |
| 255 | self.mainFrame.command.Submit(cmd.GuiRemoveImplantsCommand(fitID=fitID, positions=positions)) |
| 256 | |
| 257 | def click(self, event): |
| 258 | fitID = self.mainFrame.getActiveFit() |
no test coverage detected