MCPcopy Index your code
hub / github.com/pyfa-org/Pyfa / onLeftDoubleClick

Method onLeftDoubleClick

gui/builtinAdditionPanes/implantView.py:235–244  ·  view source on GitHub ↗
(self, event)

Source from the content-addressed store, hash-verified

233 event.Skip()
234
235 def onLeftDoubleClick(self, event):
236 row, _ = self.HitTest(event.Position)
237 if row != -1:
238 col = self.getColumn(event.Position)
239 if col != self.getColIndex(State):
240 try:
241 implant = self.implants[row]
242 except IndexError:
243 return
244 self.removeImplants([implant])
245
246 def removeImplants(self, implants):
247 fitID = self.mainFrame.getActiveFit()

Callers

nothing calls this directly

Calls 4

removeImplantsMethod · 0.95
getColIndexMethod · 0.80
HitTestMethod · 0.45
getColumnMethod · 0.45

Tested by

no test coverage detected