forked from PyQt5/PyQt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Ui_Main.py
181 lines (173 loc) · 9.69 KB
/
Ui_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
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
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'D:\QGroup_432987409\WoHowLearn\0.M_I_pyqt\partner_625781186\5.hoverMenu\Main.ui'
#
# Created by: PyQt5 UI code generator 5.9
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
MainWindow.setObjectName("MainWindow")
MainWindow.resize(648, 493)
MainWindow.setStyleSheet(" #MainWindow { border:none;}")
self.centralWidget = QtWidgets.QWidget(MainWindow)
self.centralWidget.setStyleSheet("#centralWidget {border:none;}")
self.centralWidget.setObjectName("centralWidget")
self.verticalLayout = QtWidgets.QVBoxLayout(self.centralWidget)
self.verticalLayout.setContentsMargins(0, 0, 0, 0)
self.verticalLayout.setSpacing(2)
self.verticalLayout.setObjectName("verticalLayout")
self.widget = QtWidgets.QWidget(self.centralWidget)
self.widget.setStyleSheet("#widget {border:none;}")
self.widget.setObjectName("widget")
self.verticalLayout_14 = QtWidgets.QVBoxLayout(self.widget)
self.verticalLayout_14.setContentsMargins(0, 0, 0, 0)
self.verticalLayout_14.setSpacing(0)
self.verticalLayout_14.setObjectName("verticalLayout_14")
self.topWidget = QtWidgets.QWidget(self.widget)
self.topWidget.setStyleSheet("#widget{ border:none; }")
self.topWidget.setObjectName("topWidget")
self.horizontalLayout = QtWidgets.QHBoxLayout(self.topWidget)
self.horizontalLayout.setContentsMargins(0, 0, 0, 0)
self.horizontalLayout.setSpacing(2)
self.horizontalLayout.setObjectName("horizontalLayout")
self.W1 = SingeleWidget(self.topWidget)
self.W1.setObjectName("W1")
self.gridLayout = QtWidgets.QGridLayout(self.W1)
self.gridLayout.setContentsMargins(9, 9, 9, 9)
self.gridLayout.setSpacing(2)
self.gridLayout.setObjectName("gridLayout")
self.filemenu_storeData_3 = B1(self.W1)
self.filemenu_storeData_3.setText("")
self.filemenu_storeData_3.setObjectName("filemenu_storeData_3")
self.gridLayout.addWidget(self.filemenu_storeData_3, 0, 1, 1, 1)
self.label_15 = QtWidgets.QLabel(self.W1)
self.label_15.setAlignment(QtCore.Qt.AlignCenter)
self.label_15.setObjectName("label_15")
self.gridLayout.addWidget(self.label_15, 1, 1, 1, 1)
spacerItem = QtWidgets.QSpacerItem(10, 20, QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Minimum)
self.gridLayout.addItem(spacerItem, 0, 0, 1, 1)
spacerItem1 = QtWidgets.QSpacerItem(10, 20, QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Minimum)
self.gridLayout.addItem(spacerItem1, 0, 2, 1, 1)
self.horizontalLayout.addWidget(self.W1)
self.W2 = SingeleWidget(self.topWidget)
self.W2.setObjectName("W2")
self.gridLayout_2 = QtWidgets.QGridLayout(self.W2)
self.gridLayout_2.setContentsMargins(9, 9, 9, 9)
self.gridLayout_2.setSpacing(2)
self.gridLayout_2.setObjectName("gridLayout_2")
self.label_16 = QtWidgets.QLabel(self.W2)
self.label_16.setAlignment(QtCore.Qt.AlignCenter)
self.label_16.setObjectName("label_16")
self.gridLayout_2.addWidget(self.label_16, 1, 1, 1, 1)
self.filemenu_competitiveProductAnalysis_3 = B2(self.W2)
self.filemenu_competitiveProductAnalysis_3.setText("")
self.filemenu_competitiveProductAnalysis_3.setObjectName("filemenu_competitiveProductAnalysis_3")
self.gridLayout_2.addWidget(self.filemenu_competitiveProductAnalysis_3, 0, 1, 1, 1)
spacerItem2 = QtWidgets.QSpacerItem(10, 20, QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Minimum)
self.gridLayout_2.addItem(spacerItem2, 0, 0, 1, 1)
spacerItem3 = QtWidgets.QSpacerItem(10, 20, QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Minimum)
self.gridLayout_2.addItem(spacerItem3, 0, 2, 1, 1)
self.horizontalLayout.addWidget(self.W2)
self.W3 = SingeleWidget(self.topWidget)
self.W3.setObjectName("W3")
self.gridLayout_4 = QtWidgets.QGridLayout(self.W3)
self.gridLayout_4.setContentsMargins(9, 9, 9, 9)
self.gridLayout_4.setSpacing(2)
self.gridLayout_4.setObjectName("gridLayout_4")
spacerItem4 = QtWidgets.QSpacerItem(10, 20, QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Minimum)
self.gridLayout_4.addItem(spacerItem4, 0, 0, 1, 1)
self.filemenu_throughTrain_4 = B3(self.W3)
self.filemenu_throughTrain_4.setAutoFillBackground(False)
self.filemenu_throughTrain_4.setText("")
self.filemenu_throughTrain_4.setObjectName("filemenu_throughTrain_4")
self.gridLayout_4.addWidget(self.filemenu_throughTrain_4, 0, 1, 1, 1)
self.label_19 = QtWidgets.QLabel(self.W3)
self.label_19.setAlignment(QtCore.Qt.AlignCenter)
self.label_19.setObjectName("label_19")
self.gridLayout_4.addWidget(self.label_19, 1, 1, 1, 1)
spacerItem5 = QtWidgets.QSpacerItem(10, 20, QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Minimum)
self.gridLayout_4.addItem(spacerItem5, 0, 2, 1, 1)
self.horizontalLayout.addWidget(self.W3)
self.W4 = SingeleWidget(self.topWidget)
self.W4.setObjectName("W4")
self.gridLayout_5 = QtWidgets.QGridLayout(self.W4)
self.gridLayout_5.setContentsMargins(9, 9, 9, 9)
self.gridLayout_5.setSpacing(2)
self.gridLayout_5.setObjectName("gridLayout_5")
spacerItem6 = QtWidgets.QSpacerItem(10, 20, QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Minimum)
self.gridLayout_5.addItem(spacerItem6, 0, 0, 1, 1)
self.filemenu_throughTrain_3 = B4(self.W4)
self.filemenu_throughTrain_3.setAutoFillBackground(False)
self.filemenu_throughTrain_3.setText("")
self.filemenu_throughTrain_3.setObjectName("filemenu_throughTrain_3")
self.gridLayout_5.addWidget(self.filemenu_throughTrain_3, 0, 1, 1, 1)
self.label_14 = QtWidgets.QLabel(self.W4)
self.label_14.setAlignment(QtCore.Qt.AlignCenter)
self.label_14.setObjectName("label_14")
self.gridLayout_5.addWidget(self.label_14, 1, 1, 1, 1)
spacerItem7 = QtWidgets.QSpacerItem(10, 20, QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Minimum)
self.gridLayout_5.addItem(spacerItem7, 0, 2, 1, 1)
self.horizontalLayout.addWidget(self.W4)
self.verticalLayout_19 = QtWidgets.QVBoxLayout()
self.verticalLayout_19.setContentsMargins(0, 0, 0, 0)
self.verticalLayout_19.setSpacing(2)
self.verticalLayout_19.setObjectName("verticalLayout_19")
self.label_17 = QtWidgets.QLabel(self.topWidget)
self.label_17.setAlignment(QtCore.Qt.AlignCenter)
self.label_17.setObjectName("label_17")
self.verticalLayout_19.addWidget(self.label_17)
self.label_18 = QtWidgets.QLabel(self.topWidget)
self.label_18.setAlignment(QtCore.Qt.AlignCenter)
self.label_18.setObjectName("label_18")
self.verticalLayout_19.addWidget(self.label_18)
self.horizontalLayout.addLayout(self.verticalLayout_19)
spacerItem8 = QtWidgets.QSpacerItem(25, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.horizontalLayout.addItem(spacerItem8)
self.horizontalLayout.setStretch(0, 1)
self.horizontalLayout.setStretch(1, 1)
self.horizontalLayout.setStretch(2, 1)
self.horizontalLayout.setStretch(3, 1)
self.verticalLayout_14.addWidget(self.topWidget)
self.buttomWidget = QtWidgets.QWidget(self.widget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.buttomWidget.sizePolicy().hasHeightForWidth())
self.buttomWidget.setSizePolicy(sizePolicy)
self.buttomWidget.setObjectName("buttomWidget")
self.Buttom_Vbox = QtWidgets.QVBoxLayout(self.buttomWidget)
self.Buttom_Vbox.setContentsMargins(0, 0, 0, 0)
self.Buttom_Vbox.setSpacing(0)
self.Buttom_Vbox.setObjectName("Buttom_Vbox")
self.verticalLayout_14.addWidget(self.buttomWidget)
self.verticalLayout.addWidget(self.widget)
MainWindow.setCentralWidget(self.centralWidget)
self.action1 = QtWidgets.QAction(MainWindow)
self.action1.setObjectName("action1")
self.action2 = QtWidgets.QAction(MainWindow)
self.action2.setObjectName("action2")
self.retranslateUi(MainWindow)
QtCore.QMetaObject.connectSlotsByName(MainWindow)
def retranslateUi(self, MainWindow):
_translate = QtCore.QCoreApplication.translate
MainWindow.setWindowTitle(_translate("MainWindow", "MainWindow"))
self.label_15.setText(_translate("MainWindow", "店铺数据"))
self.label_16.setText(_translate("MainWindow", "竞品分析"))
self.label_19.setText(_translate("MainWindow", "直通车工具工具工具"))
self.label_14.setText(_translate("MainWindow", "直通"))
self.label_17.setText(_translate("MainWindow", "个人中心"))
self.label_18.setText(_translate("MainWindow", "退出登录"))
self.action1.setText(_translate("MainWindow", "1"))
self.action2.setText(_translate("MainWindow", "2"))
from BaseElement import SingeleWidget
from Menu import B1, B2, B3, B4
import tbqrc_rc
if __name__ == "__main__":
import sys
app = QtWidgets.QApplication(sys.argv)
MainWindow = QtWidgets.QMainWindow()
ui = Ui_MainWindow()
ui.setupUi(MainWindow)
MainWindow.show()
sys.exit(app.exec_())