MCPcopy Create free account
hub / github.com/pyfa-org/Pyfa / display

Method display

gui/builtinContextMenus/moduleSpool.py:24–34  ·  view source on GitHub ↗
(self, callingWindow, srcContext, mainItem)

Source from the content-addressed store, hash-verified

22 self.resetId = None
23
24 def display(self, callingWindow, srcContext, mainItem):
25 if srcContext not in ('fittingModule', 'projectedModule') or self.mainFrame.getActiveFit() is None:
26 return False
27
28 if mainItem is None or mainItem.isEmpty:
29 return False
30
31 self.mod = mainItem
32 self.context = srcContext
33
34 return self.mod.item.group.name in ("Precursor Weapon", "Mutadaptive Remote Armor Repairer")
35
36 def getText(self, callingWindow, itmContext, mainItem):
37 return _t("Spoolup Cycles")

Callers

nothing calls this directly

Calls 1

getActiveFitMethod · 0.45

Tested by

no test coverage detected