개정판 6850713e
issue #501: add progressbar
DTI_PID/DTI_PID/Recognition_UI.py | ||
---|---|---|
1 | 1 |
# -*- coding: utf-8 -*- |
2 | 2 |
|
3 |
# Form implementation generated from reading ui file '.\ui\Recognition.ui'
|
|
3 |
# Form implementation generated from reading ui file './UI/Recognition_batch.ui'
|
|
4 | 4 |
# |
5 | 5 |
# Created by: PyQt5 UI code generator 5.11.3 |
6 | 6 |
# |
... | ... | |
20 | 20 |
self.gridLayout.setObjectName("gridLayout") |
21 | 21 |
self.gridLayout_2 = QtWidgets.QGridLayout() |
22 | 22 |
self.gridLayout_2.setObjectName("gridLayout_2") |
23 |
self.lineCheckBox = QtWidgets.QCheckBox(Recognition) |
|
24 |
self.lineCheckBox.setMaximumSize(QtCore.QSize(47, 16777215)) |
|
25 |
self.lineCheckBox.setChecked(False) |
|
26 |
self.lineCheckBox.setObjectName("lineCheckBox") |
|
27 |
self.gridLayout_2.addWidget(self.lineCheckBox, 0, 2, 1, 1) |
|
28 |
self.checkBoxSymbol = QtWidgets.QCheckBox(Recognition) |
|
29 |
self.checkBoxSymbol.setMaximumSize(QtCore.QSize(103, 16777215)) |
|
30 |
self.checkBoxSymbol.setChecked(True) |
|
31 |
self.checkBoxSymbol.setObjectName("checkBoxSymbol") |
|
32 |
self.gridLayout_2.addWidget(self.checkBoxSymbol, 0, 0, 1, 1) |
|
33 |
self.listWidget = QtWidgets.QListWidget(Recognition) |
|
34 |
self.listWidget.setObjectName("listWidget") |
|
35 |
self.gridLayout_2.addWidget(self.listWidget, 1, 0, 1, 5) |
|
36 |
self.progressBar = QtWidgets.QProgressBar(Recognition) |
|
37 |
self.progressBar.setProperty("value", 0) |
|
38 |
self.progressBar.setObjectName("progressBar") |
|
39 |
self.gridLayout_2.addWidget(self.progressBar, 2, 0, 1, 5) |
|
23 | 40 |
self.labelImage = QtWidgets.QLabel(Recognition) |
24 | 41 |
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Ignored, QtWidgets.QSizePolicy.Ignored) |
25 | 42 |
sizePolicy.setHorizontalStretch(0) |
... | ... | |
34 | 51 |
self.labelImage.setAlignment(QtCore.Qt.AlignCenter) |
35 | 52 |
self.labelImage.setObjectName("labelImage") |
36 | 53 |
self.gridLayout_2.addWidget(self.labelImage, 1, 5, 1, 1) |
37 |
spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) |
|
38 |
self.gridLayout_2.addItem(spacerItem, 0, 3, 1, 1) |
|
39 | 54 |
self.recognizeButton = QtWidgets.QPushButton(Recognition) |
40 | 55 |
self.recognizeButton.setMinimumSize(QtCore.QSize(150, 0)) |
41 | 56 |
self.recognizeButton.setMaximumSize(QtCore.QSize(150, 16777215)) |
... | ... | |
66 | 81 |
self.labelTitle.setAlignment(QtCore.Qt.AlignCenter) |
67 | 82 |
self.labelTitle.setObjectName("labelTitle") |
68 | 83 |
self.gridLayout_2.addWidget(self.labelTitle, 0, 4, 1, 1) |
69 |
self.lineCheckBox = QtWidgets.QCheckBox(Recognition) |
|
70 |
self.lineCheckBox.setMaximumSize(QtCore.QSize(47, 16777215)) |
|
71 |
self.lineCheckBox.setChecked(False) |
|
72 |
self.lineCheckBox.setObjectName("lineCheckBox") |
|
73 |
self.gridLayout_2.addWidget(self.lineCheckBox, 0, 2, 1, 1) |
|
74 |
self.checkBoxSymbol = QtWidgets.QCheckBox(Recognition) |
|
75 |
self.checkBoxSymbol.setMaximumSize(QtCore.QSize(103, 16777215)) |
|
76 |
self.checkBoxSymbol.setChecked(True) |
|
77 |
self.checkBoxSymbol.setObjectName("checkBoxSymbol") |
|
78 |
self.gridLayout_2.addWidget(self.checkBoxSymbol, 0, 0, 1, 1) |
|
79 |
self.listWidget = QtWidgets.QListWidget(Recognition) |
|
80 |
self.listWidget.setObjectName("listWidget") |
|
81 |
self.gridLayout_2.addWidget(self.listWidget, 1, 0, 1, 5) |
|
84 |
spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) |
|
85 |
self.gridLayout_2.addItem(spacerItem, 0, 3, 1, 1) |
|
86 |
self.progressBarBatch = QtWidgets.QProgressBar(Recognition) |
|
87 |
self.progressBarBatch.setProperty("value", 0) |
|
88 |
self.progressBarBatch.setObjectName("progressBarBatch") |
|
89 |
self.gridLayout_2.addWidget(self.progressBarBatch, 3, 0, 1, 5) |
|
82 | 90 |
self.buttonBox = QtWidgets.QDialogButtonBox(Recognition) |
83 | 91 |
self.buttonBox.setEnabled(False) |
84 | 92 |
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) |
... | ... | |
91 | 99 |
self.buttonBox.setOrientation(QtCore.Qt.Horizontal) |
92 | 100 |
self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.Close) |
93 | 101 |
self.buttonBox.setObjectName("buttonBox") |
94 |
self.gridLayout_2.addWidget(self.buttonBox, 2, 5, 1, 1) |
|
95 |
self.progressBar = QtWidgets.QProgressBar(Recognition) |
|
96 |
self.progressBar.setProperty("value", 0) |
|
97 |
self.progressBar.setObjectName("progressBar") |
|
98 |
self.gridLayout_2.addWidget(self.progressBar, 2, 0, 1, 5) |
|
102 |
self.gridLayout_2.addWidget(self.buttonBox, 3, 5, 1, 1) |
|
99 | 103 |
self.gridLayout.addLayout(self.gridLayout_2, 0, 1, 1, 1) |
100 | 104 |
|
101 | 105 |
self.retranslateUi(Recognition) |
... | ... | |
105 | 109 |
def retranslateUi(self, Recognition): |
106 | 110 |
_translate = QtCore.QCoreApplication.translate |
107 | 111 |
Recognition.setWindowTitle(_translate("Recognition", "설계정보 인식")) |
108 |
self.recognizeButton.setText(_translate("Recognition", "정보 인식")) |
|
109 |
self.checkBoxText.setText(_translate("Recognition", "텍스트")) |
|
110 | 112 |
self.lineCheckBox.setText(_translate("Recognition", "라인")) |
111 | 113 |
self.checkBoxSymbol.setText(_translate("Recognition", "심볼")) |
114 |
self.recognizeButton.setText(_translate("Recognition", "정보 인식")) |
|
115 |
self.checkBoxText.setText(_translate("Recognition", "텍스트")) |
|
116 |
|
|
117 |
|
|
118 |
if __name__ == "__main__": |
|
119 |
import sys |
|
120 |
app = QtWidgets.QApplication(sys.argv) |
|
121 |
Recognition = QtWidgets.QDialog() |
|
122 |
ui = Ui_Recognition() |
|
123 |
ui.setupUi(Recognition) |
|
124 |
Recognition.show() |
|
125 |
sys.exit(app.exec_()) |
|
112 | 126 |
|
내보내기 Unified diff