-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.py
34 lines (29 loc) · 1.01 KB
/
app.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
import console.app as con
general_menu = []
general_menu.append("Console Mode")
general_menu.append("Web mode")
general_menu.append("Quitter")
go_on = True
# https://www.journaldev.com/15539/python-mysql-example-tutorial
#https://gist.github.com/bradmontgomery/2219997
#https://pynative.com/python-mysql-database-connection/
#https://docs.python.org/3/library/cgi.html
while go_on:
print("--------------------------------------------------------")
for index, item in enumerate(general_menu):
print(str(index + 1) + ". " , item)
answer = input("Veuillez choisir le type d'application à lancer : ")
intAnswer = int(answer)
print(general_menu[intAnswer- 1])
print("--------------------------------------------------------")
if intAnswer == 1:
go_on = False
con.main()
elif intAnswer == 2:
go_on = False
import server
elif intAnswer == 3:
go_on = False
print("Au revoir")
else:
print("Mauvais choix, veuillez en choisir un autre")