(self, callingWindow, srcContext, mainItem, selection)
| 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') |
nothing calls this directly
no test coverage detected