forked from tonioo/rst2pdf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathUi_style.py
290 lines (281 loc) · 17.4 KB
/
Ui_style.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
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'style.ui'
#
# by: PyQt4 UI code generator 4.5.4
#
# WARNING! All changes made in this file will be lost!
from PyQt4 import QtCore, QtGui
class Ui_Form(object):
def setupUi(self, Form):
Form.setObjectName("Form")
Form.resize(376, 611)
self.formLayout = QtGui.QFormLayout(Form)
self.formLayout.setObjectName("formLayout")
self.label = QtGui.QLabel(Form)
self.label.setObjectName("label")
self.formLayout.setWidget(0, QtGui.QFormLayout.LabelRole, self.label)
self.lineEdit = QtGui.QLineEdit(Form)
self.lineEdit.setObjectName("lineEdit")
self.formLayout.setWidget(0, QtGui.QFormLayout.FieldRole, self.lineEdit)
self.label_2 = QtGui.QLabel(Form)
self.label_2.setObjectName("label_2")
self.formLayout.setWidget(1, QtGui.QFormLayout.LabelRole, self.label_2)
self.comboBox = QtGui.QComboBox(Form)
self.comboBox.setObjectName("comboBox")
self.formLayout.setWidget(1, QtGui.QFormLayout.FieldRole, self.comboBox)
self.label_3 = QtGui.QLabel(Form)
self.label_3.setObjectName("label_3")
self.formLayout.setWidget(2, QtGui.QFormLayout.LabelRole, self.label_3)
self.gridLayout = QtGui.QGridLayout()
self.gridLayout.setObjectName("gridLayout")
self.fontComboBox = QtGui.QFontComboBox(Form)
self.fontComboBox.setObjectName("fontComboBox")
self.gridLayout.addWidget(self.fontComboBox, 1, 0, 1, 2)
self.checkBox = QtGui.QCheckBox(Form)
self.checkBox.setObjectName("checkBox")
self.gridLayout.addWidget(self.checkBox, 2, 0, 1, 1)
self.checkBox_2 = QtGui.QCheckBox(Form)
self.checkBox_2.setObjectName("checkBox_2")
self.gridLayout.addWidget(self.checkBox_2, 2, 1, 1, 1)
self.checkBox_3 = QtGui.QCheckBox(Form)
self.checkBox_3.setObjectName("checkBox_3")
self.gridLayout.addWidget(self.checkBox_3, 0, 0, 1, 1)
self.formLayout.setLayout(2, QtGui.QFormLayout.FieldRole, self.gridLayout)
self.label_4 = QtGui.QLabel(Form)
self.label_4.setObjectName("label_4")
self.formLayout.setWidget(3, QtGui.QFormLayout.LabelRole, self.label_4)
self.horizontalLayout_2 = QtGui.QHBoxLayout()
self.horizontalLayout_2.setObjectName("horizontalLayout_2")
self.spinBox = QtGui.QSpinBox(Form)
self.spinBox.setObjectName("spinBox")
self.horizontalLayout_2.addWidget(self.spinBox)
self.comboBox_2 = QtGui.QComboBox(Form)
self.comboBox_2.setObjectName("comboBox_2")
self.horizontalLayout_2.addWidget(self.comboBox_2)
self.checkBox_4 = QtGui.QCheckBox(Form)
self.checkBox_4.setObjectName("checkBox_4")
self.horizontalLayout_2.addWidget(self.checkBox_4)
self.formLayout.setLayout(3, QtGui.QFormLayout.FieldRole, self.horizontalLayout_2)
self.label_5 = QtGui.QLabel(Form)
self.label_5.setObjectName("label_5")
self.formLayout.setWidget(4, QtGui.QFormLayout.LabelRole, self.label_5)
self.gridLayout_2 = QtGui.QGridLayout()
self.gridLayout_2.setObjectName("gridLayout_2")
self.checkBox_11 = QtGui.QCheckBox(Form)
self.checkBox_11.setObjectName("checkBox_11")
self.gridLayout_2.addWidget(self.checkBox_11, 0, 0, 1, 1)
self.comboBox_9 = QtGui.QComboBox(Form)
self.comboBox_9.setObjectName("comboBox_9")
self.gridLayout_2.addWidget(self.comboBox_9, 0, 1, 1, 1)
self.spinBox_2 = QtGui.QSpinBox(Form)
self.spinBox_2.setObjectName("spinBox_2")
self.gridLayout_2.addWidget(self.spinBox_2, 1, 0, 1, 1)
self.comboBox_3 = QtGui.QComboBox(Form)
self.comboBox_3.setObjectName("comboBox_3")
self.gridLayout_2.addWidget(self.comboBox_3, 1, 1, 1, 1)
self.formLayout.setLayout(4, QtGui.QFormLayout.FieldRole, self.gridLayout_2)
self.label_6 = QtGui.QLabel(Form)
self.label_6.setObjectName("label_6")
self.formLayout.setWidget(5, QtGui.QFormLayout.LabelRole, self.label_6)
self.horizontalLayout_3 = QtGui.QHBoxLayout()
self.horizontalLayout_3.setObjectName("horizontalLayout_3")
self.toolButton = QtGui.QToolButton(Form)
self.toolButton.setObjectName("toolButton")
self.horizontalLayout_3.addWidget(self.toolButton)
self.toolButton_2 = QtGui.QToolButton(Form)
self.toolButton_2.setObjectName("toolButton_2")
self.horizontalLayout_3.addWidget(self.toolButton_2)
self.toolButton_3 = QtGui.QToolButton(Form)
self.toolButton_3.setObjectName("toolButton_3")
self.horizontalLayout_3.addWidget(self.toolButton_3)
self.toolButton_4 = QtGui.QToolButton(Form)
self.toolButton_4.setObjectName("toolButton_4")
self.horizontalLayout_3.addWidget(self.toolButton_4)
self.checkBox_10 = QtGui.QCheckBox(Form)
self.checkBox_10.setObjectName("checkBox_10")
self.horizontalLayout_3.addWidget(self.checkBox_10)
self.formLayout.setLayout(5, QtGui.QFormLayout.FieldRole, self.horizontalLayout_3)
self.label_7 = QtGui.QLabel(Form)
self.label_7.setObjectName("label_7")
self.formLayout.setWidget(6, QtGui.QFormLayout.LabelRole, self.label_7)
self.horizontalLayout_4 = QtGui.QHBoxLayout()
self.horizontalLayout_4.setObjectName("horizontalLayout_4")
self.spinBox_3 = QtGui.QSpinBox(Form)
self.spinBox_3.setObjectName("spinBox_3")
self.horizontalLayout_4.addWidget(self.spinBox_3)
self.comboBox_4 = QtGui.QComboBox(Form)
self.comboBox_4.setObjectName("comboBox_4")
self.horizontalLayout_4.addWidget(self.comboBox_4)
self.checkBox_9 = QtGui.QCheckBox(Form)
self.checkBox_9.setObjectName("checkBox_9")
self.horizontalLayout_4.addWidget(self.checkBox_9)
self.formLayout.setLayout(6, QtGui.QFormLayout.FieldRole, self.horizontalLayout_4)
self.label_8 = QtGui.QLabel(Form)
self.label_8.setObjectName("label_8")
self.formLayout.setWidget(7, QtGui.QFormLayout.LabelRole, self.label_8)
self.horizontalLayout_5 = QtGui.QHBoxLayout()
self.horizontalLayout_5.setObjectName("horizontalLayout_5")
self.spinBox_4 = QtGui.QSpinBox(Form)
self.spinBox_4.setObjectName("spinBox_4")
self.horizontalLayout_5.addWidget(self.spinBox_4)
self.comboBox_5 = QtGui.QComboBox(Form)
self.comboBox_5.setObjectName("comboBox_5")
self.horizontalLayout_5.addWidget(self.comboBox_5)
self.checkBox_8 = QtGui.QCheckBox(Form)
self.checkBox_8.setObjectName("checkBox_8")
self.horizontalLayout_5.addWidget(self.checkBox_8)
self.formLayout.setLayout(7, QtGui.QFormLayout.FieldRole, self.horizontalLayout_5)
self.label_9 = QtGui.QLabel(Form)
self.label_9.setObjectName("label_9")
self.formLayout.setWidget(8, QtGui.QFormLayout.LabelRole, self.label_9)
self.horizontalLayout_6 = QtGui.QHBoxLayout()
self.horizontalLayout_6.setObjectName("horizontalLayout_6")
self.spinBox_5 = QtGui.QSpinBox(Form)
self.spinBox_5.setObjectName("spinBox_5")
self.horizontalLayout_6.addWidget(self.spinBox_5)
self.comboBox_6 = QtGui.QComboBox(Form)
self.comboBox_6.setObjectName("comboBox_6")
self.horizontalLayout_6.addWidget(self.comboBox_6)
self.checkBox_7 = QtGui.QCheckBox(Form)
self.checkBox_7.setObjectName("checkBox_7")
self.horizontalLayout_6.addWidget(self.checkBox_7)
self.formLayout.setLayout(8, QtGui.QFormLayout.FieldRole, self.horizontalLayout_6)
self.label_10 = QtGui.QLabel(Form)
self.label_10.setObjectName("label_10")
self.formLayout.setWidget(9, QtGui.QFormLayout.LabelRole, self.label_10)
self.horizontalLayout_7 = QtGui.QHBoxLayout()
self.horizontalLayout_7.setObjectName("horizontalLayout_7")
self.spinBox_6 = QtGui.QSpinBox(Form)
self.spinBox_6.setObjectName("spinBox_6")
self.horizontalLayout_7.addWidget(self.spinBox_6)
self.comboBox_7 = QtGui.QComboBox(Form)
self.comboBox_7.setObjectName("comboBox_7")
self.horizontalLayout_7.addWidget(self.comboBox_7)
self.checkBox_6 = QtGui.QCheckBox(Form)
self.checkBox_6.setObjectName("checkBox_6")
self.horizontalLayout_7.addWidget(self.checkBox_6)
self.formLayout.setLayout(9, QtGui.QFormLayout.FieldRole, self.horizontalLayout_7)
self.label_11 = QtGui.QLabel(Form)
self.label_11.setObjectName("label_11")
self.formLayout.setWidget(10, QtGui.QFormLayout.LabelRole, self.label_11)
self.horizontalLayout_8 = QtGui.QHBoxLayout()
self.horizontalLayout_8.setObjectName("horizontalLayout_8")
self.spinBox_7 = QtGui.QSpinBox(Form)
self.spinBox_7.setObjectName("spinBox_7")
self.horizontalLayout_8.addWidget(self.spinBox_7)
self.comboBox_8 = QtGui.QComboBox(Form)
self.comboBox_8.setObjectName("comboBox_8")
self.horizontalLayout_8.addWidget(self.comboBox_8)
self.checkBox_5 = QtGui.QCheckBox(Form)
self.checkBox_5.setObjectName("checkBox_5")
self.horizontalLayout_8.addWidget(self.checkBox_5)
self.formLayout.setLayout(10, QtGui.QFormLayout.FieldRole, self.horizontalLayout_8)
self.label_12 = QtGui.QLabel(Form)
self.label_12.setObjectName("label_12")
self.formLayout.setWidget(11, QtGui.QFormLayout.LabelRole, self.label_12)
self.horizontalLayout_9 = QtGui.QHBoxLayout()
self.horizontalLayout_9.setObjectName("horizontalLayout_9")
self.label_14 = QtGui.QLabel(Form)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.label_14.sizePolicy().hasHeightForWidth())
self.label_14.setSizePolicy(sizePolicy)
self.label_14.setObjectName("label_14")
self.horizontalLayout_9.addWidget(self.label_14)
self.toolButton_5 = QtGui.QToolButton(Form)
icon = QtGui.QIcon()
icon.addPixmap(QtGui.QPixmap(":/icons/color.svg"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.toolButton_5.setIcon(icon)
self.toolButton_5.setObjectName("toolButton_5")
self.horizontalLayout_9.addWidget(self.toolButton_5)
self.formLayout.setLayout(11, QtGui.QFormLayout.FieldRole, self.horizontalLayout_9)
self.label_13 = QtGui.QLabel(Form)
self.label_13.setObjectName("label_13")
self.formLayout.setWidget(12, QtGui.QFormLayout.LabelRole, self.label_13)
self.horizontalLayout = QtGui.QHBoxLayout()
self.horizontalLayout.setObjectName("horizontalLayout")
self.label_15 = QtGui.QLabel(Form)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.label_15.sizePolicy().hasHeightForWidth())
self.label_15.setSizePolicy(sizePolicy)
self.label_15.setObjectName("label_15")
self.horizontalLayout.addWidget(self.label_15)
self.toolButton_6 = QtGui.QToolButton(Form)
self.toolButton_6.setIcon(icon)
self.toolButton_6.setObjectName("toolButton_6")
self.horizontalLayout.addWidget(self.toolButton_6)
self.formLayout.setLayout(12, QtGui.QFormLayout.FieldRole, self.horizontalLayout)
self.gridLayout_3 = QtGui.QGridLayout()
self.gridLayout_3.setObjectName("gridLayout_3")
self.checkBox_12 = QtGui.QCheckBox(Form)
self.checkBox_12.setObjectName("checkBox_12")
self.gridLayout_3.addWidget(self.checkBox_12, 0, 0, 1, 1)
self.checkBox_13 = QtGui.QCheckBox(Form)
self.checkBox_13.setObjectName("checkBox_13")
self.gridLayout_3.addWidget(self.checkBox_13, 0, 1, 1, 1)
self.checkBox_14 = QtGui.QCheckBox(Form)
self.checkBox_14.setObjectName("checkBox_14")
self.gridLayout_3.addWidget(self.checkBox_14, 1, 0, 1, 1)
self.checkBox_15 = QtGui.QCheckBox(Form)
self.checkBox_15.setObjectName("checkBox_15")
self.gridLayout_3.addWidget(self.checkBox_15, 1, 1, 1, 1)
self.formLayout.setLayout(13, QtGui.QFormLayout.FieldRole, self.gridLayout_3)
self.label_16 = QtGui.QLabel(Form)
self.label_16.setObjectName("label_16")
self.formLayout.setWidget(14, QtGui.QFormLayout.LabelRole, self.label_16)
self.lineEdit_2 = QtGui.QLineEdit(Form)
self.lineEdit_2.setObjectName("lineEdit_2")
self.formLayout.setWidget(14, QtGui.QFormLayout.FieldRole, self.lineEdit_2)
self.retranslateUi(Form)
QtCore.QMetaObject.connectSlotsByName(Form)
def retranslateUi(self, Form):
Form.setWindowTitle(QtGui.QApplication.translate("Form", "Form", None, QtGui.QApplication.UnicodeUTF8))
self.label.setText(QtGui.QApplication.translate("Form", "Name:", None, QtGui.QApplication.UnicodeUTF8))
self.label_2.setText(QtGui.QApplication.translate("Form", "Parent:", None, QtGui.QApplication.UnicodeUTF8))
self.label_3.setText(QtGui.QApplication.translate("Form", "Font:", None, QtGui.QApplication.UnicodeUTF8))
self.checkBox.setText(QtGui.QApplication.translate("Form", "Bold", None, QtGui.QApplication.UnicodeUTF8))
self.checkBox_2.setText(QtGui.QApplication.translate("Form", "Italic", None, QtGui.QApplication.UnicodeUTF8))
self.checkBox_3.setText(QtGui.QApplication.translate("Form", "Inherited", None, QtGui.QApplication.UnicodeUTF8))
self.label_4.setText(QtGui.QApplication.translate("Form", "Font Size:", None, QtGui.QApplication.UnicodeUTF8))
self.checkBox_4.setText(QtGui.QApplication.translate("Form", "Inherited", None, QtGui.QApplication.UnicodeUTF8))
self.label_5.setText(QtGui.QApplication.translate("Form", "Leading:", None, QtGui.QApplication.UnicodeUTF8))
self.checkBox_11.setText(QtGui.QApplication.translate("Form", "Inherited", None, QtGui.QApplication.UnicodeUTF8))
self.label_6.setText(QtGui.QApplication.translate("Form", "Alignment:", None, QtGui.QApplication.UnicodeUTF8))
self.toolButton.setText(QtGui.QApplication.translate("Form", "...", None, QtGui.QApplication.UnicodeUTF8))
self.toolButton_2.setText(QtGui.QApplication.translate("Form", "...", None, QtGui.QApplication.UnicodeUTF8))
self.toolButton_3.setText(QtGui.QApplication.translate("Form", "...", None, QtGui.QApplication.UnicodeUTF8))
self.toolButton_4.setText(QtGui.QApplication.translate("Form", "...", None, QtGui.QApplication.UnicodeUTF8))
self.checkBox_10.setText(QtGui.QApplication.translate("Form", "Inherited", None, QtGui.QApplication.UnicodeUTF8))
self.label_7.setText(QtGui.QApplication.translate("Form", "Left Indent:", None, QtGui.QApplication.UnicodeUTF8))
self.checkBox_9.setText(QtGui.QApplication.translate("Form", "Inherited", None, QtGui.QApplication.UnicodeUTF8))
self.label_8.setText(QtGui.QApplication.translate("Form", "Right Indent:", None, QtGui.QApplication.UnicodeUTF8))
self.checkBox_8.setText(QtGui.QApplication.translate("Form", "Inherited", None, QtGui.QApplication.UnicodeUTF8))
self.label_9.setText(QtGui.QApplication.translate("Form", "First Line Indent:", None, QtGui.QApplication.UnicodeUTF8))
self.checkBox_7.setText(QtGui.QApplication.translate("Form", "Inherited", None, QtGui.QApplication.UnicodeUTF8))
self.label_10.setText(QtGui.QApplication.translate("Form", "Space Before:", None, QtGui.QApplication.UnicodeUTF8))
self.checkBox_6.setText(QtGui.QApplication.translate("Form", "Inherited", None, QtGui.QApplication.UnicodeUTF8))
self.label_11.setText(QtGui.QApplication.translate("Form", "Space After:", None, QtGui.QApplication.UnicodeUTF8))
self.checkBox_5.setText(QtGui.QApplication.translate("Form", "Inherited", None, QtGui.QApplication.UnicodeUTF8))
self.label_12.setText(QtGui.QApplication.translate("Form", "Text Color:", None, QtGui.QApplication.UnicodeUTF8))
self.label_14.setText(QtGui.QApplication.translate("Form", "#000000", None, QtGui.QApplication.UnicodeUTF8))
self.toolButton_5.setText(QtGui.QApplication.translate("Form", "...", None, QtGui.QApplication.UnicodeUTF8))
self.label_13.setText(QtGui.QApplication.translate("Form", "Background Color:", None, QtGui.QApplication.UnicodeUTF8))
self.label_15.setText(QtGui.QApplication.translate("Form", "#ffffff", None, QtGui.QApplication.UnicodeUTF8))
self.toolButton_6.setText(QtGui.QApplication.translate("Form", "...", None, QtGui.QApplication.UnicodeUTF8))
self.checkBox_12.setText(QtGui.QApplication.translate("Form", "Allow Widows", None, QtGui.QApplication.UnicodeUTF8))
self.checkBox_13.setText(QtGui.QApplication.translate("Form", "Allow Orphans", None, QtGui.QApplication.UnicodeUTF8))
self.checkBox_14.setText(QtGui.QApplication.translate("Form", "Hyphenation", None, QtGui.QApplication.UnicodeUTF8))
self.checkBox_15.setText(QtGui.QApplication.translate("Form", "Kerning", None, QtGui.QApplication.UnicodeUTF8))
self.label_16.setText(QtGui.QApplication.translate("Form", "Languaje:", None, QtGui.QApplication.UnicodeUTF8))
import icons_rc
if __name__ == "__main__":
import sys
app = QtGui.QApplication(sys.argv)
Form = QtGui.QWidget()
ui = Ui_Form()
ui.setupUi(Form)
Form.show()
sys.exit(app.exec_())