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

Method display

gui/builtinContextMenus/moduleMutatedExport.py:16–25  ·  view source on GitHub ↗
(self, callingWindow, srcContext, mainItem)

Source from the content-addressed store, hash-verified

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')

Callers

nothing calls this directly

Calls 1

getActiveFitMethod · 0.45

Tested by

no test coverage detected