i dont know what happend
This commit is contained in:
+6
-3
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user