From acd68838f16eee0657786aed6bfd998b811e1b1a Mon Sep 17 00:00:00 2001 From: cartoonnerie Date: Sun, 25 Mar 2018 21:06:12 +0200 Subject: [PATCH] =?UTF-8?q?ajout=20d=C3=A9but=20menu?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ccInterface.py | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/ccInterface.py b/ccInterface.py index 6f4e793..cab6390 100644 --- a/ccInterface.py +++ b/ccInterface.py @@ -8,4 +8,18 @@ Created on Sun Mar 25 18:20:49 2018 from cineclubBlogSQ import filmSQ as f -f.printAll() \ No newline at end of file +def main(): + menu() + pass + +def menu(): + champ = eval(input("""Voulez-vous \n 1: consulter la liste des films de la base de données \n 2: ajouter un film à la base de données \n afficher une communication""")) + if champ == 1: + f.printAll() + elif champ == 2: + f.newFilm() + elif champ == 3: + pass + pass + +main()