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