i dont know what happend

This commit is contained in:
2026-10-20 19:41:43 +02:00
parent 95af3a84af
commit 81b56228d7
7 changed files with 258 additions and 3 deletions
+6 -3
View File
@@ -77,7 +77,7 @@ def menu():
box("Available programs:")
print("q: quit")
counter = 1
program_map = {}
@@ -109,8 +109,10 @@ def menu():
counter += 1
try:
choose = int(input("enter number of the programm you want: > "))
chosen = program_map[choose]
choose = input("enter number of the programm you want: > ")
if choose.lower() == "q":
sys.exit()
chosen = program_map[int(choose)]
except ValueError:
print("Es muss eine Nummer sein.")
@@ -124,6 +126,7 @@ def menu():
try:
subprocess.run([sys.executable, chosen])
except KeyboardInterrupt:
print("Interrupt signal recived...")
sys.exit(0)