-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathinit_mainmenu.py
More file actions
41 lines (37 loc) · 1.18 KB
/
Copy pathinit_mainmenu.py
File metadata and controls
41 lines (37 loc) · 1.18 KB
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
37
38
39
40
41
import os
terminal_width = os.get_terminal_size().columns
def mainmenu():
print("\n"+"="*19)
print("|::: MAIN MENU :::|")
print("="*19)
print('''
CHOOSE THE OPTION FROM THE FOLLOWING:
1 - TRANSFER MONEY
(Via UPI,NET BANKING OR WALLET)
2 - ACCOUNT SERVICES
(ACCOUNT STATEMENT, MINI STATEMENT, ACCOUNT BALENCE, Etc.)
3 - DEMOGRAPHICS
(BAR PLOT AND LINE PLOT)
''')
# Function to repeat the input if the user gives a wrong input
def inp_confi():
global inp_conf
inp_conf = int(input(">>> "))
inp_confi()
if inp_conf in [1,2,3]:
print("_"*terminal_width)
if inp_conf == 1:
print()
import Transaction
Transaction.init_transfermoney()
if inp_conf == 2:
print()
import acc_services
acc_services.init_accser()
if inp_conf == 3:
print()
import matplotlib_mod as statista
statista.init_statista()
else:
print("\nERROR: WRONG INPUT!\nTRYAGAIN!\n")
inp_confi()