-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.py
36 lines (29 loc) · 754 Bytes
/
app.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
from pprint import pprint
from tkinter import E
from tracemalloc import start
import inquirer
import outh
import dashboard
def Start():
questions = [
inquirer.List(
"action",
message="Welcom to the Crowd fund dashboard!",
choices=["Login", "Sign up", "Exit"],
),
]
answers = inquirer.prompt(questions)
if answers['action'] == "Login":
CurentUserID = outh.login()
if CurentUserID != "-1":
dashboard.Start(CurentUserID)
Start()
else:
print("Wrong User name or password!")
Start()
elif answers['action'] == "Sign up":
outh.signUp()
Start()
else:
return 0
Start()