-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.py
executable file
·116 lines (81 loc) · 3.2 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
from kivy.app import App
from kivy.uix.boxlayout import BoxLayout
from insert.address.address import *
from insert.customer.customer import show_insert_customer_popup
from insert.biker.biker import show_insert_biker_popup
from insert.food.food import show_insert_food_popup
from insert.store.store import show_insert_store_popup
from insert.ingredient.ingredient import show_insert_ingredient_popup
from update.customer.customer import show_update_customer_popup
from update.address.address import show_update_address_popup
from update.biker.biker import show_update_biker_popup
from update.food.food import show_update_food_popup
from update.ingredient.ingredient import show_update_ingredient_popup
from delete.address.address import show_delete_address_popup
from delete.customer.customer import show_delete_customer_popup
from delete.biker.biker import show_delete_biker_popup
from delete.food.food import show_delete_food_popup
from delete.ingredient.ingredient import show_delete_ingredient_popup
from delete.store.store import show_delete_store_popup
from order.food.food import show_food_order_popup
from order.ingredient.ingredient import show_ingredient_order_popup
from report.admin.admin import show_admin_report_popup
from report.user.user import show_user_report_popup
from log.log import show_log_popup
from manage.manager import show_manager_popup
class MainLayout(BoxLayout):
def order_food_button(self):
show_food_order_popup()
def order_ingredient_button(self):
show_ingredient_order_popup()
# ------- Insert ------
def insert_customer_button(self):
show_insert_customer_popup()
def insert_biker_button(self):
show_insert_biker_popup()
def insert_address_button(self):
show_insert_address_popup()
def insert_food_button(self):
show_insert_food_popup()
def insert_store_button(self):
show_insert_store_popup()
def insert_ingredient_button(self):
show_insert_ingredient_popup()
# ------- Update -------
def update_customer_button(self):
show_update_customer_popup()
def update_address_button(self):
show_update_address_popup()
def update_biker_button(self):
show_update_biker_popup()
def update_food_button(self):
show_update_food_popup()
def update_ingredient_button(self):
show_update_ingredient_popup()
# -------- Delete -------
def delete_customer_button(self):
show_delete_customer_popup()
def delete_address_button(self):
show_delete_address_popup()
def delete_biker_button(self):
show_delete_biker_popup()
def delete_food_button(self):
show_delete_food_popup()
def delete_ingredient_button(self):
show_delete_ingredient_popup()
def delete_store_button(self):
show_delete_store_popup()
# ---------- Report ----------
def admin_report_button(self):
show_admin_report_popup()
def user_report_button(self):
show_user_report_popup()
def log_button(self):
show_log_popup()
def manage_button(self):
show_manager_popup()
class MainPage(App):
def build(self):
return MainLayout()
if __name__ == "__main__":
MainPage().run()