개정판 f6781558
issue #655:
- move 학습 이미지 생성 button left of OK button
DTI_PID/DTI_PID/OcrResultDialog_UI.py | ||
---|---|---|
1 | 1 |
# -*- coding: utf-8 -*- |
2 | 2 | |
3 |
# Form implementation generated from reading ui file './UI/OcrResultDialog.ui'
|
|
3 |
# Form implementation generated from reading ui file '.\UI\OcrResultDialog.ui'
|
|
4 | 4 |
# |
5 |
# Created by: PyQt5 UI code generator 5.11.2
|
|
5 |
# Created by: PyQt5 UI code generator 5.11.3
|
|
6 | 6 |
# |
7 | 7 |
# WARNING! All changes made in this file will be lost! |
8 | 8 | |
... | ... | |
20 | 20 |
Dialog.setFont(font) |
21 | 21 |
self.gridLayout_2 = QtWidgets.QGridLayout(Dialog) |
22 | 22 |
self.gridLayout_2.setObjectName("gridLayout_2") |
23 |
self.ocrDialogButtonBox = QtWidgets.QDialogButtonBox(Dialog) |
|
24 |
self.ocrDialogButtonBox.setOrientation(QtCore.Qt.Horizontal) |
|
25 |
self.ocrDialogButtonBox.setStandardButtons(QtWidgets.QDialogButtonBox.Cancel|QtWidgets.QDialogButtonBox.Ok) |
|
26 |
self.ocrDialogButtonBox.setObjectName("ocrDialogButtonBox") |
|
27 |
self.gridLayout_2.addWidget(self.ocrDialogButtonBox, 3, 0, 1, 1) |
|
28 | 23 |
self.splitter = QtWidgets.QSplitter(Dialog) |
29 | 24 |
self.splitter.setOrientation(QtCore.Qt.Vertical) |
30 | 25 |
self.splitter.setObjectName("splitter") |
... | ... | |
105 | 100 |
self.detectResultVerticalLayout_2.addWidget(self.detectResultTextEdit_2) |
106 | 101 |
self.verticalLayout_4.addLayout(self.detectResultVerticalLayout_2) |
107 | 102 |
self.gridLayout_2.addWidget(self.splitter, 1, 0, 1, 1) |
103 |
self.horizontalLayout_2 = QtWidgets.QHBoxLayout() |
|
104 |
self.horizontalLayout_2.setObjectName("horizontalLayout_2") |
|
108 | 105 |
self.pushButtonMakeTrainingImage = QtWidgets.QPushButton(Dialog) |
106 |
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed) |
|
107 |
sizePolicy.setHorizontalStretch(0) |
|
108 |
sizePolicy.setVerticalStretch(0) |
|
109 |
sizePolicy.setHeightForWidth(self.pushButtonMakeTrainingImage.sizePolicy().hasHeightForWidth()) |
|
110 |
self.pushButtonMakeTrainingImage.setSizePolicy(sizePolicy) |
|
109 | 111 |
self.pushButtonMakeTrainingImage.setObjectName("pushButtonMakeTrainingImage") |
110 |
self.gridLayout_2.addWidget(self.pushButtonMakeTrainingImage, 2, 0, 1, 1) |
|
112 |
self.horizontalLayout_2.addWidget(self.pushButtonMakeTrainingImage) |
|
113 |
self.ocrDialogButtonBox = QtWidgets.QDialogButtonBox(Dialog) |
|
114 |
self.ocrDialogButtonBox.setOrientation(QtCore.Qt.Horizontal) |
|
115 |
self.ocrDialogButtonBox.setStandardButtons(QtWidgets.QDialogButtonBox.Cancel|QtWidgets.QDialogButtonBox.Ok) |
|
116 |
self.ocrDialogButtonBox.setObjectName("ocrDialogButtonBox") |
|
117 |
self.horizontalLayout_2.addWidget(self.ocrDialogButtonBox) |
|
118 |
self.gridLayout_2.addLayout(self.horizontalLayout_2, 3, 0, 1, 1) |
|
111 | 119 | |
112 | 120 |
self.retranslateUi(Dialog) |
113 | 121 |
self.ocrDialogButtonBox.accepted.connect(Dialog.accept) |
DTI_PID/DTI_PID/UI/OcrResultDialog.ui | ||
---|---|---|
27 | 27 |
<string>OCR</string> |
28 | 28 |
</property> |
29 | 29 |
<layout class="QGridLayout" name="gridLayout_2"> |
30 |
<item row="3" column="0"> |
|
31 |
<widget class="QDialogButtonBox" name="ocrDialogButtonBox"> |
|
32 |
<property name="orientation"> |
|
33 |
<enum>Qt::Horizontal</enum> |
|
34 |
</property> |
|
35 |
<property name="standardButtons"> |
|
36 |
<set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set> |
|
37 |
</property> |
|
38 |
</widget> |
|
39 |
</item> |
|
40 | 30 |
<item row="1" column="0"> |
41 | 31 |
<widget class="QSplitter" name="splitter"> |
42 | 32 |
<property name="orientation"> |
... | ... | |
240 | 230 |
</widget> |
241 | 231 |
</widget> |
242 | 232 |
</item> |
243 |
<item row="2" column="0"> |
|
244 |
<widget class="QPushButton" name="pushButtonMakeTrainingImage"> |
|
245 |
<property name="text"> |
|
246 |
<string>OCR 학습 이미지 저장</string> |
|
247 |
</property> |
|
248 |
</widget> |
|
233 |
<item row="3" column="0"> |
|
234 |
<layout class="QHBoxLayout" name="horizontalLayout_2"> |
|
235 |
<item> |
|
236 |
<widget class="QPushButton" name="pushButtonMakeTrainingImage"> |
|
237 |
<property name="sizePolicy"> |
|
238 |
<sizepolicy hsizetype="Preferred" vsizetype="Fixed"> |
|
239 |
<horstretch>0</horstretch> |
|
240 |
<verstretch>0</verstretch> |
|
241 |
</sizepolicy> |
|
242 |
</property> |
|
243 |
<property name="text"> |
|
244 |
<string>OCR 학습 이미지 저장</string> |
|
245 |
</property> |
|
246 |
</widget> |
|
247 |
</item> |
|
248 |
<item> |
|
249 |
<widget class="QDialogButtonBox" name="ocrDialogButtonBox"> |
|
250 |
<property name="orientation"> |
|
251 |
<enum>Qt::Horizontal</enum> |
|
252 |
</property> |
|
253 |
<property name="standardButtons"> |
|
254 |
<set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set> |
|
255 |
</property> |
|
256 |
</widget> |
|
257 |
</item> |
|
258 |
</layout> |
|
249 | 259 |
</item> |
250 | 260 |
</layout> |
251 | 261 |
</widget> |
내보내기 Unified diff