(self, parentMenu, name)
| 49 | return menuItem, checked |
| 50 | |
| 51 | def _addCategory(self, parentMenu, name): |
| 52 | id = ContextMenuSingle.nextID() |
| 53 | menuItem = wx.MenuItem(parentMenu, id, name) |
| 54 | parentMenu.Bind(wx.EVT_MENU, self.handlePatternSwitch, menuItem) |
| 55 | return menuItem |
| 56 | |
| 57 | def getSubMenu(self, callingWindow, context, mainItem, rootMenu, i, pitem): |
| 58 | # Category as menu item - expands further |