From 602d0a1ab4beade091de607058a08c07b4b06b9d Mon Sep 17 00:00:00 2001 From: Marcus Ferl Date: Tue, 22 Mar 2022 23:11:30 +0100 Subject: [PATCH] =?UTF-8?q?=E2=80=9Emain=5Fmenu.py=E2=80=9C=20l=C3=B6schen?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main_menu.py | 30 ------------------------------ 1 file changed, 30 deletions(-) delete mode 100644 main_menu.py diff --git a/main_menu.py b/main_menu.py deleted file mode 100644 index 6f864c3..0000000 --- a/main_menu.py +++ /dev/null @@ -1,30 +0,0 @@ -import config -import database_menu -import question_answer_output - -# Main Menu - -def main_menu(): - enable_menu = True - selection = {0: 'Datenbank Menü', 1: 'Zufallsfrage', 2: 'Programm beenden\n'} - - 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: - while True: - print('#Frage#\n' + '-'*60 + '\n' + question_answer_output.random_question(config.json_file)[0]) - - input('\nBitte Enter drücken um die Antwort zu sehen\n') - print('#Antwort#\n' + question_answer_output.random_question(config.json_file)[1]) - number = int(input('\nZurück zum Hauptmenü\n 1: Ja \n 2: Nein, nächste Frage\n')) - if number == 1: - break - case 2: - break