-
Notifications
You must be signed in to change notification settings - Fork 1
/
Ui_qt5design.py
197 lines (190 loc) · 11.5 KB
/
Ui_qt5design.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
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'c:\Users\Lenovo\Desktop\__MyCode\NeteaseCloudMusic\NeteaseCloudMusic\qt5design.ui'
#
# Created by: PyQt5 UI code generator 5.15.9
#
# 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.setEnabled(True)
MainWindow.resize(929, 732)
MainWindow.setTabletTracking(False)
MainWindow.setAnimated(True)
self.centralwidget = QtWidgets.QWidget(MainWindow)
self.centralwidget.setObjectName("centralwidget")
self.widget = QtWidgets.QWidget(self.centralwidget)
self.widget.setGeometry(QtCore.QRect(12, 12, 901, 681))
self.widget.setObjectName("widget")
self.verticalLayout = QtWidgets.QVBoxLayout(self.widget)
self.verticalLayout.setContentsMargins(0, 0, 0, 0)
self.verticalLayout.setSpacing(1)
self.verticalLayout.setObjectName("verticalLayout")
self.gridLayout_4 = QtWidgets.QGridLayout()
self.gridLayout_4.setObjectName("gridLayout_4")
self.gridLayout_5 = QtWidgets.QGridLayout()
self.gridLayout_5.setObjectName("gridLayout_5")
spacerItem = QtWidgets.QSpacerItem(28, 25, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
self.gridLayout_5.addItem(spacerItem, 1, 1, 1, 1)
self.checkBoxIfNotify = QtWidgets.QCheckBox(self.widget)
font = QtGui.QFont()
font.setFamily("微软雅黑")
self.checkBoxIfNotify.setFont(font)
self.checkBoxIfNotify.setCursor(QtGui.QCursor(QtCore.Qt.ArrowCursor))
self.checkBoxIfNotify.setChecked(True)
self.checkBoxIfNotify.setObjectName("checkBoxIfNotify")
self.gridLayout_5.addWidget(self.checkBoxIfNotify, 2, 2, 1, 1)
spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.gridLayout_5.addItem(spacerItem1, 2, 0, 1, 1)
spacerItem2 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.gridLayout_5.addItem(spacerItem2, 0, 2, 1, 1)
self.gridLayout_2 = QtWidgets.QGridLayout()
self.gridLayout_2.setObjectName("gridLayout_2")
self.labelCount = QtWidgets.QLabel(self.widget)
font = QtGui.QFont()
font.setFamily("微软雅黑")
self.labelCount.setFont(font)
self.labelCount.setObjectName("labelCount")
self.gridLayout_2.addWidget(self.labelCount, 0, 0, 1, 1)
self.horizontalSliderCount = QtWidgets.QSlider(self.widget)
self.horizontalSliderCount.setMaximumSize(QtCore.QSize(291, 22))
self.horizontalSliderCount.setCursor(QtGui.QCursor(QtCore.Qt.ClosedHandCursor))
self.horizontalSliderCount.setAutoFillBackground(False)
self.horizontalSliderCount.setMaximum(1000)
self.horizontalSliderCount.setOrientation(QtCore.Qt.Horizontal)
self.horizontalSliderCount.setTickPosition(QtWidgets.QSlider.TicksBelow)
self.horizontalSliderCount.setTickInterval(100)
self.horizontalSliderCount.setObjectName("horizontalSliderCount")
self.gridLayout_2.addWidget(self.horizontalSliderCount, 0, 1, 1, 1)
self.lineEditCount = QtWidgets.QLineEdit(self.widget)
font = QtGui.QFont()
font.setFamily("微软雅黑")
self.lineEditCount.setFont(font)
self.lineEditCount.setInputMethodHints(QtCore.Qt.ImhNone)
self.lineEditCount.setInputMask("")
self.lineEditCount.setText("")
self.lineEditCount.setClearButtonEnabled(False)
self.lineEditCount.setObjectName("lineEditCount")
self.gridLayout_2.addWidget(self.lineEditCount, 0, 2, 1, 1)
self.gridLayout_2.setColumnStretch(1, 10)
self.gridLayout_2.setColumnStretch(2, 1)
self.gridLayout_5.addLayout(self.gridLayout_2, 0, 0, 1, 2)
self.gridLayout_5.setColumnStretch(0, 1)
self.gridLayout_4.addLayout(self.gridLayout_5, 0, 0, 1, 1)
self.gridLayout = QtWidgets.QGridLayout()
self.gridLayout.setContentsMargins(0, -1, -1, -1)
self.gridLayout.setHorizontalSpacing(7)
self.gridLayout.setObjectName("gridLayout")
spacerItem3 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.gridLayout.addItem(spacerItem3, 2, 0, 1, 1)
spacerItem4 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.gridLayout.addItem(spacerItem4, 0, 2, 1, 1)
self.pushButtonRun = QtWidgets.QPushButton(self.widget)
self.pushButtonRun.setEnabled(True)
font = QtGui.QFont()
font.setFamily("微软雅黑")
self.pushButtonRun.setFont(font)
self.pushButtonRun.setCursor(QtGui.QCursor(QtCore.Qt.ArrowCursor))
self.pushButtonRun.setObjectName("pushButtonRun")
self.gridLayout.addWidget(self.pushButtonRun, 0, 1, 1, 1)
spacerItem5 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.gridLayout.addItem(spacerItem5, 1, 2, 1, 1)
spacerItem6 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.gridLayout.addItem(spacerItem6, 1, 0, 1, 1)
self.pushButtonStop = QtWidgets.QPushButton(self.widget)
font = QtGui.QFont()
font.setFamily("微软雅黑")
self.pushButtonStop.setFont(font)
self.pushButtonStop.setCursor(QtGui.QCursor(QtCore.Qt.ArrowCursor))
self.pushButtonStop.setObjectName("pushButtonStop")
self.gridLayout.addWidget(self.pushButtonStop, 1, 1, 1, 1)
spacerItem7 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.gridLayout.addItem(spacerItem7, 2, 2, 1, 1)
self.pushButtonExit = QtWidgets.QPushButton(self.widget)
font = QtGui.QFont()
font.setFamily("微软雅黑")
self.pushButtonExit.setFont(font)
self.pushButtonExit.setCursor(QtGui.QCursor(QtCore.Qt.ArrowCursor))
self.pushButtonExit.setObjectName("pushButtonExit")
self.gridLayout.addWidget(self.pushButtonExit, 2, 1, 1, 1)
spacerItem8 = QtWidgets.QSpacerItem(30, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.gridLayout.addItem(spacerItem8, 0, 0, 1, 1)
self.gridLayout.setColumnStretch(0, 2)
self.gridLayout.setColumnStretch(1, 3)
self.gridLayout.setColumnStretch(2, 1)
self.gridLayout_4.addLayout(self.gridLayout, 0, 2, 1, 1)
spacerItem9 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.gridLayout_4.addItem(spacerItem9, 0, 1, 1, 1)
self.gridLayout_4.setColumnStretch(0, 9)
self.gridLayout_4.setColumnStretch(2, 2)
self.verticalLayout.addLayout(self.gridLayout_4)
spacerItem10 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
self.verticalLayout.addItem(spacerItem10)
self.gridLayout_7 = QtWidgets.QGridLayout()
self.gridLayout_7.setHorizontalSpacing(1)
self.gridLayout_7.setObjectName("gridLayout_7")
self.groupBox = QtWidgets.QGroupBox(self.widget)
self.groupBox.setObjectName("groupBox")
self.gridLayout_3 = QtWidgets.QGridLayout(self.groupBox)
self.gridLayout_3.setObjectName("gridLayout_3")
self.textBrowserLogger = QtWidgets.QTextBrowser(self.groupBox)
self.textBrowserLogger.setEnabled(True)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.textBrowserLogger.sizePolicy().hasHeightForWidth())
self.textBrowserLogger.setSizePolicy(sizePolicy)
font = QtGui.QFont()
font.setFamily("微软雅黑")
self.textBrowserLogger.setFont(font)
self.textBrowserLogger.viewport().setProperty("cursor", QtGui.QCursor(QtCore.Qt.IBeamCursor))
self.textBrowserLogger.setObjectName("textBrowserLogger")
self.gridLayout_3.addWidget(self.textBrowserLogger, 0, 0, 1, 2)
spacerItem11 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.gridLayout_3.addItem(spacerItem11, 1, 0, 1, 1)
self.pushButtonClear = QtWidgets.QPushButton(self.groupBox)
self.pushButtonClear.setObjectName("pushButtonClear")
self.gridLayout_3.addWidget(self.pushButtonClear, 1, 1, 1, 1)
self.gridLayout_7.addWidget(self.groupBox, 0, 0, 2, 1)
spacerItem12 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.gridLayout_7.addItem(spacerItem12, 0, 1, 1, 1)
self.groupBox_2 = QtWidgets.QGroupBox(self.widget)
self.groupBox_2.setObjectName("groupBox_2")
self.gridLayout_6 = QtWidgets.QGridLayout(self.groupBox_2)
self.gridLayout_6.setObjectName("gridLayout_6")
self.threadradioButton = QtWidgets.QRadioButton(self.groupBox_2)
self.threadradioButton.setObjectName("threadradioButton")
self.gridLayout_6.addWidget(self.threadradioButton, 0, 0, 1, 1)
self.gridLayout_7.addWidget(self.groupBox_2, 0, 2, 1, 1)
spacerItem13 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
self.gridLayout_7.addItem(spacerItem13, 1, 2, 1, 1)
self.gridLayout_7.setColumnStretch(0, 9)
self.gridLayout_7.setColumnStretch(2, 1)
self.verticalLayout.addLayout(self.gridLayout_7)
self.verticalLayout.setStretch(0, 3)
self.verticalLayout.setStretch(2, 9)
MainWindow.setCentralWidget(self.centralwidget)
self.statusbar = QtWidgets.QStatusBar(MainWindow)
self.statusbar.setObjectName("statusbar")
MainWindow.setStatusBar(self.statusbar)
self.labelCount.setBuddy(self.lineEditCount)
self.retranslateUi(MainWindow)
self.pushButtonExit.clicked.connect(MainWindow.close) # type: ignore
self.pushButtonClear.clicked.connect(self.textBrowserLogger.clear) # type: ignore
QtCore.QMetaObject.connectSlotsByName(MainWindow)
def retranslateUi(self, MainWindow):
_translate = QtCore.QCoreApplication.translate
MainWindow.setWindowTitle(_translate("MainWindow", "MainWindow"))
self.checkBoxIfNotify.setText(_translate("MainWindow", "完成后通知"))
self.labelCount.setToolTip(_translate("MainWindow", "<html><head/><body><p>播放歌曲的次数</p></body></html>"))
self.labelCount.setText(_translate("MainWindow", "<html><head/><body><p><span style=\" font-size:10pt;\">循环次数:</span></p></body></html>"))
self.pushButtonRun.setToolTip(_translate("MainWindow", "<html><head/><body><p>运行主程序</p></body></html>"))
self.pushButtonRun.setText(_translate("MainWindow", "运行"))
self.pushButtonStop.setText(_translate("MainWindow", "暂停"))
self.pushButtonExit.setText(_translate("MainWindow", "退出"))
self.groupBox.setTitle(_translate("MainWindow", "日志"))
self.pushButtonClear.setText(_translate("MainWindow", "清除输出内容"))
self.groupBox_2.setTitle(_translate("MainWindow", "线程状态"))
self.threadradioButton.setText(_translate("MainWindow", "thread"))