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

Method display

gui/builtinContextMenus/resistMode.py:29–38  ·  view source on GitHub ↗
(self, callingWindow, srcContext, mainItem, selection)

Source from the content-addressed store, hash-verified

27 self.mainFrame = gui.mainFrame.MainFrame.getInstance()
28
29 def display(self, callingWindow, srcContext, mainItem, selection):
30 if srcContext != 'graphTgtList':
31 return False
32 if GraphSettings.getInstance().get('ignoreResists'):
33 return False
34 if not isinstance(mainItem, TargetWrapper) or not mainItem.isFit:
35 return False
36 self.callingWindow = callingWindow
37 self.selection = selection
38 return True
39
40 def getText(self, callingWindow, itmContext, mainItem, selection):
41 return _t('Resist Mode')

Callers

nothing calls this directly

Calls 2

getMethod · 0.45
getInstanceMethod · 0.45

Tested by

no test coverage detected