-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathui.py
132 lines (125 loc) · 7.2 KB
/
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
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'mainWindow.ui'
#
# Created by: PyQt5 UI code generator 5.15.1
#
# 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
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
MainWindow.setObjectName("MainWindow")
MainWindow.resize(960, 562)
icon = QtGui.QIcon()
icon.addPixmap(QtGui.QPixmap("ResourceFiles/images/电影视频.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
MainWindow.setWindowIcon(icon)
MainWindow.setStyleSheet("MainWindow{\n"
" \n"
" background-color: rgb(12, 12, 12);\n"
"}")
self.centralwidget = QtWidgets.QWidget(MainWindow)
self.centralwidget.setMinimumSize(QtCore.QSize(960, 540))
self.centralwidget.setObjectName("centralwidget")
self.gridLayout = QtWidgets.QGridLayout(self.centralwidget)
self.gridLayout.setObjectName("gridLayout")
self.settingsButton = QtWidgets.QPushButton(self.centralwidget)
self.settingsButton.setMinimumSize(QtCore.QSize(96, 44))
self.settingsButton.setMaximumSize(QtCore.QSize(96, 44))
icon1 = QtGui.QIcon()
icon1.addPixmap(QtGui.QPixmap("ResourceFiles/images/设 置 (1).png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.settingsButton.setIcon(icon1)
self.settingsButton.setObjectName("settingsButton")
self.gridLayout.addWidget(self.settingsButton, 5, 0, 1, 1, QtCore.Qt.AlignLeft)
self.homeButton = QtWidgets.QPushButton(self.centralwidget)
self.homeButton.setEnabled(True)
self.homeButton.setMinimumSize(QtCore.QSize(96, 44))
self.homeButton.setMaximumSize(QtCore.QSize(96, 44))
self.homeButton.setStyleSheet("")
icon2 = QtGui.QIcon()
icon2.addPixmap(QtGui.QPixmap("ResourceFiles/images/首页 (1).png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.homeButton.setIcon(icon2)
self.homeButton.setAutoDefault(False)
self.homeButton.setDefault(False)
self.homeButton.setFlat(False)
self.homeButton.setObjectName("homeButton")
self.gridLayout.addWidget(self.homeButton, 1, 0, 1, 1, QtCore.Qt.AlignLeft)
self.label_2 = QtWidgets.QLabel(self.centralwidget)
self.label_2.setMinimumSize(QtCore.QSize(60, 60))
self.label_2.setMaximumSize(QtCore.QSize(80, 80))
self.label_2.setText("")
self.label_2.setPixmap(QtGui.QPixmap("ResourceFiles/images/u=1592900172,1428334957&fm=26&gp=0.jpg"))
self.label_2.setObjectName("label_2")
self.gridLayout.addWidget(self.label_2, 0, 0, 1, 1)
self.privateButton = QtWidgets.QPushButton(self.centralwidget)
self.privateButton.setMinimumSize(QtCore.QSize(96, 44))
self.privateButton.setMaximumSize(QtCore.QSize(96, 44))
icon3 = QtGui.QIcon()
icon3.addPixmap(QtGui.QPixmap("ResourceFiles/images/私人库.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.privateButton.setIcon(icon3)
self.privateButton.setIconSize(QtCore.QSize(16, 16))
self.privateButton.setObjectName("privateButton")
self.gridLayout.addWidget(self.privateButton, 6, 0, 1, 1, QtCore.Qt.AlignLeft)
self.mediaButton = QtWidgets.QPushButton(self.centralwidget)
self.mediaButton.setMinimumSize(QtCore.QSize(96, 44))
self.mediaButton.setMaximumSize(QtCore.QSize(96, 44))
icon4 = QtGui.QIcon()
icon4.addPixmap(QtGui.QPixmap("ResourceFiles/images/媒体资源.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.mediaButton.setIcon(icon4)
self.mediaButton.setObjectName("mediaButton")
self.gridLayout.addWidget(self.mediaButton, 4, 0, 1, 1, QtCore.Qt.AlignLeft)
self.movieButton = QtWidgets.QPushButton(self.centralwidget)
self.movieButton.setMinimumSize(QtCore.QSize(96, 44))
self.movieButton.setMaximumSize(QtCore.QSize(96, 44))
self.movieButton.setIcon(icon)
self.movieButton.setObjectName("movieButton")
self.gridLayout.addWidget(self.movieButton, 2, 0, 1, 1, QtCore.Qt.AlignLeft)
self.showLayout = QtWidgets.QGridLayout()
self.showLayout.setContentsMargins(0, -1, -1, -1)
self.showLayout.setObjectName("showLayout")
self.widget = QtWidgets.QWidget(self.centralwidget)
self.widget.setObjectName("widget")
self.showLayout.addWidget(self.widget, 1, 0, 1, 1)
self.gridLayout.addLayout(self.showLayout, 0, 1, 10, 1)
self.aboutButton = QtWidgets.QPushButton(self.centralwidget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.aboutButton.sizePolicy().hasHeightForWidth())
self.aboutButton.setSizePolicy(sizePolicy)
self.aboutButton.setMinimumSize(QtCore.QSize(96, 44))
self.aboutButton.setMaximumSize(QtCore.QSize(96, 44))
icon5 = QtGui.QIcon()
icon5.addPixmap(QtGui.QPixmap("ResourceFiles/images/关于.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.aboutButton.setIcon(icon5)
self.aboutButton.setObjectName("aboutButton")
self.gridLayout.addWidget(self.aboutButton, 7, 0, 1, 1, QtCore.Qt.AlignLeft)
self.pushButton = QtWidgets.QPushButton(self.centralwidget)
self.pushButton.setMinimumSize(QtCore.QSize(96, 44))
self.pushButton.setMaximumSize(QtCore.QSize(96, 44))
icon6 = QtGui.QIcon()
icon6.addPixmap(QtGui.QPixmap("ResourceFiles/images/电视剧.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.pushButton.setIcon(icon6)
self.pushButton.setObjectName("pushButton")
self.gridLayout.addWidget(self.pushButton, 3, 0, 1, 1, QtCore.Qt.AlignLeft)
MainWindow.setCentralWidget(self.centralwidget)
self.statusbar = QtWidgets.QStatusBar(MainWindow)
self.statusbar.setObjectName("statusbar")
MainWindow.setStatusBar(self.statusbar)
self.retranslateUi(MainWindow)
QtCore.QMetaObject.connectSlotsByName(MainWindow)
MainWindow.setTabOrder(self.homeButton, self.movieButton)
MainWindow.setTabOrder(self.movieButton, self.pushButton)
MainWindow.setTabOrder(self.pushButton, self.mediaButton)
MainWindow.setTabOrder(self.mediaButton, self.settingsButton)
MainWindow.setTabOrder(self.settingsButton, self.privateButton)
MainWindow.setTabOrder(self.privateButton, self.aboutButton)
def retranslateUi(self, MainWindow):
_translate = QtCore.QCoreApplication.translate
MainWindow.setWindowTitle(_translate("MainWindow", "影视收藏工具箱"))
self.settingsButton.setText(_translate("MainWindow", "设置"))
self.homeButton.setText(_translate("MainWindow", "首页"))
self.privateButton.setText(_translate("MainWindow", "私人空间"))
self.mediaButton.setText(_translate("MainWindow", "媒体库"))
self.movieButton.setText(_translate("MainWindow", "电影"))
self.aboutButton.setText(_translate("MainWindow", "关于"))
self.pushButton.setText(_translate("MainWindow", "电视剧"))