forked from jtl1207/comic-translation
-
Notifications
You must be signed in to change notification settings - Fork 0
/
characterStyle.py
169 lines (163 loc) · 8.08 KB
/
characterStyle.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
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
# Form implementation generated from reading ui file 'characterStyle.ui'
#
# Created by: PyQt6 UI code generator 6.2.3
#
# WARNING: Any manual changes made to this file will be lost when pyuic6 is
# run again. Do not edit this file unless you know what you are doing.
from PyQt6 import QtCore, QtGui, QtWidgets
class Ui_Dialog(object):
def setupUi(self, Dialog):
Dialog.setObjectName("Dialog")
Dialog.resize(340, 200)
Dialog.setMinimumSize(QtCore.QSize(340, 200))
Dialog.setMaximumSize(QtCore.QSize(340, 200))
icon = QtGui.QIcon()
icon.addPixmap(QtGui.QPixmap("img.png"), QtGui.QIcon.Mode.Normal, QtGui.QIcon.State.Off)
icon.addPixmap(QtGui.QPixmap("img.png"), QtGui.QIcon.Mode.Normal, QtGui.QIcon.State.On)
Dialog.setWindowIcon(icon)
self.label_16 = QtWidgets.QLabel(Dialog)
self.label_16.setGeometry(QtCore.QRect(210, 65, 51, 26))
self.label_16.setMinimumSize(QtCore.QSize(0, 0))
self.label_16.setMaximumSize(QtCore.QSize(666666, 26))
font = QtGui.QFont()
font.setPointSize(14)
font.setBold(False)
self.label_16.setFont(font)
self.label_16.setAutoFillBackground(False)
self.label_16.setStyleSheet("")
self.label_16.setObjectName("label_16")
self.lineEdit_2 = QtWidgets.QLineEdit(Dialog)
self.lineEdit_2.setGeometry(QtCore.QRect(260, 65, 51, 26))
font = QtGui.QFont()
font.setPointSize(12)
self.lineEdit_2.setFont(font)
self.lineEdit_2.setMaxLength(4)
self.lineEdit_2.setAlignment(QtCore.Qt.AlignmentFlag.AlignCenter)
self.lineEdit_2.setObjectName("lineEdit_2")
self.label_13 = QtWidgets.QLabel(Dialog)
self.label_13.setGeometry(QtCore.QRect(210, 30, 51, 26))
self.label_13.setMinimumSize(QtCore.QSize(0, 0))
self.label_13.setMaximumSize(QtCore.QSize(666666, 26))
font = QtGui.QFont()
font.setPointSize(14)
font.setBold(False)
self.label_13.setFont(font)
self.label_13.setContextMenuPolicy(QtCore.Qt.ContextMenuPolicy.DefaultContextMenu)
self.label_13.setAutoFillBackground(False)
self.label_13.setStyleSheet("")
self.label_13.setObjectName("label_13")
self.lineEdit = QtWidgets.QLineEdit(Dialog)
self.lineEdit.setGeometry(QtCore.QRect(260, 30, 51, 26))
font = QtGui.QFont()
font.setPointSize(12)
self.lineEdit.setFont(font)
self.lineEdit.setMaxLength(4)
self.lineEdit.setAlignment(QtCore.Qt.AlignmentFlag.AlignCenter)
self.lineEdit.setObjectName("lineEdit")
self.pushButton = QtWidgets.QPushButton(Dialog)
self.pushButton.setGeometry(QtCore.QRect(80, 150, 60, 26))
font = QtGui.QFont()
font.setFamily("黑体")
font.setPointSize(14)
self.pushButton.setFont(font)
self.pushButton.setAutoDefault(False)
self.pushButton.setObjectName("pushButton")
self.pushButton_2 = QtWidgets.QPushButton(Dialog)
self.pushButton_2.setGeometry(QtCore.QRect(210, 150, 60, 26))
font = QtGui.QFont()
font.setFamily("黑体")
font.setPointSize(14)
self.pushButton_2.setFont(font)
self.pushButton_2.setAutoDefault(False)
self.pushButton_2.setObjectName("pushButton_2")
self.pushButton_1 = QtWidgets.QPushButton(Dialog)
self.pushButton_1.setGeometry(QtCore.QRect(120, 30, 51, 26))
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Fixed, QtWidgets.QSizePolicy.Policy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.pushButton_1.sizePolicy().hasHeightForWidth())
self.pushButton_1.setSizePolicy(sizePolicy)
self.pushButton_1.setMinimumSize(QtCore.QSize(51, 26))
self.pushButton_1.setSizeIncrement(QtCore.QSize(0, 31))
font = QtGui.QFont()
font.setPointSize(11)
self.pushButton_1.setFont(font)
self.pushButton_1.setStyleSheet("background-color: #000000;border-width:0px;border-radius:11px;")
self.pushButton_1.setText("")
self.pushButton_1.setCheckable(False)
self.pushButton_1.setObjectName("pushButton_1")
self.label_14 = QtWidgets.QLabel(Dialog)
self.label_14.setGeometry(QtCore.QRect(30, 30, 70, 26))
self.label_14.setMinimumSize(QtCore.QSize(70, 26))
self.label_14.setMaximumSize(QtCore.QSize(666666, 26))
font = QtGui.QFont()
font.setPointSize(14)
font.setBold(False)
self.label_14.setFont(font)
self.label_14.setContextMenuPolicy(QtCore.Qt.ContextMenuPolicy.DefaultContextMenu)
self.label_14.setAutoFillBackground(False)
self.label_14.setStyleSheet("")
self.label_14.setObjectName("label_14")
self.label_15 = QtWidgets.QLabel(Dialog)
self.label_15.setGeometry(QtCore.QRect(30, 100, 91, 26))
self.label_15.setMinimumSize(QtCore.QSize(70, 26))
self.label_15.setMaximumSize(QtCore.QSize(666666, 26))
font = QtGui.QFont()
font.setPointSize(14)
font.setBold(False)
self.label_15.setFont(font)
self.label_15.setContextMenuPolicy(QtCore.Qt.ContextMenuPolicy.DefaultContextMenu)
self.label_15.setAutoFillBackground(False)
self.label_15.setStyleSheet("")
self.label_15.setObjectName("label_15")
self.label_17 = QtWidgets.QLabel(Dialog)
self.label_17.setGeometry(QtCore.QRect(30, 65, 91, 26))
self.label_17.setMinimumSize(QtCore.QSize(70, 26))
self.label_17.setMaximumSize(QtCore.QSize(666666, 26))
font = QtGui.QFont()
font.setPointSize(14)
font.setBold(False)
self.label_17.setFont(font)
self.label_17.setContextMenuPolicy(QtCore.Qt.ContextMenuPolicy.DefaultContextMenu)
self.label_17.setAutoFillBackground(False)
self.label_17.setStyleSheet("")
self.label_17.setObjectName("label_17")
self.pushButton_3 = QtWidgets.QPushButton(Dialog)
self.pushButton_3.setGeometry(QtCore.QRect(120, 100, 51, 26))
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Fixed, QtWidgets.QSizePolicy.Policy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.pushButton_3.sizePolicy().hasHeightForWidth())
self.pushButton_3.setSizePolicy(sizePolicy)
self.pushButton_3.setMinimumSize(QtCore.QSize(51, 26))
self.pushButton_3.setSizeIncrement(QtCore.QSize(0, 31))
font = QtGui.QFont()
font.setPointSize(11)
self.pushButton_3.setFont(font)
self.pushButton_3.setStyleSheet("background-color: #ffffff;border-width:0px;border-radius:11px;")
self.pushButton_3.setText("")
self.pushButton_3.setCheckable(False)
self.pushButton_3.setObjectName("pushButton_3")
self.lineEdit_3 = QtWidgets.QLineEdit(Dialog)
self.lineEdit_3.setGeometry(QtCore.QRect(120, 65, 51, 26))
font = QtGui.QFont()
font.setPointSize(12)
self.lineEdit_3.setFont(font)
self.lineEdit_3.setMaxLength(1)
self.lineEdit_3.setAlignment(QtCore.Qt.AlignmentFlag.AlignCenter)
self.lineEdit_3.setObjectName("lineEdit_3")
self.retranslateUi(Dialog)
QtCore.QMetaObject.connectSlotsByName(Dialog)
def retranslateUi(self, Dialog):
_translate = QtCore.QCoreApplication.translate
Dialog.setWindowTitle(_translate("Dialog", "字距设置"))
self.label_16.setText(_translate("Dialog", "行距:"))
self.lineEdit_2.setText(_translate("Dialog", "0.3"))
self.label_13.setText(_translate("Dialog", "字距:"))
self.lineEdit.setText(_translate("Dialog", "0"))
self.pushButton.setText(_translate("Dialog", "确定"))
self.pushButton_2.setText(_translate("Dialog", "取消"))
self.label_14.setText(_translate("Dialog", "颜色:"))
self.label_15.setText(_translate("Dialog", "阴影颜色:"))
self.label_17.setText(_translate("Dialog", "阴影宽度:"))
self.lineEdit_3.setText(_translate("Dialog", "0"))