forked from pchojka/Py_Expense_template
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
28 lines (25 loc) · 695 Bytes
/
main.py
File metadata and controls
28 lines (25 loc) · 695 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
from PyInquirer import prompt
from examples import custom_style_2
from expense import new_expense
from user import add_user
from status import show_status
def ask_option():
main_option = {
"type":"list",
"name":"main_option",
"message":"Expense Tracker v0.1",
"choices": ["New Expense","Show Status","New User"]
}
option = prompt(main_option)
if (option['main_option']) == "New Expense":
new_expense()
ask_option()
if (option['main_option']) == "New User":
add_user()
ask_option()
if (option['main_option']) == "Show Status":
show_status()
ask_option()
def main():
ask_option()
main()