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

Method display

gui/builtinContextMenus/itemFill.py:16–29  ·  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 not in ('marketItemGroup', 'marketItemMisc'):
18 return False
19
20 if self.mainFrame.getActiveFit() is None:
21 return False
22
23 if mainItem is None:
24 return False
25
26 if mainItem.category.name != 'Module':
27 return False
28
29 return True
30
31 def getText(self, callingWindow, itmContext, mainItem):
32 return _t("Fill With Module")

Callers

nothing calls this directly

Calls 1

getActiveFitMethod · 0.45

Tested by

no test coverage detected