(self, callingWindow, srcContext, mainItem)
| 14 | self.mainFrame = gui.mainFrame.MainFrame.getInstance() |
| 15 | |
| 16 | def display(self, callingWindow, srcContext, mainItem): |
| 17 | if srcContext != 'fittingModule': |
| 18 | return False |
| 19 | if self.mainFrame.getActiveFit() is None: |
| 20 | return False |
| 21 | if mainItem is None: |
| 22 | return False |
| 23 | if not mainItem.isMutated: |
| 24 | return False |
| 25 | return True |
| 26 | |
| 27 | def getText(self, callingWindow, itmContext, mainItem): |
| 28 | return _t('Copy Module to Clipboard') |
nothing calls this directly
no test coverage detected