def __init__(self, manager, parent, controller):

        # Base class constructor.
        wx.Menu.__init__(self)

        # The parent of the menu.
        self._parent = parent

        # The manager that the menu is a view of.
        self._manager = manager

        # The controller.
        self._controller = controller

        # List of menu items
        self.menu_items = []

        # Create the menu structure.
        self.refresh()

        # Listen to the manager being updated.
        self._manager.on_trait_change(self.refresh, 'changed')
        self._manager.on_trait_change(self._on_enabled_changed, 'enabled')

        return

    ###########################################################################
    # '_Menu' interface.
    ###########################################################################
@param jid_to: pubsub addr
dataset/ETHPy150Open enthought/pyface/pyface/ui/wx/action/menu_manager.py/_Menu.__init__--crossover with--dataset/ETHPy150Open selfsk/nodeset.core/src/nodeset/core/pubsub/common.py/PubSubMessage.__init__