-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpattern.py
77 lines (70 loc) · 3.95 KB
/
pattern.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
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'pattern.ui'
#
# Created by: PyQt5 UI code generator 5.15.0
#
# 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_Dialog(object):
def setupUi(self, Dialog):
Dialog.setObjectName("Dialog")
Dialog.resize(369, 152)
self.verticalLayout_2 = QtWidgets.QVBoxLayout(Dialog)
self.verticalLayout_2.setObjectName("verticalLayout_2")
self.groupBox_2 = QtWidgets.QGroupBox(Dialog)
self.groupBox_2.setObjectName("groupBox_2")
self.verticalLayout = QtWidgets.QVBoxLayout(self.groupBox_2)
self.verticalLayout.setObjectName("verticalLayout")
spacerItem = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
self.verticalLayout.addItem(spacerItem)
self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
self.horizontalLayout_2.setObjectName("horizontalLayout_2")
self.label = QtWidgets.QLabel(self.groupBox_2)
self.label.setObjectName("label")
self.horizontalLayout_2.addWidget(self.label)
self.patternEdit = QtWidgets.QLineEdit(self.groupBox_2)
self.patternEdit.setText("")
self.patternEdit.setObjectName("patternEdit")
self.horizontalLayout_2.addWidget(self.patternEdit)
self.verticalLayout.addLayout(self.horizontalLayout_2)
spacerItem1 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
self.verticalLayout.addItem(spacerItem1)
self.horizontalLayout_3 = QtWidgets.QHBoxLayout()
self.horizontalLayout_3.setObjectName("horizontalLayout_3")
spacerItem2 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.horizontalLayout_3.addItem(spacerItem2)
self.patternCombo = QtWidgets.QComboBox(self.groupBox_2)
self.patternCombo.setEditable(False)
self.patternCombo.setObjectName("patternCombo")
self.horizontalLayout_3.addWidget(self.patternCombo)
self.insertBtn = QtWidgets.QPushButton(self.groupBox_2)
self.insertBtn.setObjectName("insertBtn")
self.horizontalLayout_3.addWidget(self.insertBtn)
self.verticalLayout.addLayout(self.horizontalLayout_3)
spacerItem3 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
self.verticalLayout.addItem(spacerItem3)
self.verticalLayout_2.addWidget(self.groupBox_2)
self.horizontalLayout = QtWidgets.QHBoxLayout()
self.horizontalLayout.setObjectName("horizontalLayout")
spacerItem4 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.horizontalLayout.addItem(spacerItem4)
self.exitBtn = QtWidgets.QPushButton(Dialog)
self.exitBtn.setFocusPolicy(QtCore.Qt.StrongFocus)
self.exitBtn.setObjectName("exitBtn")
self.horizontalLayout.addWidget(self.exitBtn)
self.okBtn = QtWidgets.QPushButton(Dialog)
self.okBtn.setObjectName("okBtn")
self.horizontalLayout.addWidget(self.okBtn)
self.verticalLayout_2.addLayout(self.horizontalLayout)
self.retranslateUi(Dialog)
QtCore.QMetaObject.connectSlotsByName(Dialog)
def retranslateUi(self, Dialog):
_translate = QtCore.QCoreApplication.translate
Dialog.setWindowTitle(_translate("Dialog", "命名格式"))
self.groupBox_2.setTitle(_translate("Dialog", "自定义格式"))
self.label.setText(_translate("Dialog", "模式串"))
self.patternEdit.setPlaceholderText(_translate("Dialog", "formate/eval"))
self.insertBtn.setText(_translate("Dialog", "插入"))
self.exitBtn.setText(_translate("Dialog", "取消"))
self.okBtn.setText(_translate("Dialog", "确定"))