(cls, callingWindow, mainItem, selection, *fullContexts)
| 43 | |
| 44 | @classmethod |
| 45 | def hasMenu(cls, callingWindow, mainItem, selection, *fullContexts): |
| 46 | for i, fullContext in enumerate(fullContexts): |
| 47 | srcContext = fullContext[0] |
| 48 | for menuHandler in cls.menus: |
| 49 | m = menuHandler() |
| 50 | if m._baseDisplay(callingWindow, srcContext, mainItem, selection): |
| 51 | return True |
| 52 | return False |
| 53 | |
| 54 | @classmethod |
| 55 | def getMenu(cls, callingWindow, mainItem, selection, *fullContexts): |
no test coverage detected