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

Method display

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

Source from the content-addressed store, hash-verified

16 self.mainFrame = gui.mainFrame.MainFrame.getInstance()
17
18 def display(self, callingWindow, srcContext):
19 if srcContext != "fittingShip":
20 return False
21
22 fitID = self.mainFrame.getActiveFit()
23 fit = Fit.getInstance().getFit(fitID)
24
25 if fit.ship.name not in ('Pacifier', 'Enforcer', 'Marshal', 'Sidewinder', 'Cobra', 'Python'):
26 return
27
28 return True
29
30 def getText(self, callingWindow, itmContext):
31 return _t("Pilot Security Status")

Callers

nothing calls this directly

Calls 3

getFitMethod · 0.80
getActiveFitMethod · 0.45
getInstanceMethod · 0.45

Tested by

no test coverage detected