# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'GUI.ui'
#
# Created by: PyQt5 UI packCode 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_mainForm(object):
def setupUi(self, mainForm):
mainForm.setObjectName("mainForm")
mainForm.resize(655, 370)
mainForm.setFixedSize(655, 370)
self.qss = "QPushButton{border:none;padding: 6px;}" \
"QPushButton:hover{background-color:#999d9c}" \
"QPushButton:pressed{background-color:#d3d7d4}"
self.spinBoxList = []
# 左边LayoutWidget
self.leftLayoutWidget = QtWidgets.QWidget(mainForm)
self.leftLayoutWidget.setGeometry(QtCore.QRect(0, 0, 141, 371))
self.leftLayoutWidget.setObjectName("leftLayoutWidget")
self.leftLayoutWidget.setStyleSheet('background-color:#d3d7d4;')
# 左边Layout,放功能按键
self.leftLayout = QtWidgets.QVBoxLayout(self.leftLayoutWidget)
self.leftLayout.setContentsMargins(0, 5, 0, 5)
self.leftLayout.setSpacing(0)
self.leftLayout.setObjectName("leftLayout")
# 功能label
self.funLable = QtWidgets.QLabel(self.leftLayoutWidget)
self.funLable.setMinimumSize(QtCore.QSize(0, 50))
font = QtGui.QFont()
font.setFamily("黑体")
font.setPointSize(13)
self.funLable.setFont(font)
self.funLable.setLayoutDirection(QtCore.Qt.LeftToRight)
self.funLable.setAlignment(QtCore.Qt.AlignCenter)
self.funLable.setObjectName("funLable")
self.leftLayout.addWidget(self.funLable)
# 分割线
self.splitLine = QtWidgets.QFrame(self.leftLayoutWidget)
self.splitLine.setLineWidth(3)
self.splitLine.setFrameShape(QtWidgets.QFrame.HLine)
self.splitLine.setFrameShadow(QtWidgets.QFrame.Sunken)
self.splitLine.setObjectName("splitLine")
self.leftLayout.addWidget(self.splitLine)
# pdf转word按键
self.pdfToWordButton = QtWidgets.QPushButton(self.leftLayoutWidget)
font = QtGui.QFont()
font.setFamily("Arial")
font.setPointSize(10)
self.pdfToWordButton.setFont(font)
self.pdfToWordButton.setObjectName("pdfToWordButton")
self.pdfToWordButton.setStyleSheet(self.qss)
self.leftLayout.addWidget(self.pdfToWordButton)
# pdf转excel按键
self.pdfToExcelButton = QtWidgets.QPushButton(self.leftLayoutWidget)
font = QtGui.QFont()
font.setFamily("Arial")
font.setPointSize(10)
self.pdfToExcelButton.setFont(font)
self.pdfToExcelButton.setObjectName("pdfToExcelButton")
self.pdfToExcelButton.setStyleSheet(self.qss)
self.leftLayout.addWidget(self.pdfToExcelButton)
# word转pdf按键
self.wordToPdfButton = QtWidgets.QPushButton(self.leftLayoutWidget)
font = QtGui.QFont()
font.setFamily("Arial")
font.setPointSize(10)
self.wordToPdfButton.setFont(font)
self.wordToPdfButton.setObjectName("wordToPdfButton")
self.wordToPdfButton.setStyleSheet(self.qss)
self.leftLayout.addWidget(self.wordToPdfButton)
# excel转pdf按键
self.excelToPdfButton = QtWidgets.QPushButton(self.leftLayoutWidget)
font = QtGui.QFont()
font.setFamily("Arial")
font.setPointSize(10)
self.excelToPdfButton.setFont(font)
self.excelToPdfButton.setObjectName("excelToPdfButton")
self.excelToPdfButton.setStyleSheet(self.qss)
self.leftLayout.addWidget(self.excelToPdfButton)
# 拆分pdf按键
self.splitPdfButton = QtWidgets.QPushButton(self.leftLayoutWidget)
font = QtGui.QFont()
font.setFamily("Arial")
font.setPointSize(10)
self.splitPdfButton.setFont(font)
self.splitPdfButton.setObjectName("splitPdfButton")
self.splitPdfButton.setStyleSheet(self.qss)
self.leftLayout.addWidget(self.splitPdfButton)
# 左边layout的弹簧
leftSpacer = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
self.leftLayout.addItem(leftSpacer)
# 中间LayoutWidget
self.centreLayoutWidget = QtWidgets.QWidget(mainForm)
self.centreLayoutWidget.setGeometry(QtCore.QRect(140, 0, 401, 371))
self.centreLayoutWidget.setObjectName("centreLayoutWidget")
# 中间layout,放转换主要控件
self.centreLayout = QtWidgets.QVBoxLayout(self.centreLayoutWidget)
self.centreLayout.setContentsMargins(5, 5, 5, 5)
self.centreLayout.setObjectName("centreLayout")
# 欢迎使用label
self.welcomeLable = QtWidgets.QLabel(self.leftLayoutWidget)
self.welcomeLable.setMinimumSize(QtCore.QSize(0, 50))
font = QtGui.QFont()
font.setFamily("黑体")
font.setPointSize(15)
self.welcomeLable.setFont(font)
self.welcomeLable.setLayoutDirection(QtCore.Qt.LeftToRight)
self.welcomeLable.setAlignment(QtCore.Qt.AlignCenter)
self.welcomeLable.setObjectName("funLable")
self.centreLayout.addWidget(self.welcomeLable)
# 右边LayoutWidget
self.rightLayoutWidget = QtWidgets.QWidget(mainForm)
self.rightLayoutWidget.setGeometry(QtCore.QRect(540, 0, 111, 371))
self.rightLayoutWidget.setObjectName("rightLayoutWidget")
# 右边layout,放设置页数控件
self.rightLayout = QtWidgets.QVBoxLayout(self.rightLayoutWidget)
self.rightLayout.setContentsMargins(2, 5, 2, 5)
self.rightLayout.setSpacing(2)
self.rightLayout.setObjectName("rightLayout")
self.retranslateUi(mainForm)
QtCore.QMetaObject.connectSlotsByName(mainForm)
def createCentreWidget(self):
# 功能label,按功能区按键此label动态变换
self.itemName = QtWidgets.QLabel(self.centreLayoutWidget)
self.itemName.setMinimumSize(QtCore.QSize(0, 20))
font = QtGui.QFont()
font.setFamily("Arial")
font.setPointSize(10)
self.itemName.setFont(font)
self.itemName.setAlignment(QtCore.Qt.AlignCenter)
self.itemName.setObjectName("itemName")
self.centreLayout.addWidget(self.itemName)
# 中间按键layout,放“打开文件”,“开始转换”按键
self.centreButtonLayout = QtWidgets.QHBoxLayout()
self.centreButtonLayout.setContentsMargins(5, 2, 5, 2)
self.centreButtonLayout.setSpacing(5)
self.centreButtonLayout.setObjectName("centreButtonLayout")
# 打开文件按键
self.openFileButton = QtWidgets.QPushButton(self.centreLayoutWidget)
font = QtGui.QFont()
font.setFamily("Arial")
font.setPointSize(10)
self.openFileButton.setFont(font)
self.openFileButton.setObjectName("openFileButton")
self.centreButtonLayout.addWidget(self.openFileButton)
#开始转换按键
self.startConvertButton = QtWidgets.QPushButton(self.centreLayoutWidget)
font = QtGui.QFont()
font.setFamily("Arial")
font.setPointSize(10)
self.startConvertButton.setFont(font)
self.startConvertButton.setObjectName("startConvertButton")
self.centreButtonLayout.addWidget(self.startConvertButton)
self.centreLayout.addLayout(self.centreButtonLayout)
# 文件路径的list
self.filePathList = QtWidgets.QListWidget(self.centreLayoutWidget)
self.filePathList.setObjectName("filePathList")
self.centreLayout.addWidget(self.filePathList)
self.retranslateUi_cen
- 1
- 2
- 3
前往页