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

Method display

gui/builtinContextMenus/shipModeChange.py:26–37  ·  view source on GitHub ↗
(self, callingWindow, srcContext)

Source from the content-addressed store, hash-verified

24 }
25
26 def display(self, callingWindow, srcContext):
27 if self.mainFrame.getActiveFit() is None or srcContext != "fittingShip":
28 return False
29
30 sFit = Fit.getInstance()
31 fitID = self.mainFrame.getActiveFit()
32 fit = sFit.getFit(fitID)
33
34 self.modes = fit.ship.modes
35 self.currMode = fit.mode
36
37 return srcContext == "fittingShip" and self.modes is not None
38
39 def getText(self, callingWindow, itmContext):
40 return _t("Tactical Mode")

Callers

nothing calls this directly

Calls 3

getFitMethod · 0.80
getActiveFitMethod · 0.45
getInstanceMethod · 0.45

Tested by

no test coverage detected