(self, menu_options=None)
Recalculate the menu options.
Recalculate the menu options.
Recalculate the menu options .
def _refresh_menu(self, menu_options=None):
        """Recalculate the menu options."""
        #Redraw from original or set new original
        if menu_options is None:
            menu_options = self._menu_options
        else:
            self._menu_options = list(menu_options)
        
        #Assign the IDs
        self._next_action_id = self.FIRST_ID
        self.menu_actions_by_id = {}
        self.menu_options = self._add_ids_to_menu_options(self._menu_options)
        del self._next_action_id
def _refresh_menu ( self , menu_options = None ) : #Redraw from original or set new original if menu_options is None : menu_options = self . _menu_options else : self . _menu_options = list ( menu_options ) #Assign the IDs self . _next_action_id = self . FIRST_ID self . menu_actions_by_id = { } self . menu_options = self . _add_ids_to_menu_options ( self . _menu_options ) del self . _next_action_id