-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
35 lines (26 loc) · 733 Bytes
/
main.py
File metadata and controls
35 lines (26 loc) · 733 Bytes
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
35
from tkinter import *
from calculator import Calculator
from feet_to_meters import FeetToMeters
def main():
while True:
print("Choose the app to launch:")
print("1. Calculator")
print("2. Feet to Meters")
print("Type q or quit to exit the program")
print("Your input: ", end='')
x = input().lower()
print()
if x == '1':
root = Tk()
Calculator(root)
root.mainloop()
elif x == '2':
root = Tk()
FeetToMeters(root)
root.mainloop()
elif x == 'q' or x == 'quit':
break
else:
print("Incorrect option!\n")
if __name__ == "__main__":
main()