1 Star 0 Fork 2

sam/Pyqt5文件增量备份源码

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
mian.py 6.31 KB
一键复制 编辑 原始数据 按行查看 历史
179916249 提交于 2020-12-28 19:07 . 初次提交
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'mian.ui'
#
# Created by: PyQt5 UI code generator 5.10.1
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
MainWindow.setObjectName("MainWindow")
MainWindow.resize(800, 600)
icon = QtGui.QIcon()
icon.addPixmap(QtGui.QPixmap("img/logo.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
MainWindow.setWindowIcon(icon)
self.centralwidget = QtWidgets.QWidget(MainWindow)
self.centralwidget.setObjectName("centralwidget")
self.verticalLayout = QtWidgets.QVBoxLayout(self.centralwidget)
self.verticalLayout.setObjectName("verticalLayout")
self.widget = QtWidgets.QWidget(self.centralwidget)
self.widget.setMaximumSize(QtCore.QSize(16777215, 100))
self.widget.setObjectName("widget")
self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.widget)
self.verticalLayout_2.setContentsMargins(0, 0, 0, 0)
self.verticalLayout_2.setSpacing(0)
self.verticalLayout_2.setObjectName("verticalLayout_2")
self.frame = QtWidgets.QFrame(self.widget)
self.frame.setFrameShape(QtWidgets.QFrame.StyledPanel)
self.frame.setFrameShadow(QtWidgets.QFrame.Raised)
self.frame.setObjectName("frame")
self.horizontalLayout = QtWidgets.QHBoxLayout(self.frame)
self.horizontalLayout.setObjectName("horizontalLayout")
self.line_org_path = QtWidgets.QLineEdit(self.frame)
self.line_org_path.setReadOnly(True)
self.line_org_path.setObjectName("line_org_path")
self.horizontalLayout.addWidget(self.line_org_path)
self.but_org_path = QtWidgets.QPushButton(self.frame)
self.but_org_path.setObjectName("but_org_path")
self.horizontalLayout.addWidget(self.but_org_path)
self.line_trg_path = QtWidgets.QLineEdit(self.frame)
self.line_trg_path.setReadOnly(True)
self.line_trg_path.setObjectName("line_trg_path")
self.horizontalLayout.addWidget(self.line_trg_path)
self.but_trg_path = QtWidgets.QPushButton(self.frame)
self.but_trg_path.setObjectName("but_trg_path")
self.horizontalLayout.addWidget(self.but_trg_path)
self.verticalLayout_2.addWidget(self.frame)
self.frame_2 = QtWidgets.QFrame(self.widget)
self.frame_2.setFrameShape(QtWidgets.QFrame.StyledPanel)
self.frame_2.setFrameShadow(QtWidgets.QFrame.Raised)
self.frame_2.setObjectName("frame_2")
self.horizontalLayout_2 = QtWidgets.QHBoxLayout(self.frame_2)
self.horizontalLayout_2.setObjectName("horizontalLayout_2")
self.label = QtWidgets.QLabel(self.frame_2)
self.label.setObjectName("label")
self.horizontalLayout_2.addWidget(self.label)
self.spin_sleep = QtWidgets.QSpinBox(self.frame_2)
self.spin_sleep.setMinimum(30)
self.spin_sleep.setMaximum(99999)
self.spin_sleep.setSingleStep(5)
self.spin_sleep.setObjectName("spin_sleep")
self.horizontalLayout_2.addWidget(self.spin_sleep)
self.label_2 = QtWidgets.QLabel(self.frame_2)
self.label_2.setObjectName("label_2")
self.horizontalLayout_2.addWidget(self.label_2)
self.line_file_type = QtWidgets.QLineEdit(self.frame_2)
self.line_file_type.setText("")
self.line_file_type.setObjectName("line_file_type")
self.horizontalLayout_2.addWidget(self.line_file_type)
self.but_run = QtWidgets.QPushButton(self.frame_2)
self.but_run.setObjectName("but_run")
self.horizontalLayout_2.addWidget(self.but_run)
self.verticalLayout_2.addWidget(self.frame_2)
self.verticalLayout.addWidget(self.widget)
self.widget_2 = QtWidgets.QWidget(self.centralwidget)
self.widget_2.setObjectName("widget_2")
self.horizontalLayout_4 = QtWidgets.QHBoxLayout(self.widget_2)
self.horizontalLayout_4.setObjectName("horizontalLayout_4")
self.label_3 = QtWidgets.QLabel(self.widget_2)
self.label_3.setObjectName("label_3")
self.horizontalLayout_4.addWidget(self.label_3)
self.line_dirs = QtWidgets.QLineEdit(self.widget_2)
self.line_dirs.setObjectName("line_dirs")
self.horizontalLayout_4.addWidget(self.line_dirs)
self.verticalLayout.addWidget(self.widget_2)
self.groupBox = QtWidgets.QGroupBox(self.centralwidget)
self.groupBox.setObjectName("groupBox")
self.horizontalLayout_3 = QtWidgets.QHBoxLayout(self.groupBox)
self.horizontalLayout_3.setObjectName("horizontalLayout_3")
self.log_out = QtWidgets.QTextBrowser(self.groupBox)
self.log_out.setObjectName("log_out")
self.horizontalLayout_3.addWidget(self.log_out)
self.verticalLayout.addWidget(self.groupBox)
MainWindow.setCentralWidget(self.centralwidget)
self.menubar = QtWidgets.QMenuBar(MainWindow)
self.menubar.setGeometry(QtCore.QRect(0, 0, 800, 23))
self.menubar.setObjectName("menubar")
MainWindow.setMenuBar(self.menubar)
self.statusbar = QtWidgets.QStatusBar(MainWindow)
self.statusbar.setObjectName("statusbar")
MainWindow.setStatusBar(self.statusbar)
self.retranslateUi(MainWindow)
QtCore.QMetaObject.connectSlotsByName(MainWindow)
def retranslateUi(self, MainWindow):
_translate = QtCore.QCoreApplication.translate
MainWindow.setWindowTitle(_translate("MainWindow", "深林老鸟-文件同步 v1.0 作者邮箱:m.go@qq.com"))
self.but_org_path.setText(_translate("MainWindow", "选择原路径"))
self.but_trg_path.setText(_translate("MainWindow", "选择目标路径"))
self.label.setText(_translate("MainWindow", "间隔(秒):"))
self.label_2.setText(_translate("MainWindow", "同步文件类型:"))
self.line_file_type.setPlaceholderText(_translate("MainWindow", "默认所有类型,自定义类型如:txt|jpg|png"))
self.but_run.setText(_translate("MainWindow", "启动"))
self.label_3.setText(_translate("MainWindow", "排除文件夹:"))
self.line_dirs.setPlaceholderText(_translate("MainWindow", "默认不排除,自定义如:文件夹1|文件夹2|"))
self.groupBox.setTitle(_translate("MainWindow", "同步记录"))
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/stduino/FileSync.git
git@gitee.com:stduino/FileSync.git
stduino
FileSync
Pyqt5文件增量备份源码
master

搜索帮助