def refresh(self):

        self.clear()

        manager = self._manager
        parent  = self._parent

        previous_non_empty_group = None
        for group in manager.groups:
            previous_non_empty_group = self._add_group(
                parent, group, previous_non_empty_group
            )

        return
Ensures that the menu reflects the state of the manager.
dataset/ETHPy150Open enthought/pyface/pyface/ui/wx/action/menu_manager.py/_Menu.refresh