-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMainWindow.py
129 lines (122 loc) · 5.84 KB
/
MainWindow.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
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'untitled.ui'
#
# Created by: PyQt5 UI code generator 5.15.4
#
# 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 MainWindow(object):
def setupUi(self, Form):
Form.setObjectName("Form")
Form.setEnabled(True)
Form.resize(537, 340)
font = QtGui.QFont()
font.setFamily("Arial")
Form.setFont(font)
self.treeWidget = QtWidgets.QTreeWidget(Form)
self.treeWidget.setGeometry(QtCore.QRect(10, 40, 131, 241))
font = QtGui.QFont()
font.setFamily("小米兰亭")
self.treeWidget.setFont(font)
self.treeWidget.setObjectName("treeWidget")
self.pushButton = QtWidgets.QPushButton(Form)
self.pushButton.setGeometry(QtCore.QRect(450, 250, 71, 31))
self.pushButton.setObjectName("pushButton")
self.label = QtWidgets.QLabel(Form)
self.label.setGeometry(QtCore.QRect(40, 10, 71, 21))
font = QtGui.QFont()
font.setFamily("小米兰亭")
font.setPointSize(12)
self.label.setFont(font)
self.label.setObjectName("label")
self.pushButton_2 = QtWidgets.QPushButton(Form)
self.pushButton_2.setGeometry(QtCore.QRect(150, 40, 61, 23))
self.pushButton_2.setObjectName("pushButton_2")
self.label_2 = QtWidgets.QLabel(Form)
self.label_2.setGeometry(QtCore.QRect(300, 10, 71, 21))
font = QtGui.QFont()
font.setFamily("小米兰亭")
font.setPointSize(12)
self.label_2.setFont(font)
self.label_2.setObjectName("label_2")
self.lineEdit = QtWidgets.QLineEdit(Form)
self.lineEdit.setGeometry(QtCore.QRect(60, 300, 381, 20))
font = QtGui.QFont()
font.setFamily("Arial")
font.setPointSize(10)
self.lineEdit.setFont(font)
self.lineEdit.setText("")
self.lineEdit.setObjectName("lineEdit")
self.pushButton_3 = QtWidgets.QPushButton(Form)
self.pushButton_3.setGeometry(QtCore.QRect(450, 300, 71, 21))
self.pushButton_3.setObjectName("pushButton_3")
self.tableWidget = QtWidgets.QTableWidget(Form)
self.tableWidget.setGeometry(QtCore.QRect(220, 40, 221, 241))
font = QtGui.QFont()
font.setFamily("Arial")
self.tableWidget.setFont(font)
self.tableWidget.setFocusPolicy(QtCore.Qt.NoFocus)
self.tableWidget.setObjectName("tableWidget")
self.tableWidget.setColumnCount(0)
self.tableWidget.setRowCount(0)
self.label_3 = QtWidgets.QLabel(Form)
self.label_3.setGeometry(QtCore.QRect(10, 300, 41, 21))
font = QtGui.QFont()
font.setFamily("小米兰亭")
self.label_3.setFont(font)
self.label_3.setObjectName("label_3")
self.pushButton_4 = QtWidgets.QPushButton(Form)
self.pushButton_4.setGeometry(QtCore.QRect(450, 170, 71, 31))
self.pushButton_4.setObjectName("pushButton_4")
self.pushButton_5 = QtWidgets.QPushButton(Form)
self.pushButton_5.setGeometry(QtCore.QRect(450, 210, 71, 31))
self.pushButton_5.setObjectName("pushButton_5")
self.label_4 = QtWidgets.QLabel(Form)
self.label_4.setGeometry(QtCore.QRect(150, 70, 71, 211))
font = QtGui.QFont()
font.setFamily("宋体")
font.setPointSize(8)
self.label_4.setFont(font)
self.label_4.setFocusPolicy(QtCore.Qt.WheelFocus)
self.label_4.setTextFormat(QtCore.Qt.AutoText)
self.label_4.setWordWrap(True)
self.label_4.setObjectName("label_4")
self.label_5 = QtWidgets.QLabel(Form)
self.label_5.setGeometry(QtCore.QRect(450, 40, 71, 71))
self.label_5.setText("")
self.label_5.setObjectName("label_5")
self.pushButton_6 = QtWidgets.QPushButton(Form)
self.pushButton_6.setGeometry(QtCore.QRect(450, 141, 71, 20))
self.pushButton_6.setObjectName("pushButton_6")
self.pushButton_7 = QtWidgets.QPushButton(Form)
self.pushButton_7.setGeometry(QtCore.QRect(450, 120, 71, 20))
self.pushButton_7.setObjectName("pushButton_7")
self.retranslateUi(Form)
QtCore.QMetaObject.connectSlotsByName(Form)
def retranslateUi(self, Form):
self.pushButton.setEnabled(False)
self.pushButton_4.setEnabled(False)
self.pushButton_5.setEnabled(False)
self.pushButton_6.setEnabled(False)
self.pushButton_7.setEnabled(False)
_translate = QtCore.QCoreApplication.translate
Form.setFixedSize(Form.width(), Form.height())
Form.setWindowTitle(_translate("Form", "Bilibili批量取关UP主"))
self.treeWidget.headerItem().setText(0, _translate("Form", "分组列表"))
self.pushButton.setText(_translate("Form", "一键取关"))
self.label.setText(_translate("Form", "分组列表"))
self.pushButton_2.setText(_translate("Form", "获取 =>"))
self.label_2.setText(_translate("Form", "UP主列表"))
self.pushButton_3.setText(_translate("Form", "确认"))
self.label_3.setText(_translate("Form", "cookie:"))
self.pushButton_4.setText(_translate("Form", "全选"))
self.pushButton_5.setText(_translate("Form", "取消全选"))
self.label_4.setText(_translate("Form", "使用说明:\n"
"①首先粘贴cookie至下方输入框,点击确认\n"
"\n"
"②单次最多只能获取50个UP,如果数量较多可以分次取关\n"
"\n"
"③页面跳转会使前一页已勾选项失效"))
self.pushButton_6.setText(_translate("Form", "下一页"))
self.pushButton_7.setText(_translate("Form", "上一页"))