(self, callingWindow, mainItem, selection)
| 66 | handler(callingWindow, mainItem, selection) |
| 67 | |
| 68 | def __handleModule(self, callingWindow, mainItem, selection): |
| 69 | fitID = self.mainFrame.getActiveFit() |
| 70 | fit = Fit.getInstance().getFit(fitID) |
| 71 | if wx.GetMouseState().GetModifiers() in (wx.MOD_ALT, wx.MOD_CONTROL): |
| 72 | positions = getSimilarModPositions(fit.modules, mainItem) |
| 73 | else: |
| 74 | positions = [] |
| 75 | for mod in selection: |
| 76 | if mod in fit.modules: |
| 77 | positions.append(fit.modules.index(mod)) |
| 78 | self.mainFrame.command.Submit(cmd.GuiRemoveLocalModuleCommand( |
| 79 | fitID=fitID, positions=positions)) |
| 80 | |
| 81 | def __handleDrone(self, callingWindow, mainItem, selection): |
| 82 | fitID = self.mainFrame.getActiveFit() |
nothing calls this directly
no test coverage detected