-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathui_pdf_settings.py
More file actions
173 lines (134 loc) · 7.09 KB
/
ui_pdf_settings.py
File metadata and controls
173 lines (134 loc) · 7.09 KB
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
# -*- coding: utf-8 -*-
################################################################################
## Form generated from reading UI file 'settings_for_pdf_des.ui'
##
## Created by: Qt User Interface Compiler version 6.7.2
##
## WARNING! All changes made in this file will be lost when recompiling UI file!
################################################################################
from PySide6.QtCore import (QCoreApplication, QDate, QDateTime, QLocale,
QMetaObject, QObject, QPoint, QRect,
QSize, QTime, QUrl, Qt)
from PySide6.QtGui import (QBrush, QColor, QConicalGradient, QCursor,
QFont, QFontDatabase, QGradient, QIcon,
QImage, QKeySequence, QLinearGradient, QPainter,
QPalette, QPixmap, QRadialGradient, QTransform)
from PySide6.QtWidgets import (QAbstractButton, QApplication, QCheckBox, QDialogButtonBox,
QGroupBox, QHBoxLayout, QLabel, QLineEdit,
QPushButton, QSizePolicy, QVBoxLayout, QWidget)
import icons_rc
class Ui_SettingsPDF(object):
def setupUi(self, Form):
if not Form.objectName():
Form.setObjectName(u"Form")
Form.setWindowModality(Qt.NonModal)
Form.resize(400, 240)
Form.setMinimumSize(QSize(340, 200))
Form.setMaximumSize(QSize(400, 240))
Form.setStyleSheet(u"#Form {\n"
" background-color: rgb(0, 217, 68);\n"
"}\n"
"\n"
"QLineEdit, QComboBox, QDoubleSpinBox, #label_image_before, #label_image_after {\n"
" border-radius: 2px;\n"
" background-color: rgb(26, 244, 255, 88);\n"
"}\n"
"\n"
"#label_image_before, #label_image_after {\n"
" border-radius: 5px;\n"
"}")
self.verticalLayout_3 = QVBoxLayout(Form)
self.verticalLayout_3.setObjectName(u"verticalLayout_3")
self.horizontalLayout_5 = QHBoxLayout()
self.horizontalLayout_5.setObjectName(u"horizontalLayout_5")
self.label_7 = QLabel(Form)
self.label_7.setObjectName(u"label_7")
font = QFont()
font.setPointSize(10)
self.label_7.setFont(font)
self.horizontalLayout_5.addWidget(self.label_7)
self.lineEdit_folder_path = QLineEdit(Form)
self.lineEdit_folder_path.setObjectName(u"lineEdit_folder_path")
self.horizontalLayout_5.addWidget(self.lineEdit_folder_path)
self.choose_folder_save_but = QPushButton(Form)
self.choose_folder_save_but.setObjectName(u"choose_folder_save_but")
self.horizontalLayout_5.addWidget(self.choose_folder_save_but)
self.verticalLayout_3.addLayout(self.horizontalLayout_5)
self.groupBox = QGroupBox(Form)
self.groupBox.setObjectName(u"groupBox")
self.horizontalLayout = QHBoxLayout(self.groupBox)
self.horizontalLayout.setObjectName(u"horizontalLayout")
self.verticalLayout = QVBoxLayout()
self.verticalLayout.setObjectName(u"verticalLayout")
self.check_to_txt = QCheckBox(self.groupBox)
self.check_to_txt.setObjectName(u"check_to_txt")
self.check_to_txt.setFont(font)
self.check_to_txt.setLayoutDirection(Qt.LeftToRight)
self.check_to_txt.setAutoFillBackground(False)
self.check_to_txt.setInputMethodHints(Qt.ImhNone)
self.check_to_txt.setTristate(False)
self.verticalLayout.addWidget(self.check_to_txt)
self.check_to_WORD = QCheckBox(self.groupBox)
self.check_to_WORD.setObjectName(u"check_to_WORD")
self.check_to_WORD.setFont(font)
self.check_to_WORD.setLayoutDirection(Qt.LeftToRight)
self.check_to_WORD.setAutoFillBackground(False)
self.check_to_WORD.setInputMethodHints(Qt.ImhNone)
self.check_to_WORD.setTristate(False)
self.verticalLayout.addWidget(self.check_to_WORD)
self.horizontalLayout.addLayout(self.verticalLayout)
self.verticalLayout_2 = QVBoxLayout()
self.verticalLayout_2.setObjectName(u"verticalLayout_2")
self.check_to_images = QCheckBox(self.groupBox)
self.check_to_images.setObjectName(u"check_to_images")
self.check_to_images.setFont(font)
self.check_to_images.setLayoutDirection(Qt.LeftToRight)
self.check_to_images.setAutoFillBackground(False)
self.check_to_images.setInputMethodHints(Qt.ImhNone)
self.check_to_images.setTristate(False)
self.verticalLayout_2.addWidget(self.check_to_images)
self.check_to_tables = QCheckBox(self.groupBox)
self.check_to_tables.setObjectName(u"check_to_tables")
self.check_to_tables.setFont(font)
self.check_to_tables.setLayoutDirection(Qt.LeftToRight)
self.check_to_tables.setAutoFillBackground(False)
self.check_to_tables.setInputMethodHints(Qt.ImhNone)
self.check_to_tables.setTristate(False)
self.verticalLayout_2.addWidget(self.check_to_tables)
self.horizontalLayout.addLayout(self.verticalLayout_2)
self.verticalLayout_3.addWidget(self.groupBox)
self.horizontalLayout_2 = QHBoxLayout()
self.horizontalLayout_2.setObjectName(u"horizontalLayout_2")
self.horizontalLayout_8 = QHBoxLayout()
self.horizontalLayout_8.setObjectName(u"horizontalLayout_8")
self.turn_off_settings = QPushButton(Form)
self.turn_off_settings.setObjectName(u"turn_off_settings")
self.horizontalLayout_8.addWidget(self.turn_off_settings)
self.label_9 = QLabel(Form)
self.label_9.setObjectName(u"label_9")
self.label_9.setFont(font)
self.horizontalLayout_8.addWidget(self.label_9)
self.horizontalLayout_8.setStretch(0, 1)
self.horizontalLayout_8.setStretch(1, 8)
self.horizontalLayout_2.addLayout(self.horizontalLayout_8)
self.accepting_response = QDialogButtonBox(Form)
self.accepting_response.setObjectName(u"accepting_response")
self.accepting_response.setStandardButtons(QDialogButtonBox.Cancel|QDialogButtonBox.Ok)
self.horizontalLayout_2.addWidget(self.accepting_response)
self.verticalLayout_3.addLayout(self.horizontalLayout_2)
self.retranslateUi(Form)
QMetaObject.connectSlotsByName(Form)
# setupUi
def retranslateUi(self, Form):
Form.setWindowTitle(QCoreApplication.translate("Form", u"PDF Settings", None))
self.label_7.setText(QCoreApplication.translate("Form", u"The folder to save", None))
self.lineEdit_folder_path.setPlaceholderText(QCoreApplication.translate("Form", u"Path ...", None))
self.choose_folder_save_but.setText(QCoreApplication.translate("Form", u"Choose", None))
self.groupBox.setTitle(QCoreApplication.translate("Form", u"Saving formats", None))
self.check_to_txt.setText(QCoreApplication.translate("Form", u"Save to .txt files", None))
self.check_to_WORD.setText(QCoreApplication.translate("Form", u"Save to .docx file", None))
self.check_to_images.setText(QCoreApplication.translate("Form", u"Save to image files", None))
self.check_to_tables.setText(QCoreApplication.translate("Form", u"Save to table files (.csv)", None))
self.turn_off_settings.setText(QCoreApplication.translate("Form", u"turn off", None))
self.label_9.setText(QCoreApplication.translate("Form", u"Default settings", None))
# retranslateUi