(self, menu, ability)
| 34 | return _t("Side Effects") |
| 35 | |
| 36 | def addEffect(self, menu, ability): |
| 37 | label = ability.name |
| 38 | id = ContextMenuSingle.nextID() |
| 39 | self.effectIds[id] = ability |
| 40 | |
| 41 | menuItem = wx.MenuItem(menu, id, label, kind=wx.ITEM_CHECK) |
| 42 | menu.Bind(wx.EVT_MENU, self.handleMode, menuItem) |
| 43 | return menuItem |
| 44 | |
| 45 | def getSubMenu(self, callingWindow, context, mainItem, rootMenu, i, pitem): |
| 46 | msw = True if "wxMSW" in wx.PlatformInfo else False |