ajout début menu
This commit is contained in:
parent
83e95086ca
commit
acd68838f1
1 changed files with 15 additions and 1 deletions
|
@ -8,4 +8,18 @@ Created on Sun Mar 25 18:20:49 2018
|
||||||
|
|
||||||
from cineclubBlogSQ import filmSQ as f
|
from cineclubBlogSQ import filmSQ as f
|
||||||
|
|
||||||
|
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()
|
f.printAll()
|
||||||
|
elif champ == 2:
|
||||||
|
f.newFilm()
|
||||||
|
elif champ == 3:
|
||||||
|
pass
|
||||||
|
pass
|
||||||
|
|
||||||
|
main()
|
||||||
|
|
Loading…
Reference in a new issue