-
Notifications
You must be signed in to change notification settings - Fork 49
Expand file tree
/
Copy pathmain.py
More file actions
executable file
·31 lines (25 loc) · 741 Bytes
/
main.py
File metadata and controls
executable file
·31 lines (25 loc) · 741 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
from PyInquirer import prompt
from examples import custom_style_2
from expense import expense_questions, new_expense
from status import get_status
from user import user_questions, add_user
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()
if (option['main_options']) == "New User":
add_user()
ask_option()
if (option['main_options']) == "Show Status":
get_status()
ask_option()
def main():
ask_option()
main()