(self, menu, fit, includeShip=False)
| 50 | return _t("Command Fits") |
| 51 | |
| 52 | def addFit(self, menu, fit, includeShip=False): |
| 53 | label = fit.name if not includeShip else "({}) {}".format(fit.ship.item.name, fit.name) |
| 54 | if not label: |
| 55 | label = ' ' |
| 56 | id = ContextMenuUnconditional.nextID() |
| 57 | self.fitMenuItemIds[id] = fit |
| 58 | menuItem = wx.MenuItem(menu, id, label) |
| 59 | menu.Bind(wx.EVT_MENU, self.handleSelection, menuItem) |
| 60 | return menuItem |
| 61 | |
| 62 | def getSubMenu(self, callingWindow, context, rootMenu, i, pitem): |
| 63 | msw = True if "wxMSW" in wx.PlatformInfo else False |
no test coverage detected