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

Method display

gui/builtinContextMenus/boosterSideEffects.py:18–31  ·  view source on GitHub ↗
(self, callingWindow, srcContext, mainItem)

Source from the content-addressed store, hash-verified

16 self.mainFrame = gui.mainFrame.MainFrame.getInstance()
17
18 def display(self, callingWindow, srcContext, mainItem):
19 if self.mainFrame.getActiveFit() is None or srcContext not in "boosterItem":
20 return False
21
22 if mainItem is None:
23 return False
24
25 self.booster = mainItem
26
27 for effect in self.booster.sideEffects:
28 if effect.effect.isImplemented:
29 return True
30
31 return False
32
33 def getText(self, callingWindow, itmContext, mainItem):
34 return _t("Side Effects")

Callers

nothing calls this directly

Calls 1

getActiveFitMethod · 0.45

Tested by

no test coverage detected