def add_to_menu(self, parent, menu, controller):

        id  = wx.NewId()
        sub = self.create_menu(parent, controller)

        # fixme: Nasty hack to allow enabling/disabling of menus.
        sub._id = id
        sub._menu = menu

        menu.AppendMenu(id, self.name, sub)

        return
Adds the item to a menu.
dataset/ETHPy150Open enthought/pyface/pyface/ui/wx/action/menu_manager.py/MenuManager.add_to_menu