-
Notifications
You must be signed in to change notification settings - Fork 3
/
run.py
36 lines (32 loc) · 835 Bytes
/
run.py
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
36
import cli
import sys
def main():
def is_pyqt5_exists():
try:
from PyQt5 import uic
except:
return False
return True
if not is_pyqt5_exists():
print()
print('='*50)
print('You need a PyQt5 to run this program.')
print('Install PyQt5 by entering the following command in the terminal')
print()
print('pip install pyqt5')
print('='*50)
print()
sys.exit()
print("In what environment do you want it to work?")
print("[1] Cli")
print("[2] Gui")
environment = int(input("Select Envionment : "))
if environment == 1 :
cli.run()
elif environment == 2 :
import gui as ui
ui.main()
else :
print("Wrong Number")
if __name__ == "__main__":
main()