개정판 033ac5bd
issue #000: change UI
Change-Id: I190964962c65740b169eb5506f731bde461ca677
DTI_PID/DTI_PID/Training_ResultDialog.py | ||
---|---|---|
18 | 18 |
QDialog.__init__(self, parent) |
19 | 19 |
|
20 | 20 |
self.ui = Training_Result_UI.Ui_TrainingResultDialog() |
21 |
self.ui.setupUi(self) |
|
21 |
self.ui.setupUi(self) |
|
22 |
|
|
23 |
self.ui.pushButtonDeployment.clicked.connect(self.deployment) |
|
24 |
|
|
25 |
def deployment(self): |
|
26 |
QMessageBox.information(self, self.tr('Information'), self.tr('Succeeded')) |
DTI_PID/DTI_PID/Training_Result_UI.py | ||
---|---|---|
11 | 11 |
class Ui_TrainingResultDialog(object): |
12 | 12 |
def setupUi(self, TrainingResultDialog): |
13 | 13 |
TrainingResultDialog.setObjectName("TrainingResultDialog") |
14 |
TrainingResultDialog.resize(511, 188)
|
|
14 |
TrainingResultDialog.resize(511, 206)
|
|
15 | 15 |
self.gridLayout_2 = QtWidgets.QGridLayout(TrainingResultDialog) |
16 | 16 |
self.gridLayout_2.setObjectName("gridLayout_2") |
17 | 17 |
self.groupBox_2 = QtWidgets.QGroupBox(TrainingResultDialog) |
... | ... | |
21 | 21 |
self.gridLayout_5 = QtWidgets.QGridLayout() |
22 | 22 |
self.gridLayout_5.setSizeConstraint(QtWidgets.QLayout.SetFixedSize) |
23 | 23 |
self.gridLayout_5.setObjectName("gridLayout_5") |
24 |
self.label_5 = QtWidgets.QLabel(self.groupBox_2) |
|
25 |
self.label_5.setObjectName("label_5") |
|
26 |
self.gridLayout_5.addWidget(self.label_5, 1, 1, 1, 1) |
|
27 |
self.label = QtWidgets.QLabel(self.groupBox_2) |
|
28 |
self.label.setObjectName("label") |
|
29 |
self.gridLayout_5.addWidget(self.label, 2, 0, 1, 1) |
|
24 | 30 |
self.label_3 = QtWidgets.QLabel(self.groupBox_2) |
25 | 31 |
self.label_3.setObjectName("label_3") |
26 |
self.gridLayout_5.addWidget(self.label_3, 2, 0, 1, 1) |
|
32 |
self.gridLayout_5.addWidget(self.label_3, 3, 0, 1, 1) |
|
33 |
self.label_6 = QtWidgets.QLabel(self.groupBox_2) |
|
34 |
self.label_6.setObjectName("label_6") |
|
35 |
self.gridLayout_5.addWidget(self.label_6, 1, 2, 1, 1) |
|
27 | 36 |
self.label_2 = QtWidgets.QLabel(self.groupBox_2) |
28 | 37 |
self.label_2.setObjectName("label_2") |
29 |
self.gridLayout_5.addWidget(self.label_2, 3, 0, 1, 1) |
|
30 |
self.label = QtWidgets.QLabel(self.groupBox_2) |
|
31 |
self.label.setObjectName("label") |
|
32 |
self.gridLayout_5.addWidget(self.label, 1, 0, 1, 1) |
|
33 |
self.label_5 = QtWidgets.QLabel(self.groupBox_2) |
|
34 |
self.label_5.setObjectName("label_5") |
|
35 |
self.gridLayout_5.addWidget(self.label_5, 0, 1, 1, 1) |
|
38 |
self.gridLayout_5.addWidget(self.label_2, 4, 0, 1, 1) |
|
36 | 39 |
self.label_4 = QtWidgets.QLabel(self.groupBox_2) |
37 | 40 |
self.label_4.setObjectName("label_4") |
38 |
self.gridLayout_5.addWidget(self.label_4, 0, 0, 1, 1) |
|
39 |
self.label_6 = QtWidgets.QLabel(self.groupBox_2) |
|
40 |
self.label_6.setObjectName("label_6") |
|
41 |
self.gridLayout_5.addWidget(self.label_6, 0, 2, 1, 1) |
|
41 |
self.gridLayout_5.addWidget(self.label_4, 1, 0, 1, 1) |
|
42 | 42 |
self.lineEdit = QtWidgets.QLineEdit(self.groupBox_2) |
43 | 43 |
self.lineEdit.setReadOnly(True) |
44 | 44 |
self.lineEdit.setObjectName("lineEdit") |
45 |
self.gridLayout_5.addWidget(self.lineEdit, 1, 1, 1, 1)
|
|
45 |
self.gridLayout_5.addWidget(self.lineEdit, 2, 1, 1, 1)
|
|
46 | 46 |
self.lineEdit_2 = QtWidgets.QLineEdit(self.groupBox_2) |
47 | 47 |
self.lineEdit_2.setReadOnly(True) |
48 | 48 |
self.lineEdit_2.setObjectName("lineEdit_2") |
49 |
self.gridLayout_5.addWidget(self.lineEdit_2, 1, 2, 1, 1) |
|
50 |
self.lineEdit_3 = QtWidgets.QLineEdit(self.groupBox_2) |
|
51 |
self.lineEdit_3.setReadOnly(True) |
|
52 |
self.lineEdit_3.setObjectName("lineEdit_3") |
|
53 |
self.gridLayout_5.addWidget(self.lineEdit_3, 2, 1, 1, 1) |
|
54 |
self.lineEdit_4 = QtWidgets.QLineEdit(self.groupBox_2) |
|
55 |
self.lineEdit_4.setReadOnly(True) |
|
56 |
self.lineEdit_4.setObjectName("lineEdit_4") |
|
57 |
self.gridLayout_5.addWidget(self.lineEdit_4, 3, 1, 1, 1) |
|
49 |
self.gridLayout_5.addWidget(self.lineEdit_2, 2, 2, 1, 1) |
|
58 | 50 |
self.lineEdit_5 = QtWidgets.QLineEdit(self.groupBox_2) |
59 | 51 |
self.lineEdit_5.setReadOnly(True) |
60 | 52 |
self.lineEdit_5.setObjectName("lineEdit_5") |
61 |
self.gridLayout_5.addWidget(self.lineEdit_5, 2, 2, 1, 1) |
|
53 |
self.gridLayout_5.addWidget(self.lineEdit_5, 3, 2, 1, 1) |
|
54 |
self.lineEdit_4 = QtWidgets.QLineEdit(self.groupBox_2) |
|
55 |
self.lineEdit_4.setReadOnly(True) |
|
56 |
self.lineEdit_4.setObjectName("lineEdit_4") |
|
57 |
self.gridLayout_5.addWidget(self.lineEdit_4, 4, 1, 1, 1) |
|
58 |
self.lineEdit_3 = QtWidgets.QLineEdit(self.groupBox_2) |
|
59 |
self.lineEdit_3.setReadOnly(True) |
|
60 |
self.lineEdit_3.setObjectName("lineEdit_3") |
|
61 |
self.gridLayout_5.addWidget(self.lineEdit_3, 3, 1, 1, 1) |
|
62 | 62 |
self.lineEdit_6 = QtWidgets.QLineEdit(self.groupBox_2) |
63 | 63 |
self.lineEdit_6.setReadOnly(True) |
64 | 64 |
self.lineEdit_6.setObjectName("lineEdit_6") |
65 |
self.gridLayout_5.addWidget(self.lineEdit_6, 3, 2, 1, 1) |
|
66 |
self.gridLayout.addLayout(self.gridLayout_5, 0, 0, 1, 1) |
|
65 |
self.gridLayout_5.addWidget(self.lineEdit_6, 4, 2, 1, 1) |
|
66 |
self.gridLayout.addLayout(self.gridLayout_5, 1, 0, 1, 1) |
|
67 |
self.pushButtonDeployment = QtWidgets.QPushButton(self.groupBox_2) |
|
68 |
self.pushButtonDeployment.setObjectName("pushButtonDeployment") |
|
69 |
self.gridLayout.addWidget(self.pushButtonDeployment, 2, 0, 1, 1) |
|
67 | 70 |
self.gridLayout_2.addWidget(self.groupBox_2, 0, 0, 1, 1) |
68 | 71 |
self.buttonBox = QtWidgets.QDialogButtonBox(TrainingResultDialog) |
69 | 72 |
self.buttonBox.setOrientation(QtCore.Qt.Horizontal) |
... | ... | |
82 | 85 |
_translate = QtCore.QCoreApplication.translate |
83 | 86 |
TrainingResultDialog.setWindowTitle(_translate("TrainingResultDialog", "Result")) |
84 | 87 |
self.groupBox_2.setTitle(_translate("TrainingResultDialog", "Summary")) |
88 |
self.label_5.setText(_translate("TrainingResultDialog", "Estimated Time for Symbols(sec)")) |
|
89 |
self.label.setText(_translate("TrainingResultDialog", "Yolo")) |
|
85 | 90 |
self.label_3.setText(_translate("TrainingResultDialog", "Algorithm 1")) |
91 |
self.label_6.setText(_translate("TrainingResultDialog", "Loss")) |
|
86 | 92 |
self.label_2.setText(_translate("TrainingResultDialog", "Algorithm 2")) |
87 |
self.label.setText(_translate("TrainingResultDialog", "Yolo")) |
|
88 |
self.label_5.setText(_translate("TrainingResultDialog", "Estimated Time for Symbols(sec)")) |
|
89 | 93 |
self.label_4.setText(_translate("TrainingResultDialog", "Algorithm")) |
90 |
self.label_6.setText(_translate("TrainingResultDialog", "Loss")) |
|
91 | 94 |
self.lineEdit.setText(_translate("TrainingResultDialog", "45.8")) |
92 | 95 |
self.lineEdit_2.setText(_translate("TrainingResultDialog", "0.936")) |
93 |
self.lineEdit_3.setText(_translate("TrainingResultDialog", "40.6")) |
|
94 |
self.lineEdit_4.setText(_translate("TrainingResultDialog", "55.7")) |
|
95 | 96 |
self.lineEdit_5.setText(_translate("TrainingResultDialog", "1.124")) |
97 |
self.lineEdit_4.setText(_translate("TrainingResultDialog", "55.7")) |
|
98 |
self.lineEdit_3.setText(_translate("TrainingResultDialog", "40.6")) |
|
96 | 99 |
self.lineEdit_6.setText(_translate("TrainingResultDialog", "0.983")) |
100 |
self.pushButtonDeployment.setText(_translate("TrainingResultDialog", "Deploy Models")) |
|
97 | 101 |
|
98 | 102 |
import MainWindow_rc |
99 | 103 |
|
DTI_PID/DTI_PID/UI/Training_Result.ui | ||
---|---|---|
7 | 7 |
<x>0</x> |
8 | 8 |
<y>0</y> |
9 | 9 |
<width>511</width> |
10 |
<height>188</height>
|
|
10 |
<height>206</height>
|
|
11 | 11 |
</rect> |
12 | 12 |
</property> |
13 | 13 |
<property name="windowTitle"> |
... | ... | |
20 | 20 |
<string>Summary</string> |
21 | 21 |
</property> |
22 | 22 |
<layout class="QGridLayout" name="gridLayout"> |
23 |
<item row="0" column="0">
|
|
23 |
<item row="1" column="0">
|
|
24 | 24 |
<layout class="QGridLayout" name="gridLayout_5"> |
25 | 25 |
<property name="sizeConstraint"> |
26 | 26 |
<enum>QLayout::SetFixedSize</enum> |
27 | 27 |
</property> |
28 |
<item row="2" column="0">
|
|
29 |
<widget class="QLabel" name="label_3">
|
|
28 |
<item row="1" column="1">
|
|
29 |
<widget class="QLabel" name="label_5">
|
|
30 | 30 |
<property name="text"> |
31 |
<string>Algorithm 1</string>
|
|
31 |
<string>Estimated Time for Symbols(sec)</string>
|
|
32 | 32 |
</property> |
33 | 33 |
</widget> |
34 | 34 |
</item> |
35 |
<item row="3" column="0">
|
|
36 |
<widget class="QLabel" name="label_2">
|
|
35 |
<item row="2" column="0">
|
|
36 |
<widget class="QLabel" name="label"> |
|
37 | 37 |
<property name="text"> |
38 |
<string>Algorithm 2</string>
|
|
38 |
<string>Yolo</string>
|
|
39 | 39 |
</property> |
40 | 40 |
</widget> |
41 | 41 |
</item> |
42 |
<item row="1" column="0">
|
|
43 |
<widget class="QLabel" name="label"> |
|
42 |
<item row="3" column="0">
|
|
43 |
<widget class="QLabel" name="label_3">
|
|
44 | 44 |
<property name="text"> |
45 |
<string>Yolo</string>
|
|
45 |
<string>Algorithm 1</string>
|
|
46 | 46 |
</property> |
47 | 47 |
</widget> |
48 | 48 |
</item> |
49 |
<item row="0" column="1">
|
|
50 |
<widget class="QLabel" name="label_5">
|
|
49 |
<item row="1" column="2">
|
|
50 |
<widget class="QLabel" name="label_6">
|
|
51 | 51 |
<property name="text"> |
52 |
<string>Estimated Time for Symbols(sec)</string>
|
|
52 |
<string>Loss</string>
|
|
53 | 53 |
</property> |
54 | 54 |
</widget> |
55 | 55 |
</item> |
56 |
<item row="0" column="0">
|
|
57 |
<widget class="QLabel" name="label_4">
|
|
56 |
<item row="4" column="0">
|
|
57 |
<widget class="QLabel" name="label_2">
|
|
58 | 58 |
<property name="text"> |
59 |
<string>Algorithm</string> |
|
59 |
<string>Algorithm 2</string>
|
|
60 | 60 |
</property> |
61 | 61 |
</widget> |
62 | 62 |
</item> |
63 |
<item row="0" column="2">
|
|
64 |
<widget class="QLabel" name="label_6">
|
|
63 |
<item row="1" column="0">
|
|
64 |
<widget class="QLabel" name="label_4">
|
|
65 | 65 |
<property name="text"> |
66 |
<string>Loss</string>
|
|
66 |
<string>Algorithm</string>
|
|
67 | 67 |
</property> |
68 | 68 |
</widget> |
69 | 69 |
</item> |
70 |
<item row="1" column="1">
|
|
70 |
<item row="2" column="1">
|
|
71 | 71 |
<widget class="QLineEdit" name="lineEdit"> |
72 | 72 |
<property name="text"> |
73 | 73 |
<string>45.8</string> |
... | ... | |
77 | 77 |
</property> |
78 | 78 |
</widget> |
79 | 79 |
</item> |
80 |
<item row="1" column="2">
|
|
80 |
<item row="2" column="2">
|
|
81 | 81 |
<widget class="QLineEdit" name="lineEdit_2"> |
82 | 82 |
<property name="text"> |
83 | 83 |
<string>0.936</string> |
... | ... | |
87 | 87 |
</property> |
88 | 88 |
</widget> |
89 | 89 |
</item> |
90 |
<item row="2" column="1">
|
|
91 |
<widget class="QLineEdit" name="lineEdit_3">
|
|
90 |
<item row="3" column="2">
|
|
91 |
<widget class="QLineEdit" name="lineEdit_5">
|
|
92 | 92 |
<property name="text"> |
93 |
<string>40.6</string>
|
|
93 |
<string>1.124</string>
|
|
94 | 94 |
</property> |
95 | 95 |
<property name="readOnly"> |
96 | 96 |
<bool>true</bool> |
97 | 97 |
</property> |
98 | 98 |
</widget> |
99 | 99 |
</item> |
100 |
<item row="3" column="1">
|
|
100 |
<item row="4" column="1">
|
|
101 | 101 |
<widget class="QLineEdit" name="lineEdit_4"> |
102 | 102 |
<property name="text"> |
103 | 103 |
<string>55.7</string> |
... | ... | |
107 | 107 |
</property> |
108 | 108 |
</widget> |
109 | 109 |
</item> |
110 |
<item row="2" column="2">
|
|
111 |
<widget class="QLineEdit" name="lineEdit_5">
|
|
110 |
<item row="3" column="1">
|
|
111 |
<widget class="QLineEdit" name="lineEdit_3">
|
|
112 | 112 |
<property name="text"> |
113 |
<string>1.124</string>
|
|
113 |
<string>40.6</string>
|
|
114 | 114 |
</property> |
115 | 115 |
<property name="readOnly"> |
116 | 116 |
<bool>true</bool> |
117 | 117 |
</property> |
118 | 118 |
</widget> |
119 | 119 |
</item> |
120 |
<item row="3" column="2">
|
|
120 |
<item row="4" column="2">
|
|
121 | 121 |
<widget class="QLineEdit" name="lineEdit_6"> |
122 | 122 |
<property name="text"> |
123 | 123 |
<string>0.983</string> |
... | ... | |
129 | 129 |
</item> |
130 | 130 |
</layout> |
131 | 131 |
</item> |
132 |
<item row="2" column="0"> |
|
133 |
<widget class="QPushButton" name="pushButtonDeployment"> |
|
134 |
<property name="text"> |
|
135 |
<string>Deploy Models</string> |
|
136 |
</property> |
|
137 |
</widget> |
|
138 |
</item> |
|
132 | 139 |
</layout> |
133 | 140 |
</widget> |
134 | 141 |
</item> |
DTI_PID/DTI_PID/ValidationDialog.py | ||
---|---|---|
23 | 23 |
self.ui.buttonBox.button(QDialogButtonBox.Ok).setIcon(QIcon(':/newPrefix/OK.svg')) |
24 | 24 |
self.ui.buttonBox.button(QDialogButtonBox.Cancel).setIcon(QIcon(':/newPrefix/Remove.svg')) |
25 | 25 |
|
26 |
self.ui.groupBox.setVisible(False) |
|
27 |
self.setFixedHeight(240) |
|
28 |
self.setFixedWidth(350) |
|
29 |
|
|
26 | 30 |
def accept(self): |
27 | 31 |
QDialog.accept(self) |
내보내기 Unified diff