-
Notifications
You must be signed in to change notification settings - Fork 0
/
gui.py
127 lines (120 loc) · 6.68 KB
/
gui.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
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'untitled.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_Form(object):
def setupUi(self, Form):
Form.setObjectName("Form")
Form.resize(800, 450)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(Form.sizePolicy().hasHeightForWidth())
Form.setSizePolicy(sizePolicy)
icon = QtGui.QIcon()
icon.addPixmap(QtGui.QPixmap("icon.ico"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
Form.setWindowIcon(icon)
self.horizontalLayout_4 = QtWidgets.QHBoxLayout(Form)
self.horizontalLayout_4.setObjectName("horizontalLayout_4")
self.verticalLayout_2 = QtWidgets.QVBoxLayout()
self.verticalLayout_2.setObjectName("verticalLayout_2")
self.horizontalLayout = QtWidgets.QHBoxLayout()
self.horizontalLayout.setObjectName("horizontalLayout")
self.label = QtWidgets.QLabel(Form)
self.label.setMaximumSize(QtCore.QSize(16777215, 50))
self.label.setObjectName("label")
self.horizontalLayout.addWidget(self.label)
self.inputtextEdit = QtWidgets.QTextEdit(Form)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.inputtextEdit.sizePolicy().hasHeightForWidth())
self.inputtextEdit.setSizePolicy(sizePolicy)
self.inputtextEdit.setMinimumSize(QtCore.QSize(400, 30))
self.inputtextEdit.setMaximumSize(QtCore.QSize(16777215, 30))
self.inputtextEdit.setObjectName("inputtextEdit")
self.horizontalLayout.addWidget(self.inputtextEdit)
self.picButton = QtWidgets.QPushButton(Form)
self.picButton.setMaximumSize(QtCore.QSize(16777215, 50))
self.picButton.setObjectName("picButton")
self.horizontalLayout.addWidget(self.picButton)
self.verticalLayout_2.addLayout(self.horizontalLayout)
self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
self.horizontalLayout_2.setObjectName("horizontalLayout_2")
self.label_3 = QtWidgets.QLabel(Form)
self.label_3.setMaximumSize(QtCore.QSize(16777215, 50))
self.label_3.setObjectName("label_3")
self.horizontalLayout_2.addWidget(self.label_3)
self.outputtextEdit = QtWidgets.QTextEdit(Form)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.outputtextEdit.sizePolicy().hasHeightForWidth())
self.outputtextEdit.setSizePolicy(sizePolicy)
self.outputtextEdit.setMinimumSize(QtCore.QSize(400, 30))
self.outputtextEdit.setMaximumSize(QtCore.QSize(16777215, 30))
self.outputtextEdit.setObjectName("outputtextEdit")
self.horizontalLayout_2.addWidget(self.outputtextEdit)
self.outButton = QtWidgets.QPushButton(Form)
self.outButton.setMaximumSize(QtCore.QSize(16777215, 50))
self.outButton.setObjectName("outButton")
self.horizontalLayout_2.addWidget(self.outButton)
self.verticalLayout_2.addLayout(self.horizontalLayout_2)
self.horizontalLayout_3 = QtWidgets.QHBoxLayout()
self.horizontalLayout_3.setObjectName("horizontalLayout_3")
self.label_4 = QtWidgets.QLabel(Form)
self.label_4.setMaximumSize(QtCore.QSize(16777215, 50))
self.label_4.setObjectName("label_4")
self.horizontalLayout_3.addWidget(self.label_4)
self.spinBox = QtWidgets.QSpinBox(Form)
self.spinBox.setObjectName("spinBox")
self.horizontalLayout_3.addWidget(self.spinBox)
self.startButton = QtWidgets.QPushButton(Form)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.startButton.sizePolicy().hasHeightForWidth())
self.startButton.setSizePolicy(sizePolicy)
self.startButton.setMinimumSize(QtCore.QSize(0, 30))
self.startButton.setMaximumSize(QtCore.QSize(16777215, 30))
self.startButton.setObjectName("startButton")
self.horizontalLayout_3.addWidget(self.startButton)
self.verticalLayout_2.addLayout(self.horizontalLayout_3)
self.horizontalLayout_5 = QtWidgets.QHBoxLayout()
self.horizontalLayout_5.setObjectName("horizontalLayout_5")
self.progressBar = QtWidgets.QProgressBar(Form)
self.progressBar.setProperty("value", 0)
self.progressBar.setObjectName("progressBar")
self.horizontalLayout_5.addWidget(self.progressBar)
self.verticalLayout_2.addLayout(self.horizontalLayout_5)
self.horizontalLayout_6 = QtWidgets.QHBoxLayout()
self.horizontalLayout_6.setObjectName("horizontalLayout_6")
self.textBrowser = QtWidgets.QTextBrowser(Form)
self.textBrowser.setObjectName("textBrowser")
self.horizontalLayout_6.addWidget(self.textBrowser)
self.verticalLayout_2.addLayout(self.horizontalLayout_6)
self.horizontalLayout_4.addLayout(self.verticalLayout_2)
self.verticalLayout = QtWidgets.QVBoxLayout()
self.verticalLayout.setObjectName("verticalLayout")
self.graphicsView = QtWidgets.QGraphicsView(Form)
self.graphicsView.setObjectName("graphicsView")
self.verticalLayout.addWidget(self.graphicsView)
self.listWidget = QtWidgets.QListWidget(Form)
self.listWidget.setObjectName("listWidget")
self.verticalLayout.addWidget(self.listWidget)
self.horizontalLayout_4.addLayout(self.verticalLayout)
self.retranslateUi(Form)
QtCore.QMetaObject.connectSlotsByName(Form)
def retranslateUi(self, Form):
_translate = QtCore.QCoreApplication.translate
Form.setWindowTitle(_translate("Form", "自拍筛选工具"))
self.label.setText(_translate("Form", "图片文件夹"))
self.picButton.setText(_translate("Form", "浏览"))
self.label_3.setText(_translate("Form", "输出文件夹"))
self.outButton.setText(_translate("Form", "浏览"))
self.label_4.setText(_translate("Form", "筛选数量"))
self.startButton.setText(_translate("Form", "开始"))