-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathui_sprawl.py
212 lines (196 loc) · 13.2 KB
/
ui_sprawl.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
# -*- coding: utf-8 -*-
################################################################################
## Form generated from reading UI file 'ui_sprawl.ui'
##
## Created by: Qt User Interface Compiler version 6.1.0
##
## WARNING! All changes made in this file will be lost when recompiling UI file!
################################################################################
from PySide6.QtCore import *
from PySide6.QtGui import *
from PySide6.QtWidgets import *
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
if not MainWindow.objectName():
MainWindow.setObjectName(u"MainWindow")
MainWindow.resize(800, 886)
self.centralwidget = QWidget(MainWindow)
self.centralwidget.setObjectName(u"centralwidget")
self.verticalLayout = QVBoxLayout(self.centralwidget)
self.verticalLayout.setObjectName(u"verticalLayout")
self.tabWidget = QTabWidget(self.centralwidget)
self.tabWidget.setObjectName(u"tabWidget")
self.tab_favourite = QWidget()
self.tab_favourite.setObjectName(u"tab_favourite")
self.pushButtonPunchin = QPushButton(self.tab_favourite)
self.pushButtonPunchin.setObjectName(u"pushButtonPunchin")
self.pushButtonPunchin.setGeometry(QRect(9, 9, 75, 24))
self.tableFavorite = QTableWidget(self.tab_favourite)
if (self.tableFavorite.columnCount() < 5):
self.tableFavorite.setColumnCount(5)
__qtablewidgetitem = QTableWidgetItem()
self.tableFavorite.setHorizontalHeaderItem(0, __qtablewidgetitem)
__qtablewidgetitem1 = QTableWidgetItem()
self.tableFavorite.setHorizontalHeaderItem(1, __qtablewidgetitem1)
__qtablewidgetitem2 = QTableWidgetItem()
self.tableFavorite.setHorizontalHeaderItem(2, __qtablewidgetitem2)
__qtablewidgetitem3 = QTableWidgetItem()
__qtablewidgetitem3.setBackground(QColor(156, 156, 156));
self.tableFavorite.setHorizontalHeaderItem(3, __qtablewidgetitem3)
__qtablewidgetitem4 = QTableWidgetItem()
self.tableFavorite.setHorizontalHeaderItem(4, __qtablewidgetitem4)
self.tableFavorite.setObjectName(u"tableFavorite")
self.tableFavorite.setGeometry(QRect(10, 40, 761, 571))
self.textBrowser = QTextBrowser(self.tab_favourite)
self.textBrowser.setObjectName(u"textBrowser")
self.textBrowser.setGeometry(QRect(10, 621, 761, 191))
self.textBrowser.setOpenExternalLinks(True)
self.tabWidget.addTab(self.tab_favourite, "")
self.tab = QWidget()
self.tab.setObjectName(u"tab")
self.verticalLayout_6 = QVBoxLayout(self.tab)
self.verticalLayout_6.setObjectName(u"verticalLayout_6")
self.groupBox_2 = QGroupBox(self.tab)
self.groupBox_2.setObjectName(u"groupBox_2")
self.groupBox_2.setMaximumSize(QSize(16777215, 220))
self.tableSearchURL = QTableWidget(self.groupBox_2)
if (self.tableSearchURL.columnCount() < 4):
self.tableSearchURL.setColumnCount(4)
__qtablewidgetitem5 = QTableWidgetItem()
self.tableSearchURL.setHorizontalHeaderItem(0, __qtablewidgetitem5)
__qtablewidgetitem6 = QTableWidgetItem()
self.tableSearchURL.setHorizontalHeaderItem(1, __qtablewidgetitem6)
__qtablewidgetitem7 = QTableWidgetItem()
self.tableSearchURL.setHorizontalHeaderItem(2, __qtablewidgetitem7)
__qtablewidgetitem8 = QTableWidgetItem()
self.tableSearchURL.setHorizontalHeaderItem(3, __qtablewidgetitem8)
self.tableSearchURL.setObjectName(u"tableSearchURL")
self.tableSearchURL.setGeometry(QRect(10, 50, 731, 161))
self.tableSearchURL.setSelectionMode(QAbstractItemView.SingleSelection)
self.tableSearchURL.setSelectionBehavior(QAbstractItemView.SelectRows)
self.btnSearchDownloadURL = QPushButton(self.groupBox_2)
self.btnSearchDownloadURL.setObjectName(u"btnSearchDownloadURL")
self.btnSearchDownloadURL.setGeometry(QRect(10, 25, 75, 24))
self.btnSearchDownloadURL.setContextMenuPolicy(Qt.PreventContextMenu)
self.edtName = QLineEdit(self.groupBox_2)
self.edtName.setObjectName(u"edtName")
self.edtName.setGeometry(QRect(91, 26, 133, 21))
self.pushButtonAddToFavorite = QPushButton(self.groupBox_2)
self.pushButtonAddToFavorite.setObjectName(u"pushButtonAddToFavorite")
self.pushButtonAddToFavorite.setGeometry(QRect(232, 24, 91, 24))
self.verticalLayout_6.addWidget(self.groupBox_2)
self.groupBox_3 = QGroupBox(self.tab)
self.groupBox_3.setObjectName(u"groupBox_3")
self.btnDeleteDownloadURL = QPushButton(self.groupBox_3)
self.btnDeleteDownloadURL.setObjectName(u"btnDeleteDownloadURL")
self.btnDeleteDownloadURL.setGeometry(QRect(100, 24, 75, 24))
self.btnInsertDowloadURL = QPushButton(self.groupBox_3)
self.btnInsertDowloadURL.setObjectName(u"btnInsertDowloadURL")
self.btnInsertDowloadURL.setGeometry(QRect(19, 24, 75, 24))
self.tableDownload = QTableWidget(self.groupBox_3)
if (self.tableDownload.columnCount() < 5):
self.tableDownload.setColumnCount(5)
__qtablewidgetitem9 = QTableWidgetItem()
self.tableDownload.setHorizontalHeaderItem(0, __qtablewidgetitem9)
__qtablewidgetitem10 = QTableWidgetItem()
self.tableDownload.setHorizontalHeaderItem(1, __qtablewidgetitem10)
__qtablewidgetitem11 = QTableWidgetItem()
self.tableDownload.setHorizontalHeaderItem(2, __qtablewidgetitem11)
__qtablewidgetitem12 = QTableWidgetItem()
self.tableDownload.setHorizontalHeaderItem(3, __qtablewidgetitem12)
__qtablewidgetitem13 = QTableWidgetItem()
self.tableDownload.setHorizontalHeaderItem(4, __qtablewidgetitem13)
self.tableDownload.setObjectName(u"tableDownload")
self.tableDownload.setGeometry(QRect(20, 60, 721, 141))
self.tableDownload.setEditTriggers(QAbstractItemView.AnyKeyPressed|QAbstractItemView.DoubleClicked|QAbstractItemView.EditKeyPressed|QAbstractItemView.SelectedClicked)
self.btnSaveDownloadURL = QPushButton(self.groupBox_3)
self.btnSaveDownloadURL.setObjectName(u"btnSaveDownloadURL")
self.btnSaveDownloadURL.setGeometry(QRect(181, 24, 75, 24))
self.textBrowserDownload = QTextBrowser(self.groupBox_3)
self.textBrowserDownload.setObjectName(u"textBrowserDownload")
self.textBrowserDownload.setGeometry(QRect(20, 203, 721, 371))
self.textBrowserDownload.setOpenExternalLinks(True)
self.verticalLayout_6.addWidget(self.groupBox_3)
self.tabWidget.addTab(self.tab, "")
self.tab_3 = QWidget()
self.tab_3.setObjectName(u"tab_3")
self.pushButtonUpdateCalendar = QPushButton(self.tab_3)
self.pushButtonUpdateCalendar.setObjectName(u"pushButtonUpdateCalendar")
self.pushButtonUpdateCalendar.setGeometry(QRect(197, 16, 75, 24))
self.dateEditYearMonth = QDateEdit(self.tab_3)
self.dateEditYearMonth.setObjectName(u"dateEditYearMonth")
self.dateEditYearMonth.setGeometry(QRect(70, 16, 110, 22))
self.label = QLabel(self.tab_3)
self.label.setObjectName(u"label")
self.label.setGeometry(QRect(10, 20, 55, 16))
self.textBrowserUpdateCalendar = QTextBrowser(self.tab_3)
self.textBrowserUpdateCalendar.setObjectName(u"textBrowserUpdateCalendar")
self.textBrowserUpdateCalendar.setGeometry(QRect(10, 60, 751, 751))
self.textBrowserUpdateCalendar.setTextInteractionFlags(Qt.LinksAccessibleByKeyboard|Qt.LinksAccessibleByMouse|Qt.TextBrowserInteraction|Qt.TextSelectableByKeyboard|Qt.TextSelectableByMouse)
self.pushButtonViewCalendar = QPushButton(self.tab_3)
self.pushButtonViewCalendar.setObjectName(u"pushButtonViewCalendar")
self.pushButtonViewCalendar.setGeometry(QRect(280, 16, 75, 24))
self.pushButtonSearchCalendar = QPushButton(self.tab_3)
self.pushButtonSearchCalendar.setObjectName(u"pushButtonSearchCalendar")
self.pushButtonSearchCalendar.setGeometry(QRect(677, 17, 75, 24))
self.edtSearchCalendar = QLineEdit(self.tab_3)
self.edtSearchCalendar.setObjectName(u"edtSearchCalendar")
self.edtSearchCalendar.setGeometry(QRect(550, 20, 113, 21))
self.tabWidget.addTab(self.tab_3, "")
self.verticalLayout.addWidget(self.tabWidget)
MainWindow.setCentralWidget(self.centralwidget)
self.statusbar = QStatusBar(MainWindow)
self.statusbar.setObjectName(u"statusbar")
MainWindow.setStatusBar(self.statusbar)
self.retranslateUi(MainWindow)
self.edtName.returnPressed.connect(self.btnSearchDownloadURL.click)
self.tabWidget.setCurrentIndex(0)
QMetaObject.connectSlotsByName(MainWindow)
# setupUi
def retranslateUi(self, MainWindow):
MainWindow.setWindowTitle(QCoreApplication.translate("MainWindow", u"MainWindow", None))
self.pushButtonPunchin.setText(QCoreApplication.translate("MainWindow", u"\u4e0b\u8f7d\u6253\u5361", None))
___qtablewidgetitem = self.tableFavorite.horizontalHeaderItem(0)
___qtablewidgetitem.setText(QCoreApplication.translate("MainWindow", u"ID", None));
___qtablewidgetitem1 = self.tableFavorite.horizontalHeaderItem(1)
___qtablewidgetitem1.setText(QCoreApplication.translate("MainWindow", u"\u540d\u79f0", None));
___qtablewidgetitem2 = self.tableFavorite.horizontalHeaderItem(2)
___qtablewidgetitem2.setText(QCoreApplication.translate("MainWindow", u"\u5907\u6ce8", None));
___qtablewidgetitem3 = self.tableFavorite.horizontalHeaderItem(3)
___qtablewidgetitem3.setText(QCoreApplication.translate("MainWindow", u"\u4e0b\u4e00\u96c6", None));
___qtablewidgetitem4 = self.tableFavorite.horizontalHeaderItem(4)
___qtablewidgetitem4.setText(QCoreApplication.translate("MainWindow", u"\u4e0b\u8f7d\u6253\u5361", None));
self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_favourite), QCoreApplication.translate("MainWindow", u"\u6211\u7684\u6536\u85cf", None))
self.groupBox_2.setTitle(QCoreApplication.translate("MainWindow", u"\u5728\u8282\u76ee\u5355\u4e2d\u641c\u7d22", None))
___qtablewidgetitem5 = self.tableSearchURL.horizontalHeaderItem(0)
___qtablewidgetitem5.setText(QCoreApplication.translate("MainWindow", u"ID", None));
___qtablewidgetitem6 = self.tableSearchURL.horizontalHeaderItem(1)
___qtablewidgetitem6.setText(QCoreApplication.translate("MainWindow", u"\u82f1\u6587\u540d", None));
___qtablewidgetitem7 = self.tableSearchURL.horizontalHeaderItem(2)
___qtablewidgetitem7.setText(QCoreApplication.translate("MainWindow", u"\u4e2d\u6587\u540d", None));
___qtablewidgetitem8 = self.tableSearchURL.horizontalHeaderItem(3)
___qtablewidgetitem8.setText(QCoreApplication.translate("MainWindow", u"\u6b63\u5728\u64ad", None));
self.btnSearchDownloadURL.setText(QCoreApplication.translate("MainWindow", u"\u641c\u7d22", None))
self.pushButtonAddToFavorite.setText(QCoreApplication.translate("MainWindow", u"\u6dfb\u52a0\u5230\u6536\u85cf", None))
self.groupBox_3.setTitle(QCoreApplication.translate("MainWindow", u"\u914d\u7f6e\u7f8e\u5267\u5bf9\u5e94\u7684Xpath\u7528\u4e8e\u63d0\u53d6\u4e0b\u8f7d\u94fe\u63a5", None))
self.btnDeleteDownloadURL.setText(QCoreApplication.translate("MainWindow", u"\u5220\u9664", None))
self.btnInsertDowloadURL.setText(QCoreApplication.translate("MainWindow", u"\u65b0\u589e", None))
___qtablewidgetitem9 = self.tableDownload.horizontalHeaderItem(0)
___qtablewidgetitem9.setText(QCoreApplication.translate("MainWindow", u"ID", None));
___qtablewidgetitem10 = self.tableDownload.horizontalHeaderItem(1)
___qtablewidgetitem10.setText(QCoreApplication.translate("MainWindow", u"SeasonID", None));
___qtablewidgetitem11 = self.tableDownload.horizontalHeaderItem(2)
___qtablewidgetitem11.setText(QCoreApplication.translate("MainWindow", u"URL", None));
___qtablewidgetitem12 = self.tableDownload.horizontalHeaderItem(3)
___qtablewidgetitem12.setText(QCoreApplication.translate("MainWindow", u"Xpath_title", None));
___qtablewidgetitem13 = self.tableDownload.horizontalHeaderItem(4)
___qtablewidgetitem13.setText(QCoreApplication.translate("MainWindow", u"Xpath_link", None));
self.btnSaveDownloadURL.setText(QCoreApplication.translate("MainWindow", u"\u4fdd\u5b58", None))
self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab), QCoreApplication.translate("MainWindow", u"\u914d\u7f6e", None))
self.pushButtonUpdateCalendar.setText(QCoreApplication.translate("MainWindow", u"\u66f4\u65b0\u8282\u76ee\u5355", None))
self.dateEditYearMonth.setDisplayFormat(QCoreApplication.translate("MainWindow", u"yyyy/M", None))
self.label.setText(QCoreApplication.translate("MainWindow", u"\u9009\u62e9\u6708\u4efd", None))
self.pushButtonViewCalendar.setText(QCoreApplication.translate("MainWindow", u"\u67e5\u770b\u8282\u76ee\u5355", None))
self.pushButtonSearchCalendar.setText(QCoreApplication.translate("MainWindow", u"\u641c\u7d22\u8282\u76ee\u5355", None))
self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_3), QCoreApplication.translate("MainWindow", u"\u8282\u76ee\u5355", None))
# retranslateUi