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

Method activate

gui/builtinContextMenus/ammoToDmgPattern.py:34–37  ·  view source on GitHub ↗
(self, callingWindow, fullContext, mainItem, i)

Source from the content-addressed store, hash-verified

32 return _t("Set {} as Damage Pattern").format(itmContext if itmContext is not None else _t("Item"))
33
34 def activate(self, callingWindow, fullContext, mainItem, i):
35 fitID = self.mainFrame.getActiveFit()
36 Fit.getInstance().setAsPattern(fitID, mainItem)
37 wx.PostEvent(self.mainFrame, GE.FitChanged(fitIDs=(fitID,)))
38
39 def getBitmap(self, callingWindow, context, mainItem):
40 return None

Callers

nothing calls this directly

Calls 3

setAsPatternMethod · 0.80
getActiveFitMethod · 0.45
getInstanceMethod · 0.45

Tested by

no test coverage detected