(self, menu, old_path, new_path)
return update_count
Convenience method, similar to menu_media.
Convenience method, similar to menu_media.
Convenience method similar to menu_media .
def rename_menu_media(self, menu, old_path, new_path):
        """
            Convenience method, similar to menu_media.
        """
        app = self.get_app()
        update_count = 0
        for lang in app.langs:
            if menu.icon_by_language(lang) == old_path:
                menu.set_icon(lang, new_path)
                update_count += 1
            if menu.audio_by_language(lang) == old_path:
                menu.set_audio(lang, new_path)
                update_count += 1
        return update_count
def rename_menu_media ( self , menu , old_path , new_path ) : app = self . get_app ( ) update_count = 0 for lang in app . langs : if menu . icon_by_language ( lang ) == old_path : menu . set_icon ( lang , new_path ) update_count += 1 if menu . audio_by_language ( lang ) == old_path : menu . set_audio ( lang , new_path ) update_count += 1 return update_count