-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
35 lines (24 loc) · 720 Bytes
/
main.py
File metadata and controls
35 lines (24 loc) · 720 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
32
33
34
35
from utils.clear_console import clear_console
from views.home.page import home_page
from views.style import Fore_Style
def exit_message():
print("Agradeçemos a sua preferência!")
input(" - Banco Rev")
clear_console()
def main():
view = home_page
default_option = "0"
option = default_option
while True:
clear_console()
view, option = view(option)
print(Fore_Style.RESET.value)
if option:
option = input("> ").upper()
else:
option = default_option
if option == "X" or view == False:
break
clear_console()
exit_message()
main()