1 Star 0 Fork 0

岚烟/ExcelCombin

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
combine.py 8.38 KB
一键复制 编辑 原始数据 按行查看 历史
hq22-q 提交于 2024-01-26 16:56 . 选择文件夹
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'cd.ui'
#
# Created by: PyQt5 UI code generator 5.15.10
#
# 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, QtWidgets
class Ui_Dialog(object):
def setupUi(self, Dialog):
Dialog.setObjectName("Dialog")
Dialog.resize(455, 443)
Dialog.setStyleSheet("")
self.formLayoutWidget = QtWidgets.QWidget(Dialog)
self.formLayoutWidget.setGeometry(QtCore.QRect(10, 50, 171, 338))
self.formLayoutWidget.setObjectName("formLayoutWidget")
self.formLayout = QtWidgets.QFormLayout(self.formLayoutWidget)
self.formLayout.setContentsMargins(0, 0, 0, 0)
self.formLayout.setObjectName("formLayout")
self.label_4 = QtWidgets.QLabel(self.formLayoutWidget)
self.label_4.setObjectName("label_4")
self.formLayout.setWidget(1, QtWidgets.QFormLayout.LabelRole, self.label_4)
self.label_9 = QtWidgets.QLabel(self.formLayoutWidget)
self.label_9.setObjectName("label_9")
self.formLayout.setWidget(3, QtWidgets.QFormLayout.LabelRole, self.label_9)
self.label_1 = QtWidgets.QLabel(self.formLayoutWidget)
self.label_1.setObjectName("label_1")
self.formLayout.setWidget(5, QtWidgets.QFormLayout.LabelRole, self.label_1)
self.x = QtWidgets.QLineEdit(self.formLayoutWidget)
self.x.setObjectName("x")
self.formLayout.setWidget(5, QtWidgets.QFormLayout.FieldRole, self.x)
self.label_2 = QtWidgets.QLabel(self.formLayoutWidget)
self.label_2.setObjectName("label_2")
self.formLayout.setWidget(7, QtWidgets.QFormLayout.LabelRole, self.label_2)
self.y = QtWidgets.QLineEdit(self.formLayoutWidget)
self.y.setObjectName("y")
self.formLayout.setWidget(7, QtWidgets.QFormLayout.FieldRole, self.y)
self.label_5 = QtWidgets.QLabel(self.formLayoutWidget)
self.label_5.setObjectName("label_5")
self.formLayout.setWidget(9, QtWidgets.QFormLayout.LabelRole, self.label_5)
self.length = QtWidgets.QLineEdit(self.formLayoutWidget)
self.length.setObjectName("length")
self.formLayout.setWidget(9, QtWidgets.QFormLayout.FieldRole, self.length)
self.label_3 = QtWidgets.QLabel(self.formLayoutWidget)
self.label_3.setObjectName("label_3")
self.formLayout.setWidget(11, QtWidgets.QFormLayout.LabelRole, self.label_3)
self.width = QtWidgets.QLineEdit(self.formLayoutWidget)
self.width.setObjectName("width")
self.formLayout.setWidget(11, QtWidgets.QFormLayout.FieldRole, self.width)
self.label_6 = QtWidgets.QLabel(self.formLayoutWidget)
self.label_6.setObjectName("label_6")
self.formLayout.setWidget(13, QtWidgets.QFormLayout.LabelRole, self.label_6)
self.sheet_name = QtWidgets.QLineEdit(self.formLayoutWidget)
self.sheet_name.setObjectName("sheet_name")
self.formLayout.setWidget(13, QtWidgets.QFormLayout.FieldRole, self.sheet_name)
self.label_7 = QtWidgets.QLabel(self.formLayoutWidget)
self.label_7.setObjectName("label_7")
self.formLayout.setWidget(15, QtWidgets.QFormLayout.LabelRole, self.label_7)
self.new_sheet_name = QtWidgets.QLineEdit(self.formLayoutWidget)
self.new_sheet_name.setObjectName("new_sheet_name")
self.formLayout.setWidget(15, QtWidgets.QFormLayout.FieldRole, self.new_sheet_name)
self.label_8 = QtWidgets.QLabel(self.formLayoutWidget)
self.label_8.setObjectName("label_8")
self.formLayout.setWidget(17, QtWidgets.QFormLayout.LabelRole, self.label_8)
self.new_file_name = QtWidgets.QLineEdit(self.formLayoutWidget)
self.new_file_name.setObjectName("new_file_name")
self.formLayout.setWidget(17, QtWidgets.QFormLayout.FieldRole, self.new_file_name)
self.view_btn = QtWidgets.QPushButton(self.formLayoutWidget)
self.view_btn.setObjectName("view_btn")
self.formLayout.setWidget(18, QtWidgets.QFormLayout.LabelRole, self.view_btn)
self.end = QtWidgets.QLineEdit(self.formLayoutWidget)
self.end.setObjectName("end")
self.formLayout.setWidget(3, QtWidgets.QFormLayout.FieldRole, self.end)
self.start = QtWidgets.QLineEdit(self.formLayoutWidget)
self.start.setObjectName("start")
self.formLayout.setWidget(1, QtWidgets.QFormLayout.FieldRole, self.start)
self.width.raise_()
self.label_2.raise_()
self.label_3.raise_()
self.label_5.raise_()
self.x.raise_()
self.label_1.raise_()
self.y.raise_()
self.length.raise_()
self.sheet_name.raise_()
self.label_6.raise_()
self.new_sheet_name.raise_()
self.label_7.raise_()
self.new_file_name.raise_()
self.label_8.raise_()
self.label_4.raise_()
self.label_9.raise_()
self.view_btn.raise_()
self.end.raise_()
self.start.raise_()
self.textBrowser = QtWidgets.QTextBrowser(Dialog)
self.textBrowser.setGeometry(QtCore.QRect(190, 50, 251, 331))
self.textBrowser.setObjectName("textBrowser")
self.horizontalLayoutWidget = QtWidgets.QWidget(Dialog)
self.horizontalLayoutWidget.setGeometry(QtCore.QRect(10, 390, 441, 51))
self.horizontalLayoutWidget.setObjectName("horizontalLayoutWidget")
self.horizontalLayout = QtWidgets.QHBoxLayout(self.horizontalLayoutWidget)
self.horizontalLayout.setContentsMargins(0, 0, 0, 0)
self.horizontalLayout.setObjectName("horizontalLayout")
self.queryBtn = QtWidgets.QPushButton(self.horizontalLayoutWidget)
self.queryBtn.setObjectName("queryBtn")
self.horizontalLayout.addWidget(self.queryBtn)
self.checkBox = QtWidgets.QCheckBox(self.horizontalLayoutWidget)
self.checkBox.setEnabled(True)
self.checkBox.setTabletTracking(False)
self.checkBox.setChecked(False)
self.checkBox.setObjectName("checkBox")
self.horizontalLayout.addWidget(self.checkBox)
spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.horizontalLayout.addItem(spacerItem)
self.clear_btn = QtWidgets.QPushButton(self.horizontalLayoutWidget)
self.clear_btn.setObjectName("clear_btn")
self.horizontalLayout.addWidget(self.clear_btn)
self.filePath = QtWidgets.QLabel(Dialog)
self.filePath.setGeometry(QtCore.QRect(100, 16, 341, 20))
self.filePath.setStyleSheet("background :rgb(255, 246, 235)\n"
"")
self.filePath.setObjectName("label")
self.choose_path = QtWidgets.QPushButton(Dialog)
self.choose_path.setGeometry(QtCore.QRect(11, 16, 81, 21))
self.choose_path.setObjectName("choose_path")
self.retranslateUi(Dialog)
self.queryBtn.clicked.connect(Dialog.combin) # type: ignore
self.clear_btn.clicked.connect(Dialog.clear) # type: ignore
self.view_btn.clicked.connect(Dialog.combinView) # type: ignore
self.checkBox.clicked.connect(Dialog.check) # type: ignore
self.choose_path.clicked.connect(Dialog.choose) # type: ignore
QtCore.QMetaObject.connectSlotsByName(Dialog)
def retranslateUi(self, Dialog):
_translate = QtCore.QCoreApplication.translate
Dialog.setWindowTitle(_translate("Dialog", "EXCEL数据合并"))
self.label_4.setText(_translate("Dialog", "文件名截取起始位置"))
self.label_9.setText(_translate("Dialog", "文件名截取结束位置"))
self.label_1.setText(_translate("Dialog", "起始行"))
self.label_2.setText(_translate("Dialog", "起始列"))
self.label_5.setText(_translate("Dialog", "长度"))
self.label_3.setText(_translate("Dialog", "宽度"))
self.label_6.setText(_translate("Dialog", "表格名"))
self.label_7.setText(_translate("Dialog", "合并表格名"))
self.label_8.setText(_translate("Dialog", "合并文件名"))
self.view_btn.setText(_translate("Dialog", "预览"))
self.queryBtn.setText(_translate("Dialog", "合并"))
self.checkBox.setText(_translate("Dialog", "合并完后打开"))
self.clear_btn.setText(_translate("Dialog", "清空"))
self.filePath.setText(_translate("Dialog", ""))
self.choose_path.setText(_translate("Dialog", "选择文件夹"))
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/lanyanshy/excel-combin.git
[email protected]:lanyanshy/excel-combin.git
lanyanshy
excel-combin
ExcelCombin
master

搜索帮助