-
Notifications
You must be signed in to change notification settings - Fork 3
/
main.py
77 lines (60 loc) · 1.69 KB
/
main.py
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
import app.utils.gstr_1 as gstr_1_utils
import app.utils.gstr_2 as gstr_2_utils
import app.reco.gstr_9c.main as gstr_9c_utils
from app.helpers.ui.main_windows.main_ui import main_window
def main_ui_window():
global main_ui
main_ui = main_window(
window_title="GSTR Utilities",
title="GST Utilities",
buttons={
"utility_buttons": [
{
"title": "GSTR 1",
"command": open_gstr_1_window,
"row": 4,
"column": 0,
},
{
"title": "GSTR 2",
"command": open_gstr_2_window,
"row": 4,
"column": 2,
},
],
"reco_buttons": [
{
"title": "GSTR 9C",
"command": open_gstr_9c_window,
"row": 6,
"column": 0,
}
],
},
menu=False,
)
main_ui.initialize_engine()
def open_gstr_1_window():
global main_ui
main_ui.close_window()
close_app = gstr_1_utils.start_window_app()
if not close_app:
main_ui = None
main_ui_window()
def open_gstr_2_window():
global main_ui
main_ui.close_window()
close_app = gstr_2_utils.start_window_app()
if not close_app:
main_ui = None
main_ui_window()
def open_gstr_9c_window():
global main_ui
main_ui.close_window()
close_app = gstr_9c_utils.start_window_app()
if not close_app:
main_ui = None
main_ui_window()
main_ui = None
if __name__ == "__main__":
main_ui_window()