프로젝트

일반

사용자정보

통계
| 개정판:

hytos / DTI_PID / DTI_PID / UI_OcrResultDialog.py @ 6e4b95fc

이력 | 보기 | 이력해설 | 다운로드 (5.45 KB)

1 2240f7db 김정우
# -*- coding: utf-8 -*-
2
3
# Form implementation generated from reading ui file 'OcrResultDialog.ui'
4
#
5
# Created by: PyQt5 UI code generator 5.6
6
#
7
# WARNING! All changes made in this file will be lost!
8
9
from PyQt5 import QtCore, QtGui, QtWidgets
10
11
class Ui_Dialog(object):
12
    def setupUi(self, Dialog):
13
        Dialog.setObjectName("Dialog")
14 cc106735 김정우
        Dialog.resize(1080, 650)
15
        Dialog.setMinimumSize(QtCore.QSize(1080, 650))
16 22130dab 김정우
        self.gridLayout_2 = QtWidgets.QGridLayout(Dialog)
17
        self.gridLayout_2.setObjectName("gridLayout_2")
18
        self.splitter = QtWidgets.QSplitter(Dialog)
19
        self.splitter.setOrientation(QtCore.Qt.Vertical)
20
        self.splitter.setObjectName("splitter")
21
        self.topWidget = QtWidgets.QWidget(self.splitter)
22
        self.topWidget.setMinimumSize(QtCore.QSize(0, 150))
23
        self.topWidget.setObjectName("topWidget")
24
        self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.topWidget)
25
        self.verticalLayout_2.setContentsMargins(0, 0, 0, 0)
26 cc106735 김정우
        self.verticalLayout_2.setObjectName("verticalLayout_2")
27
        self.tVerticalLayout_2 = QtWidgets.QVBoxLayout()
28
        self.tVerticalLayout_2.setObjectName("tVerticalLayout_2")
29
        self.horizontalLayout = QtWidgets.QHBoxLayout()
30 22130dab 김정우
        self.horizontalLayout.setContentsMargins(8, 8, 8, 8)
31 cc106735 김정우
        self.horizontalLayout.setObjectName("horizontalLayout")
32 22130dab 김정우
        self.targetTextLabel_2 = QtWidgets.QLabel(self.topWidget)
33 2240f7db 김정우
        font = QtGui.QFont()
34
        font.setBold(True)
35
        font.setWeight(75)
36 cc106735 김정우
        self.targetTextLabel_2.setFont(font)
37
        self.targetTextLabel_2.setObjectName("targetTextLabel_2")
38
        self.horizontalLayout.addWidget(self.targetTextLabel_2)
39 22130dab 김정우
        self.counterClockPushButton_2 = QtWidgets.QPushButton(self.topWidget)
40
        self.counterClockPushButton_2.setMinimumSize(QtCore.QSize(0, 60))
41
        self.counterClockPushButton_2.setMaximumSize(QtCore.QSize(150, 60))
42 cc106735 김정우
        self.counterClockPushButton_2.setObjectName("counterClockPushButton_2")
43
        self.horizontalLayout.addWidget(self.counterClockPushButton_2)
44 22130dab 김정우
        self.clockPushButton_2 = QtWidgets.QPushButton(self.topWidget)
45
        self.clockPushButton_2.setMinimumSize(QtCore.QSize(0, 60))
46
        self.clockPushButton_2.setMaximumSize(QtCore.QSize(150, 60))
47 cc106735 김정우
        self.clockPushButton_2.setObjectName("clockPushButton_2")
48
        self.horizontalLayout.addWidget(self.clockPushButton_2)
49 22130dab 김정우
        self.redetectPushButton_2 = QtWidgets.QPushButton(self.topWidget)
50
        self.redetectPushButton_2.setMinimumSize(QtCore.QSize(0, 60))
51
        self.redetectPushButton_2.setMaximumSize(QtCore.QSize(150, 60))
52 cc106735 김정우
        self.redetectPushButton_2.setObjectName("redetectPushButton_2")
53
        self.horizontalLayout.addWidget(self.redetectPushButton_2)
54 22130dab 김정우
        self.tVerticalLayout_2.addLayout(self.horizontalLayout)
55 cc106735 김정우
        self.verticalLayout_2.addLayout(self.tVerticalLayout_2)
56 22130dab 김정우
        self.bottomWidget = QtWidgets.QWidget(self.splitter)
57
        self.bottomWidget.setMinimumSize(QtCore.QSize(0, 150))
58
        self.bottomWidget.setObjectName("bottomWidget")
59
        self.verticalLayout_4 = QtWidgets.QVBoxLayout(self.bottomWidget)
60
        self.verticalLayout_4.setContentsMargins(0, 0, 0, 0)
61 cc106735 김정우
        self.verticalLayout_4.setObjectName("verticalLayout_4")
62
        self.detectResultVerticalLayout_2 = QtWidgets.QVBoxLayout()
63 22130dab 김정우
        self.detectResultVerticalLayout_2.setContentsMargins(8, 8, 8, 8)
64 cc106735 김정우
        self.detectResultVerticalLayout_2.setObjectName("detectResultVerticalLayout_2")
65 22130dab 김정우
        self.detectResultLabel_2 = QtWidgets.QLabel(self.bottomWidget)
66 2240f7db 김정우
        font = QtGui.QFont()
67
        font.setBold(True)
68
        font.setWeight(75)
69 cc106735 김정우
        self.detectResultLabel_2.setFont(font)
70
        self.detectResultLabel_2.setObjectName("detectResultLabel_2")
71
        self.detectResultVerticalLayout_2.addWidget(self.detectResultLabel_2)
72 22130dab 김정우
        self.detectResultTextEdit_2 = QtWidgets.QTextEdit(self.bottomWidget)
73 cc106735 김정우
        self.detectResultTextEdit_2.setObjectName("detectResultTextEdit_2")
74
        self.detectResultVerticalLayout_2.addWidget(self.detectResultTextEdit_2)
75
        self.verticalLayout_4.addLayout(self.detectResultVerticalLayout_2)
76 22130dab 김정우
        self.gridLayout_2.addWidget(self.splitter, 0, 0, 1, 1)
77
        self.ocrDialogButtonBox = QtWidgets.QDialogButtonBox(Dialog)
78
        self.ocrDialogButtonBox.setOrientation(QtCore.Qt.Horizontal)
79
        self.ocrDialogButtonBox.setStandardButtons(QtWidgets.QDialogButtonBox.Cancel|QtWidgets.QDialogButtonBox.Ok)
80
        self.ocrDialogButtonBox.setObjectName("ocrDialogButtonBox")
81
        self.gridLayout_2.addWidget(self.ocrDialogButtonBox, 1, 0, 1, 1)
82 2240f7db 김정우
83
        self.retranslateUi(Dialog)
84 22130dab 김정우
        self.ocrDialogButtonBox.accepted.connect(Dialog.accept)
85
        self.ocrDialogButtonBox.rejected.connect(Dialog.reject)
86 2240f7db 김정우
        QtCore.QMetaObject.connectSlotsByName(Dialog)
87
88
    def retranslateUi(self, Dialog):
89
        _translate = QtCore.QCoreApplication.translate
90
        Dialog.setWindowTitle(_translate("Dialog", "OCR"))
91 cc106735 김정우
        self.targetTextLabel_2.setText(_translate("Dialog", "검출 대상"))
92
        self.counterClockPushButton_2.setText(_translate("Dialog", "CounterClock"))
93
        self.clockPushButton_2.setText(_translate("Dialog", "Clock"))
94
        self.redetectPushButton_2.setText(_translate("Dialog", "Re-Detect"))
95
        self.detectResultLabel_2.setText(_translate("Dialog", "검출 결과"))
96 2240f7db 김정우
97
98
if __name__ == "__main__":
99
    import sys
100
    app = QtWidgets.QApplication(sys.argv)
101
    Dialog = QtWidgets.QDialog()
102
    ui = Ui_Dialog()
103
    ui.setupUi(Dialog)
104
    Dialog.show()
105
    sys.exit(app.exec_())
클립보드 이미지 추가 (최대 크기: 500 MB)