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

Method display

gui/builtinContextMenus/fitAddCurrentlyOpen.py:18–26  ·  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
20 if srcContext not in ('projected', 'commandView', 'graphFitList', 'graphTgtList'):
21 return False
22
23 if srcContext in ('projected', 'commandView') and self.mainFrame.getActiveFit() is None:
24 return False
25
26 return True
27
28 def getText(self, callingWindow, itmContext):
29 return _t('Add Currently Open Fit')

Callers

nothing calls this directly

Calls 1

getActiveFitMethod · 0.45

Tested by

no test coverage detected