from menu_handlers import ( handle_project_tickets_by_stage ) def display_main_menu(): """Affiche le menu principal de l'application""" print("\n==== GESTIONNAIRE DE TICKETS ODOO ====") print("1. Exporter les tickets d'un project_id par étape") print("2. Quitter") return input("\nChoisissez une option (1-5): ") def run_menu(): """Exécute la boucle du menu principal""" while True: choice = display_main_menu() if choice == '1': handle_project_tickets_by_stage() elif choice == '2': print("Au revoir!") break else: print("Option invalide. Veuillez choisir entre 1 et 5.")