25 lines
639 B
Python
25 lines
639 B
Python
|
import database_menu
|
||
|
|
||
|
|
||
|
# Main Menu
|
||
|
|
||
|
def main_menu():
|
||
|
enable_menu = True
|
||
|
selection = {0: 'Datenbank Menü', 1: 'Zufallsfrage', 2: 'Programm beenden'}
|
||
|
|
||
|
print('# Main Menü #\n')
|
||
|
while enable_menu:
|
||
|
for key, value in selection.items():
|
||
|
print(key, value)
|
||
|
selection_number = int(input('Bitte Auswahl treffen\n'))
|
||
|
match selection_number:
|
||
|
case 0:
|
||
|
database_menu.menu()
|
||
|
break
|
||
|
case 1:
|
||
|
# TODO Starte Zufallsfragenausgabe
|
||
|
return
|
||
|
case 2:
|
||
|
# TODO Programm Beenden
|
||
|
return
|