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