加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
mainUI.py 5.97 KB
一键复制 编辑 原始数据 按行查看 历史
邱海 提交于 2021-12-20 14:27 . 设置守护线程更新
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'mainUI.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 Ui_MainWindow(object):
def setupUi(self, MainWindow):
MainWindow.setObjectName("MainWindow")
MainWindow.resize(1537, 873)
MainWindow.setMinimumSize(QtCore.QSize(900, 800))
self.centralwidget = QtWidgets.QWidget(MainWindow)
self.centralwidget.setObjectName("centralwidget")
self.mainBox = QtWidgets.QComboBox(self.centralwidget)
self.mainBox.setGeometry(QtCore.QRect(170, 10, 600, 44))
self.mainBox.setMinimumSize(QtCore.QSize(400, 40))
font = QtGui.QFont()
font.setFamily("Arial")
font.setPointSize(11)
self.mainBox.setFont(font)
self.mainBox.setObjectName("mainBox")
self.mainBox.addItem("")
self.mainBox.addItem("")
self.mainLab = QtWidgets.QLabel(self.centralwidget)
self.mainLab.setGeometry(QtCore.QRect(10, 10, 144, 41))
self.mainLab.setMinimumSize(QtCore.QSize(100, 40))
font = QtGui.QFont()
font.setFamily("Arial")
font.setPointSize(12)
self.mainLab.setFont(font)
self.mainLab.setObjectName("mainLab")
self.searchText = QtWidgets.QLineEdit(self.centralwidget)
self.searchText.setGeometry(QtCore.QRect(780, 10, 211, 40))
self.searchText.setMinimumSize(QtCore.QSize(200, 40))
self.searchText.setToolTip("")
self.searchText.setInputMask("")
self.searchText.setText("")
self.searchText.setObjectName("searchText")
self.searchButton = QtWidgets.QPushButton(self.centralwidget)
self.searchButton.setGeometry(QtCore.QRect(1000, 10, 168, 51))
self.searchButton.setMinimumSize(QtCore.QSize(50, 40))
self.searchButton.setObjectName("searchButton")
self.startAllBtn = QtWidgets.QPushButton(self.centralwidget)
self.startAllBtn.setGeometry(QtCore.QRect(20, 80, 168, 51))
self.startAllBtn.setMinimumSize(QtCore.QSize(50, 40))
self.startAllBtn.setObjectName("startAllBtn")
self.stopAllBtn = QtWidgets.QPushButton(self.centralwidget)
self.stopAllBtn.setGeometry(QtCore.QRect(210, 80, 168, 51))
self.stopAllBtn.setMinimumSize(QtCore.QSize(50, 40))
self.stopAllBtn.setObjectName("stopAllBtn")
self.settingsBtn = QtWidgets.QPushButton(self.centralwidget)
self.settingsBtn.setGeometry(QtCore.QRect(520, 80, 168, 51))
self.settingsBtn.setMinimumSize(QtCore.QSize(50, 40))
self.settingsBtn.setObjectName("settingsBtn")
self.layoutWidget = QtWidgets.QWidget(self.centralwidget)
self.layoutWidget.setGeometry(QtCore.QRect(20, 170, 1215, 617))
self.layoutWidget.setObjectName("layoutWidget")
self.mainLayout = QtWidgets.QGridLayout(self.layoutWidget)
self.mainLayout.setContentsMargins(0, 0, 0, 0)
self.mainLayout.setObjectName("mainLayout")
self.mainWebLayout = QtWidgets.QHBoxLayout()
self.mainWebLayout.setObjectName("mainWebLayout")
self.mainLayout.addLayout(self.mainWebLayout, 0, 0, 1, 1)
self.menuLayout = QtWidgets.QHBoxLayout()
self.menuLayout.setObjectName("menuLayout")
self.mainLayout.addLayout(self.menuLayout, 0, 1, 1, 1)
self.showWidget = QtWidgets.QWidget(self.layoutWidget)
self.showWidget.setMinimumSize(QtCore.QSize(800, 600))
self.showWidget.setObjectName("showWidget")
self.mainLayout.addWidget(self.showWidget, 1, 0, 1, 1)
self.downloadWidget = QtWidgets.QWidget(self.layoutWidget)
self.downloadWidget.setMinimumSize(QtCore.QSize(400, 600))
self.downloadWidget.setObjectName("downloadWidget")
self.mainLayout.addWidget(self.downloadWidget, 1, 1, 1, 1)
self.searchingGIF = QtWidgets.QLabel(self.centralwidget)
self.searchingGIF.setGeometry(QtCore.QRect(1190, 10, 40, 40))
self.searchingGIF.setMinimumSize(QtCore.QSize(40, 40))
self.searchingGIF.setMaximumSize(QtCore.QSize(40, 40))
self.searchingGIF.setObjectName("searchingGIF")
self.refreshBtn = QtWidgets.QPushButton(self.centralwidget)
self.refreshBtn.setGeometry(QtCore.QRect(1250, 10, 168, 51))
self.refreshBtn.setMinimumSize(QtCore.QSize(50, 40))
self.refreshBtn.setObjectName("refreshBtn")
self.openDownloadPath = QtWidgets.QPushButton(self.centralwidget)
self.openDownloadPath.setGeometry(QtCore.QRect(400, 90, 93, 40))
self.openDownloadPath.setMinimumSize(QtCore.QSize(50, 40))
self.openDownloadPath.setObjectName("openDownloadPath")
MainWindow.setCentralWidget(self.centralwidget)
self.retranslateUi(MainWindow)
QtCore.QMetaObject.connectSlotsByName(MainWindow)
def retranslateUi(self, MainWindow):
_translate = QtCore.QCoreApplication.translate
MainWindow.setWindowTitle(_translate("MainWindow", "免费小说下载器"))
self.mainBox.setItemText(0, _translate("MainWindow", "手机txt小说(http://wap.zzs5.com/)"))
self.mainBox.setItemText(1, _translate("MainWindow", "笔趣看(https://www.bqktxt.com/)"))
self.mainLab.setText(_translate("MainWindow", "小说主站"))
self.searchButton.setText(_translate("MainWindow", "搜索"))
self.startAllBtn.setText(_translate("MainWindow", "全部开始"))
self.stopAllBtn.setText(_translate("MainWindow", "全部暂停"))
self.settingsBtn.setText(_translate("MainWindow", "更多设置"))
self.searchingGIF.setText(_translate("MainWindow", "缓冲gif"))
self.refreshBtn.setText(_translate("MainWindow", "刷新"))
self.openDownloadPath.setText(_translate("MainWindow", "下载目录"))
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化