-
Notifications
You must be signed in to change notification settings - Fork 0
/
sidebar_ui.py
359 lines (350 loc) · 19.6 KB
/
sidebar_ui.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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file '.\sidebar.ui'
#
# Created by: PyQt5 UI code generator 5.15.6
#
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
# run again. Do not edit this file unless you know what you are doing.
from PyQt5 import QtCore, QtGui, QtWidgets
from app import VideoWindow, HolisticWindow
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
MainWindow.setObjectName("MainWindow")
MainWindow.resize(950, 600)
self.centralwidget = QtWidgets.QWidget(MainWindow)
self.centralwidget.setObjectName("centralwidget")
self.gridLayout = QtWidgets.QGridLayout(self.centralwidget)
self.gridLayout.setContentsMargins(0, 0, 0, 0)
self.gridLayout.setSpacing(0)
self.gridLayout.setObjectName("gridLayout")
self.icon_only_widget = QtWidgets.QWidget(self.centralwidget)
self.icon_only_widget.setObjectName("icon_only_widget")
self.verticalLayout_3 = QtWidgets.QVBoxLayout(self.icon_only_widget)
self.verticalLayout_3.setContentsMargins(0, 0, 0, 0)
self.verticalLayout_3.setSpacing(0)
self.verticalLayout_3.setObjectName("verticalLayout_3")
self.horizontalLayout_3 = QtWidgets.QHBoxLayout()
self.horizontalLayout_3.setObjectName("horizontalLayout_3")
self.logo_label_1 = QtWidgets.QLabel(self.icon_only_widget)
self.logo_label_1.setMinimumSize(QtCore.QSize(50, 50))
self.logo_label_1.setMaximumSize(QtCore.QSize(50, 50))
self.logo_label_1.setText("")
self.logo_label_1.setPixmap(QtGui.QPixmap(":/icon/icon/Logo.png"))
self.logo_label_1.setScaledContents(True)
self.logo_label_1.setObjectName("logo_label_1")
self.horizontalLayout_3.addWidget(self.logo_label_1)
self.verticalLayout_3.addLayout(self.horizontalLayout_3)
self.verticalLayout = QtWidgets.QVBoxLayout()
self.verticalLayout.setSpacing(0)
self.verticalLayout.setObjectName("verticalLayout")
self.home_btn_1 = QtWidgets.QPushButton(self.icon_only_widget)
self.home_btn_1.setText("")
icon = QtGui.QIcon()
icon.addPixmap(QtGui.QPixmap(":/icon/icon/home-4-32.ico"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
icon.addPixmap(QtGui.QPixmap(":/icon/icon/home-4-48.ico"), QtGui.QIcon.Normal, QtGui.QIcon.On)
self.home_btn_1.setIcon(icon)
self.home_btn_1.setIconSize(QtCore.QSize(20, 20))
self.home_btn_1.setCheckable(True)
self.home_btn_1.setAutoExclusive(True)
self.home_btn_1.setObjectName("home_btn_1")
self.verticalLayout.addWidget(self.home_btn_1)
self.dashborad_btn_1 = QtWidgets.QPushButton(self.icon_only_widget)
self.dashborad_btn_1.setText("")
icon1 = QtGui.QIcon()
icon1.addPixmap(QtGui.QPixmap(":/icon/icon/dashboard-5-32.ico"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
icon1.addPixmap(QtGui.QPixmap(":/icon/icon/dashboard-5-48.ico"), QtGui.QIcon.Normal, QtGui.QIcon.On)
self.dashborad_btn_1.setIcon(icon1)
self.dashborad_btn_1.setIconSize(QtCore.QSize(20, 20))
self.dashborad_btn_1.setCheckable(True)
self.dashborad_btn_1.setAutoExclusive(True)
self.dashborad_btn_1.setObjectName("dashborad_btn_1")
self.verticalLayout.addWidget(self.dashborad_btn_1)
self.orders_btn_1 = QtWidgets.QPushButton(self.icon_only_widget)
self.orders_btn_1.setText("")
icon2 = QtGui.QIcon()
icon2.addPixmap(QtGui.QPixmap(":/icon/icon/activity-feed-32.ico"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
icon2.addPixmap(QtGui.QPixmap(":/icon/icon/activity-feed-48.ico"), QtGui.QIcon.Normal, QtGui.QIcon.On)
self.orders_btn_1.setIcon(icon2)
self.orders_btn_1.setIconSize(QtCore.QSize(20, 20))
self.orders_btn_1.setCheckable(True)
self.orders_btn_1.setAutoExclusive(True)
self.orders_btn_1.setObjectName("orders_btn_1")
self.verticalLayout.addWidget(self.orders_btn_1)
self.products_btn_1 = QtWidgets.QPushButton(self.icon_only_widget)
self.products_btn_1.setText("")
icon3 = QtGui.QIcon()
icon3.addPixmap(QtGui.QPixmap(":/icon/icon/product-32.ico"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
icon3.addPixmap(QtGui.QPixmap(":/icon/icon/product-48.ico"), QtGui.QIcon.Normal, QtGui.QIcon.On)
self.products_btn_1.setIcon(icon3)
self.products_btn_1.setIconSize(QtCore.QSize(20, 20))
self.products_btn_1.setCheckable(True)
self.products_btn_1.setAutoExclusive(True)
self.products_btn_1.setObjectName("products_btn_1")
self.verticalLayout.addWidget(self.products_btn_1)
self.customers_btn_1 = QtWidgets.QPushButton(self.icon_only_widget)
self.customers_btn_1.setText("")
icon4 = QtGui.QIcon()
icon4.addPixmap(QtGui.QPixmap(":/icon/icon/group-32.ico"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
icon4.addPixmap(QtGui.QPixmap(":/icon/icon/group-48.ico"), QtGui.QIcon.Normal, QtGui.QIcon.On)
self.customers_btn_1.setIcon(icon4)
self.customers_btn_1.setIconSize(QtCore.QSize(20, 20))
self.customers_btn_1.setCheckable(True)
self.customers_btn_1.setAutoExclusive(True)
self.customers_btn_1.setObjectName("customers_btn_1")
self.verticalLayout.addWidget(self.customers_btn_1)
self.verticalLayout_3.addLayout(self.verticalLayout)
spacerItem = QtWidgets.QSpacerItem(20, 375, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
self.verticalLayout_3.addItem(spacerItem)
self.exit_btn_1 = QtWidgets.QPushButton(self.icon_only_widget)
self.exit_btn_1.setText("")
icon5 = QtGui.QIcon()
icon5.addPixmap(QtGui.QPixmap(":/icon/icon/close-window-64.ico"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.exit_btn_1.setIcon(icon5)
self.exit_btn_1.setIconSize(QtCore.QSize(20, 20))
self.exit_btn_1.setObjectName("exit_btn_1")
self.verticalLayout_3.addWidget(self.exit_btn_1)
self.gridLayout.addWidget(self.icon_only_widget, 0, 0, 1, 1)
self.full_menu_widget = QtWidgets.QWidget(self.centralwidget)
self.full_menu_widget.setObjectName("full_menu_widget")
self.verticalLayout_4 = QtWidgets.QVBoxLayout(self.full_menu_widget)
self.verticalLayout_4.setObjectName("verticalLayout_4")
self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
self.horizontalLayout_2.setSpacing(0)
self.horizontalLayout_2.setObjectName("horizontalLayout_2")
self.logo_label_2 = QtWidgets.QLabel(self.full_menu_widget)
self.logo_label_2.setMinimumSize(QtCore.QSize(40, 40))
self.logo_label_2.setMaximumSize(QtCore.QSize(40, 40))
self.logo_label_2.setText("")
self.logo_label_2.setPixmap(QtGui.QPixmap(":/icon/icon/Logo.png"))
self.logo_label_2.setScaledContents(True)
self.logo_label_2.setObjectName("logo_label_2")
self.horizontalLayout_2.addWidget(self.logo_label_2)
self.logo_label_3 = QtWidgets.QLabel(self.full_menu_widget)
font = QtGui.QFont()
font.setPointSize(15)
self.logo_label_3.setFont(font)
self.logo_label_3.setObjectName("logo_label_3")
self.horizontalLayout_2.addWidget(self.logo_label_3)
self.verticalLayout_4.addLayout(self.horizontalLayout_2)
self.verticalLayout_2 = QtWidgets.QVBoxLayout()
self.verticalLayout_2.setSpacing(0)
self.verticalLayout_2.setObjectName("verticalLayout_2")
self.home_btn_2 = QtWidgets.QPushButton(self.full_menu_widget)
self.home_btn_2.setIcon(icon)
self.home_btn_2.setIconSize(QtCore.QSize(14, 14))
self.home_btn_2.setCheckable(True)
self.home_btn_2.setAutoExclusive(True)
self.home_btn_2.setObjectName("home_btn_2")
self.verticalLayout_2.addWidget(self.home_btn_2)
self.dashborad_btn_2 = QtWidgets.QPushButton(self.full_menu_widget)
self.dashborad_btn_2.setIcon(icon1)
self.dashborad_btn_2.setIconSize(QtCore.QSize(14, 14))
self.dashborad_btn_2.setCheckable(True)
self.dashborad_btn_2.setAutoExclusive(True)
self.dashborad_btn_2.setObjectName("dashborad_btn_2")
self.verticalLayout_2.addWidget(self.dashborad_btn_2)
self.orders_btn_2 = QtWidgets.QPushButton(self.full_menu_widget)
self.orders_btn_2.setIcon(icon2)
self.orders_btn_2.setIconSize(QtCore.QSize(14, 14))
self.orders_btn_2.setCheckable(True)
self.orders_btn_2.setAutoExclusive(True)
self.orders_btn_2.setObjectName("orders_btn_2")
self.verticalLayout_2.addWidget(self.orders_btn_2)
self.products_btn_2 = QtWidgets.QPushButton(self.full_menu_widget)
self.products_btn_2.setIcon(icon3)
self.products_btn_2.setIconSize(QtCore.QSize(14, 14))
self.products_btn_2.setCheckable(True)
self.products_btn_2.setAutoExclusive(True)
self.products_btn_2.setObjectName("products_btn_2")
self.verticalLayout_2.addWidget(self.products_btn_2)
self.customers_btn_2 = QtWidgets.QPushButton(self.full_menu_widget)
self.customers_btn_2.setIcon(icon4)
self.customers_btn_2.setIconSize(QtCore.QSize(14, 14))
self.customers_btn_2.setCheckable(True)
self.customers_btn_2.setAutoExclusive(True)
self.customers_btn_2.setObjectName("customers_btn_2")
self.verticalLayout_2.addWidget(self.customers_btn_2)
self.verticalLayout_4.addLayout(self.verticalLayout_2)
spacerItem1 = QtWidgets.QSpacerItem(20, 373, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
self.verticalLayout_4.addItem(spacerItem1)
self.exit_btn_2 = QtWidgets.QPushButton(self.full_menu_widget)
self.exit_btn_2.setIcon(icon5)
self.exit_btn_2.setIconSize(QtCore.QSize(14, 14))
self.exit_btn_2.setObjectName("exit_btn_2")
self.verticalLayout_4.addWidget(self.exit_btn_2)
self.gridLayout.addWidget(self.full_menu_widget, 0, 1, 1, 1)
self.widget_3 = QtWidgets.QWidget(self.centralwidget)
self.widget_3.setObjectName("widget_3")
self.verticalLayout_5 = QtWidgets.QVBoxLayout(self.widget_3)
self.verticalLayout_5.setContentsMargins(0, 0, 0, 0)
self.verticalLayout_5.setSpacing(0)
self.verticalLayout_5.setObjectName("verticalLayout_5")
self.widget = QtWidgets.QWidget(self.widget_3)
self.widget.setMinimumSize(QtCore.QSize(0, 40))
self.widget.setObjectName("widget")
self.horizontalLayout_4 = QtWidgets.QHBoxLayout(self.widget)
self.horizontalLayout_4.setContentsMargins(0, 0, 9, 0)
self.horizontalLayout_4.setSpacing(0)
self.horizontalLayout_4.setObjectName("horizontalLayout_4")
self.change_btn = QtWidgets.QPushButton(self.widget)
self.change_btn.setText("")
icon6 = QtGui.QIcon()
icon6.addPixmap(QtGui.QPixmap(":/icon/icon/menu-4-32.ico"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.change_btn.setIcon(icon6)
self.change_btn.setIconSize(QtCore.QSize(14, 14))
self.change_btn.setCheckable(True)
self.change_btn.setObjectName("change_btn")
self.horizontalLayout_4.addWidget(self.change_btn)
spacerItem2 = QtWidgets.QSpacerItem(236, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.horizontalLayout_4.addItem(spacerItem2)
self.horizontalLayout = QtWidgets.QHBoxLayout()
self.horizontalLayout.setSpacing(10)
self.horizontalLayout.setObjectName("horizontalLayout")
self.search_input = QtWidgets.QLineEdit(self.widget)
self.search_input.setObjectName("search_input")
self.horizontalLayout.addWidget(self.search_input)
self.search_btn = QtWidgets.QPushButton(self.widget)
self.search_btn.setText("")
icon7 = QtGui.QIcon()
icon7.addPixmap(QtGui.QPixmap(":/icon/icon/search-13-48.ico"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.search_btn.setIcon(icon7)
self.search_btn.setObjectName("search_btn")
self.horizontalLayout.addWidget(self.search_btn)
self.horizontalLayout_4.addLayout(self.horizontalLayout)
spacerItem3 = QtWidgets.QSpacerItem(236, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.horizontalLayout_4.addItem(spacerItem3)
self.user_btn = QtWidgets.QPushButton(self.widget)
self.user_btn.setText("")
icon8 = QtGui.QIcon()
icon8.addPixmap(QtGui.QPixmap(":/icon/icon/user-48.ico"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.user_btn.setIcon(icon8)
self.user_btn.setObjectName("user_btn")
self.horizontalLayout_4.addWidget(self.user_btn)
self.verticalLayout_5.addWidget(self.widget)
self.stackedWidget = QtWidgets.QStackedWidget(self.widget_3)
self.stackedWidget.setObjectName("stackedWidget")
#self.page = QtWidgets.QWidget()
self.page = VideoWindow()
self.page.setObjectName("page")
self.gridLayout_2 = QtWidgets.QGridLayout(self.page)
self.gridLayout_2.setObjectName("gridLayout_2")
self.label_4 = QtWidgets.QLabel(self.page)
font = QtGui.QFont()
font.setPointSize(60)
self.label_4.setFont(font)
self.label_4.setAlignment(QtCore.Qt.AlignCenter)
self.label_4.setObjectName("label_4")
self.gridLayout_2.addWidget(self.label_4, 0, 0, 1, 1)
self.stackedWidget.addWidget(self.page)
#self.page_2 = QtWidgets.QWidget()
self.page_2 = HolisticWindow()
self.page_2.setObjectName("page_2")
self.gridLayout_3 = QtWidgets.QGridLayout(self.page_2)
self.gridLayout_3.setObjectName("gridLayout_3")
self.label_5 = QtWidgets.QLabel(self.page_2)
font = QtGui.QFont()
font.setPointSize(20)
self.label_5.setFont(font)
self.label_5.setAlignment(QtCore.Qt.AlignCenter)
self.label_5.setObjectName("label_5")
self.gridLayout_3.addWidget(self.label_5, 0, 0, 1, 1)
self.stackedWidget.addWidget(self.page_2)
self.page_3 = QtWidgets.QWidget()
self.page_3.setObjectName("page_3")
self.gridLayout_4 = QtWidgets.QGridLayout(self.page_3)
self.gridLayout_4.setObjectName("gridLayout_4")
self.label_6 = QtWidgets.QLabel(self.page_3)
font = QtGui.QFont()
font.setPointSize(20)
self.label_6.setFont(font)
self.label_6.setAlignment(QtCore.Qt.AlignCenter)
self.label_6.setObjectName("label_6")
self.gridLayout_4.addWidget(self.label_6, 0, 0, 1, 1)
self.stackedWidget.addWidget(self.page_3)
self.page_4 = QtWidgets.QWidget()
self.page_4.setObjectName("page_4")
self.gridLayout_5 = QtWidgets.QGridLayout(self.page_4)
self.gridLayout_5.setObjectName("gridLayout_5")
self.label_7 = QtWidgets.QLabel(self.page_4)
font = QtGui.QFont()
font.setPointSize(20)
self.label_7.setFont(font)
self.label_7.setAlignment(QtCore.Qt.AlignCenter)
self.label_7.setObjectName("label_7")
self.gridLayout_5.addWidget(self.label_7, 0, 0, 1, 1)
self.stackedWidget.addWidget(self.page_4)
self.page_5 = QtWidgets.QWidget()
self.page_5.setObjectName("page_5")
self.gridLayout_6 = QtWidgets.QGridLayout(self.page_5)
self.gridLayout_6.setObjectName("gridLayout_6")
self.label_8 = QtWidgets.QLabel(self.page_5)
font = QtGui.QFont()
font.setPointSize(20)
self.label_8.setFont(font)
self.label_8.setAlignment(QtCore.Qt.AlignCenter)
self.label_8.setObjectName("label_8")
self.gridLayout_6.addWidget(self.label_8, 0, 0, 1, 1)
self.stackedWidget.addWidget(self.page_5)
self.page_6 = QtWidgets.QWidget()
self.page_6.setObjectName("page_6")
self.gridLayout_7 = QtWidgets.QGridLayout(self.page_6)
self.gridLayout_7.setObjectName("gridLayout_7")
self.label_9 = QtWidgets.QLabel(self.page_6)
font = QtGui.QFont()
font.setPointSize(20)
self.label_9.setFont(font)
self.label_9.setAlignment(QtCore.Qt.AlignCenter)
self.label_9.setObjectName("label_9")
self.gridLayout_7.addWidget(self.label_9, 0, 0, 1, 1)
self.stackedWidget.addWidget(self.page_6)
self.page_7 = QtWidgets.QWidget()
self.page_7.setObjectName("page_7")
self.gridLayout_8 = QtWidgets.QGridLayout(self.page_7)
self.gridLayout_8.setObjectName("gridLayout_8")
self.label_10 = QtWidgets.QLabel(self.page_7)
font = QtGui.QFont()
font.setPointSize(20)
self.label_10.setFont(font)
self.label_10.setAlignment(QtCore.Qt.AlignCenter)
self.label_10.setObjectName("label_10")
self.gridLayout_8.addWidget(self.label_10, 0, 0, 1, 1)
self.stackedWidget.addWidget(self.page_7)
self.verticalLayout_5.addWidget(self.stackedWidget)
self.gridLayout.addWidget(self.widget_3, 0, 2, 1, 1)
MainWindow.setCentralWidget(self.centralwidget)
self.retranslateUi(MainWindow)
self.stackedWidget.setCurrentIndex(6)
self.change_btn.toggled['bool'].connect(self.icon_only_widget.setVisible) # type: ignore
self.change_btn.toggled['bool'].connect(self.full_menu_widget.setHidden) # type: ignore
self.home_btn_1.toggled['bool'].connect(self.home_btn_2.setChecked) # type: ignore
self.dashborad_btn_1.toggled['bool'].connect(self.dashborad_btn_2.setChecked) # type: ignore
self.orders_btn_1.toggled['bool'].connect(self.orders_btn_2.setChecked) # type: ignore
self.products_btn_1.toggled['bool'].connect(self.products_btn_2.setChecked) # type: ignore
self.customers_btn_1.toggled['bool'].connect(self.customers_btn_2.setChecked) # type: ignore
self.home_btn_2.toggled['bool'].connect(self.home_btn_1.setChecked) # type: ignore
self.dashborad_btn_2.toggled['bool'].connect(self.dashborad_btn_1.setChecked) # type: ignore
self.orders_btn_2.toggled['bool'].connect(self.orders_btn_1.setChecked) # type: ignore
self.products_btn_2.toggled['bool'].connect(self.products_btn_1.setChecked) # type: ignore
self.customers_btn_2.toggled['bool'].connect(self.customers_btn_1.setChecked) # type: ignore
self.exit_btn_2.clicked.connect(MainWindow.close) # type: ignore
self.exit_btn_1.clicked.connect(MainWindow.close) # type: ignore
QtCore.QMetaObject.connectSlotsByName(MainWindow)
def retranslateUi(self, MainWindow):
_translate = QtCore.QCoreApplication.translate
MainWindow.setWindowTitle(_translate("BotSigner", "BotSigner"))
self.logo_label_3.setText(_translate("MainWindow", "BotSigner"))
self.home_btn_2.setText(_translate("MainWindow", "Inference"))
self.dashborad_btn_2.setText(_translate("MainWindow", "Holistic Inference"))
self.orders_btn_2.setText(_translate("MainWindow", "Learning Progress"))
self.products_btn_2.setText(_translate("MainWindow", "About Us"))
#self.customers_btn_2.setText(_translate("MainWindow", "Customers"))
self.exit_btn_2.setText(_translate("MainWindow", "Exit"))
self.search_input.setPlaceholderText(_translate("MainWindow", "Search..."))
#self.label_4.setText(_translate("MainWindow", "Inference"))
#self.label_5.setText(_translate("MainWindow", "Holistic Inference"))
self.label_6.setText(_translate("MainWindow", "Learning Progress"))
self.label_7.setText(_translate("MainWindow", "About Us"))
self.label_8.setText(_translate("MainWindow", "Customers Page"))
self.label_9.setText(_translate("MainWindow", "Search Page"))
self.label_10.setText(_translate("MainWindow", "User Page"))
import resource_rc