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

Method display

gui/builtinContextMenus/moduleFill.py:17–21  ·  view source on GitHub ↗
(self, callingWindow, srcContext, mainItem)

Source from the content-addressed store, hash-verified

15 self.mainFrame = gui.mainFrame.MainFrame.getInstance()
16
17 def display(self, callingWindow, srcContext, mainItem):
18 if mainItem is None or getattr(mainItem, 'isEmpty', False):
19 return False
20
21 return srcContext == "fittingModule"
22
23 def getText(self, callingWindow, itmContext, mainItem):
24 return _t("Fill With {0}").format(itmContext if itmContext is not None else _t("Module"))

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected