hytos / HYTOS / HYTOS / DiameterEstimation_Vapor_UI.py @ 3b44b5a7
이력 | 보기 | 이력해설 | 다운로드 (16.1 KB)
1 |
# -*- coding: utf-8 -*-
|
---|---|
2 |
|
3 |
# Form implementation generated from reading ui file '.\UI\DiameterEstimation_Vapor.ui'
|
4 |
#
|
5 |
# Created by: PyQt5 UI code generator 5.13.0
|
6 |
#
|
7 |
# WARNING! All changes made in this file will be lost!
|
8 |
|
9 |
|
10 |
from PyQt5 import QtCore, QtGui, QtWidgets |
11 |
|
12 |
|
13 |
class Ui_Dialog(object): |
14 |
def setupUi(self, Dialog): |
15 |
Dialog.setObjectName("Dialog")
|
16 |
Dialog.resize(656, 488) |
17 |
font = QtGui.QFont() |
18 |
font.setFamily("굴림")
|
19 |
Dialog.setFont(font) |
20 |
icon = QtGui.QIcon() |
21 |
icon.addPixmap(QtGui.QPixmap(":/images/HYTOS.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
|
22 |
Dialog.setWindowIcon(icon) |
23 |
self.gridLayout = QtWidgets.QGridLayout(Dialog)
|
24 |
self.gridLayout.setObjectName("gridLayout") |
25 |
self.verticalLayout = QtWidgets.QVBoxLayout()
|
26 |
self.verticalLayout.setObjectName("verticalLayout") |
27 |
self.horizontalLayout_8 = QtWidgets.QHBoxLayout()
|
28 |
self.horizontalLayout_8.setObjectName("horizontalLayout_8") |
29 |
self.groupBox_4 = QtWidgets.QGroupBox(Dialog)
|
30 |
self.groupBox_4.setMinimumSize(QtCore.QSize(300, 150)) |
31 |
self.groupBox_4.setMaximumSize(QtCore.QSize(300, 150)) |
32 |
font = QtGui.QFont() |
33 |
font.setFamily("굴림")
|
34 |
font.setBold(True)
|
35 |
font.setWeight(75)
|
36 |
self.groupBox_4.setFont(font)
|
37 |
self.groupBox_4.setObjectName("groupBox_4") |
38 |
self.gridLayout_5 = QtWidgets.QGridLayout(self.groupBox_4) |
39 |
self.gridLayout_5.setObjectName("gridLayout_5") |
40 |
self.label_6 = QtWidgets.QLabel(self.groupBox_4) |
41 |
self.label_6.setMinimumSize(QtCore.QSize(0, 0)) |
42 |
self.label_6.setMaximumSize(QtCore.QSize(16777215, 16777215)) |
43 |
font = QtGui.QFont() |
44 |
font.setBold(False)
|
45 |
font.setWeight(50)
|
46 |
self.label_6.setFont(font)
|
47 |
self.label_6.setObjectName("label_6") |
48 |
self.gridLayout_5.addWidget(self.label_6, 0, 0, 1, 1) |
49 |
self.label_Outlet_Pressure_Unit = QtWidgets.QLabel(self.groupBox_4) |
50 |
self.label_Outlet_Pressure_Unit.setMinimumSize(QtCore.QSize(98, 0)) |
51 |
self.label_Outlet_Pressure_Unit.setMaximumSize(QtCore.QSize(98, 16777215)) |
52 |
font = QtGui.QFont() |
53 |
font.setBold(False)
|
54 |
font.setWeight(50)
|
55 |
self.label_Outlet_Pressure_Unit.setFont(font)
|
56 |
self.label_Outlet_Pressure_Unit.setAlignment(QtCore.Qt.AlignCenter)
|
57 |
self.label_Outlet_Pressure_Unit.setObjectName("label_Outlet_Pressure_Unit") |
58 |
self.gridLayout_5.addWidget(self.label_Outlet_Pressure_Unit, 3, 2, 1, 1) |
59 |
self.label_5 = QtWidgets.QLabel(self.groupBox_4) |
60 |
self.label_5.setMinimumSize(QtCore.QSize(0, 0)) |
61 |
self.label_5.setMaximumSize(QtCore.QSize(16777215, 16777215)) |
62 |
font = QtGui.QFont() |
63 |
font.setBold(False)
|
64 |
font.setWeight(50)
|
65 |
self.label_5.setFont(font)
|
66 |
self.label_5.setObjectName("label_5") |
67 |
self.gridLayout_5.addWidget(self.label_5, 0, 2, 1, 1) |
68 |
self.pushButton_Apply = QtWidgets.QPushButton(self.groupBox_4) |
69 |
font = QtGui.QFont() |
70 |
font.setBold(False)
|
71 |
font.setWeight(50)
|
72 |
self.pushButton_Apply.setFont(font)
|
73 |
self.pushButton_Apply.setObjectName("pushButton_Apply") |
74 |
self.gridLayout_5.addWidget(self.pushButton_Apply, 2, 1, 1, 1) |
75 |
self.lineEdit_Outlet_Pressure = QtWidgets.QLineEdit(self.groupBox_4) |
76 |
self.lineEdit_Outlet_Pressure.setMinimumSize(QtCore.QSize(100, 0)) |
77 |
self.lineEdit_Outlet_Pressure.setMaximumSize(QtCore.QSize(100, 16777215)) |
78 |
font = QtGui.QFont() |
79 |
font.setBold(False)
|
80 |
font.setWeight(50)
|
81 |
self.lineEdit_Outlet_Pressure.setFont(font)
|
82 |
self.lineEdit_Outlet_Pressure.setAlignment(QtCore.Qt.AlignCenter)
|
83 |
self.lineEdit_Outlet_Pressure.setReadOnly(False) |
84 |
self.lineEdit_Outlet_Pressure.setObjectName("lineEdit_Outlet_Pressure") |
85 |
self.gridLayout_5.addWidget(self.lineEdit_Outlet_Pressure, 2, 2, 1, 1) |
86 |
self.label_7 = QtWidgets.QLabel(self.groupBox_4) |
87 |
self.label_7.setObjectName("label_7") |
88 |
self.gridLayout_5.addWidget(self.label_7, 1, 0, 1, 3) |
89 |
self.lineEdit_Inlet_Pressure = QtWidgets.QLineEdit(self.groupBox_4) |
90 |
self.lineEdit_Inlet_Pressure.setMinimumSize(QtCore.QSize(100, 0)) |
91 |
self.lineEdit_Inlet_Pressure.setMaximumSize(QtCore.QSize(100, 16777215)) |
92 |
font = QtGui.QFont() |
93 |
font.setBold(False)
|
94 |
font.setWeight(50)
|
95 |
self.lineEdit_Inlet_Pressure.setFont(font)
|
96 |
self.lineEdit_Inlet_Pressure.setAlignment(QtCore.Qt.AlignCenter)
|
97 |
self.lineEdit_Inlet_Pressure.setReadOnly(False) |
98 |
self.lineEdit_Inlet_Pressure.setObjectName("lineEdit_Inlet_Pressure") |
99 |
self.gridLayout_5.addWidget(self.lineEdit_Inlet_Pressure, 2, 0, 1, 1) |
100 |
self.label_Inlet_Pressure_Unit = QtWidgets.QLabel(self.groupBox_4) |
101 |
self.label_Inlet_Pressure_Unit.setMinimumSize(QtCore.QSize(98, 0)) |
102 |
self.label_Inlet_Pressure_Unit.setMaximumSize(QtCore.QSize(98, 16777215)) |
103 |
font = QtGui.QFont() |
104 |
font.setBold(False)
|
105 |
font.setWeight(50)
|
106 |
self.label_Inlet_Pressure_Unit.setFont(font)
|
107 |
self.label_Inlet_Pressure_Unit.setAlignment(QtCore.Qt.AlignCenter)
|
108 |
self.label_Inlet_Pressure_Unit.setObjectName("label_Inlet_Pressure_Unit") |
109 |
self.gridLayout_5.addWidget(self.label_Inlet_Pressure_Unit, 3, 0, 1, 1) |
110 |
self.horizontalLayout_8.addWidget(self.groupBox_4) |
111 |
self.groupBox_3 = QtWidgets.QGroupBox(Dialog)
|
112 |
font = QtGui.QFont() |
113 |
font.setFamily("굴림")
|
114 |
font.setBold(True)
|
115 |
font.setWeight(75)
|
116 |
self.groupBox_3.setFont(font)
|
117 |
self.groupBox_3.setObjectName("groupBox_3") |
118 |
self.gridLayout_4 = QtWidgets.QGridLayout(self.groupBox_3) |
119 |
self.gridLayout_4.setObjectName("gridLayout_4") |
120 |
spacerItem = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) |
121 |
self.gridLayout_4.addItem(spacerItem, 0, 0, 1, 1) |
122 |
self.horizontalLayout_4 = QtWidgets.QHBoxLayout()
|
123 |
self.horizontalLayout_4.setObjectName("horizontalLayout_4") |
124 |
self.label_3 = QtWidgets.QLabel(self.groupBox_3) |
125 |
self.label_3.setMinimumSize(QtCore.QSize(150, 0)) |
126 |
self.label_3.setMaximumSize(QtCore.QSize(150, 16777215)) |
127 |
font = QtGui.QFont() |
128 |
font.setBold(False)
|
129 |
font.setWeight(50)
|
130 |
self.label_3.setFont(font)
|
131 |
self.label_3.setObjectName("label_3") |
132 |
self.horizontalLayout_4.addWidget(self.label_3) |
133 |
self.lineEdit_Flowrate_Volume = QtWidgets.QLineEdit(self.groupBox_3) |
134 |
self.lineEdit_Flowrate_Volume.setMinimumSize(QtCore.QSize(100, 0)) |
135 |
self.lineEdit_Flowrate_Volume.setMaximumSize(QtCore.QSize(100, 16777215)) |
136 |
font = QtGui.QFont() |
137 |
font.setBold(False)
|
138 |
font.setWeight(50)
|
139 |
self.lineEdit_Flowrate_Volume.setFont(font)
|
140 |
self.lineEdit_Flowrate_Volume.setAlignment(QtCore.Qt.AlignCenter)
|
141 |
self.lineEdit_Flowrate_Volume.setReadOnly(True) |
142 |
self.lineEdit_Flowrate_Volume.setObjectName("lineEdit_Flowrate_Volume") |
143 |
self.horizontalLayout_4.addWidget(self.lineEdit_Flowrate_Volume) |
144 |
self.label_Flowrate_Volume_Unit = QtWidgets.QLabel(self.groupBox_3) |
145 |
font = QtGui.QFont() |
146 |
font.setBold(False)
|
147 |
font.setWeight(50)
|
148 |
self.label_Flowrate_Volume_Unit.setFont(font)
|
149 |
self.label_Flowrate_Volume_Unit.setObjectName("label_Flowrate_Volume_Unit") |
150 |
self.horizontalLayout_4.addWidget(self.label_Flowrate_Volume_Unit) |
151 |
self.gridLayout_4.addLayout(self.horizontalLayout_4, 2, 0, 1, 1) |
152 |
self.horizontalLayout_5 = QtWidgets.QHBoxLayout()
|
153 |
self.horizontalLayout_5.setObjectName("horizontalLayout_5") |
154 |
self.label_4 = QtWidgets.QLabel(self.groupBox_3) |
155 |
self.label_4.setMinimumSize(QtCore.QSize(150, 0)) |
156 |
self.label_4.setMaximumSize(QtCore.QSize(150, 16777215)) |
157 |
font = QtGui.QFont() |
158 |
font.setBold(False)
|
159 |
font.setWeight(50)
|
160 |
self.label_4.setFont(font)
|
161 |
self.label_4.setObjectName("label_4") |
162 |
self.horizontalLayout_5.addWidget(self.label_4) |
163 |
self.lineEdit_Density = QtWidgets.QLineEdit(self.groupBox_3) |
164 |
self.lineEdit_Density.setMinimumSize(QtCore.QSize(100, 0)) |
165 |
self.lineEdit_Density.setMaximumSize(QtCore.QSize(100, 16777215)) |
166 |
font = QtGui.QFont() |
167 |
font.setBold(False)
|
168 |
font.setWeight(50)
|
169 |
self.lineEdit_Density.setFont(font)
|
170 |
self.lineEdit_Density.setAlignment(QtCore.Qt.AlignCenter)
|
171 |
self.lineEdit_Density.setReadOnly(True) |
172 |
self.lineEdit_Density.setObjectName("lineEdit_Density") |
173 |
self.horizontalLayout_5.addWidget(self.lineEdit_Density) |
174 |
self.label_Density_Unit = QtWidgets.QLabel(self.groupBox_3) |
175 |
font = QtGui.QFont() |
176 |
font.setBold(False)
|
177 |
font.setWeight(50)
|
178 |
self.label_Density_Unit.setFont(font)
|
179 |
self.label_Density_Unit.setObjectName("label_Density_Unit") |
180 |
self.horizontalLayout_5.addWidget(self.label_Density_Unit) |
181 |
self.gridLayout_4.addLayout(self.horizontalLayout_5, 1, 0, 1, 1) |
182 |
spacerItem1 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) |
183 |
self.gridLayout_4.addItem(spacerItem1, 3, 0, 1, 1) |
184 |
self.horizontalLayout_8.addWidget(self.groupBox_3) |
185 |
self.verticalLayout.addLayout(self.horizontalLayout_8) |
186 |
self.groupBox = QtWidgets.QGroupBox(Dialog)
|
187 |
font = QtGui.QFont() |
188 |
font.setFamily("굴림")
|
189 |
font.setBold(True)
|
190 |
font.setWeight(75)
|
191 |
self.groupBox.setFont(font)
|
192 |
self.groupBox.setObjectName("groupBox") |
193 |
self.gridLayout_2 = QtWidgets.QGridLayout(self.groupBox) |
194 |
self.gridLayout_2.setObjectName("gridLayout_2") |
195 |
self.horizontalLayout = QtWidgets.QHBoxLayout()
|
196 |
self.horizontalLayout.setObjectName("horizontalLayout") |
197 |
self.label_2 = QtWidgets.QLabel(self.groupBox) |
198 |
self.label_2.setMinimumSize(QtCore.QSize(90, 0)) |
199 |
self.label_2.setMaximumSize(QtCore.QSize(90, 16777215)) |
200 |
font = QtGui.QFont() |
201 |
font.setBold(False)
|
202 |
font.setWeight(50)
|
203 |
self.label_2.setFont(font)
|
204 |
self.label_2.setObjectName("label_2") |
205 |
self.horizontalLayout.addWidget(self.label_2) |
206 |
self.lineEdit_Pressure_Drop = QtWidgets.QLineEdit(self.groupBox) |
207 |
self.lineEdit_Pressure_Drop.setMinimumSize(QtCore.QSize(100, 0)) |
208 |
self.lineEdit_Pressure_Drop.setMaximumSize(QtCore.QSize(100, 16777215)) |
209 |
font = QtGui.QFont() |
210 |
font.setBold(False)
|
211 |
font.setWeight(50)
|
212 |
self.lineEdit_Pressure_Drop.setFont(font)
|
213 |
self.lineEdit_Pressure_Drop.setAlignment(QtCore.Qt.AlignCenter)
|
214 |
self.lineEdit_Pressure_Drop.setReadOnly(True) |
215 |
self.lineEdit_Pressure_Drop.setObjectName("lineEdit_Pressure_Drop") |
216 |
self.horizontalLayout.addWidget(self.lineEdit_Pressure_Drop) |
217 |
self.label_Pressure_Drop_Unit = QtWidgets.QLabel(self.groupBox) |
218 |
font = QtGui.QFont() |
219 |
font.setBold(False)
|
220 |
font.setWeight(50)
|
221 |
self.label_Pressure_Drop_Unit.setFont(font)
|
222 |
self.label_Pressure_Drop_Unit.setObjectName("label_Pressure_Drop_Unit") |
223 |
self.horizontalLayout.addWidget(self.label_Pressure_Drop_Unit) |
224 |
self.gridLayout_2.addLayout(self.horizontalLayout, 1, 0, 1, 1) |
225 |
self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
|
226 |
self.horizontalLayout_2.setObjectName("horizontalLayout_2") |
227 |
self.label = QtWidgets.QLabel(self.groupBox) |
228 |
self.label.setMinimumSize(QtCore.QSize(90, 0)) |
229 |
self.label.setMaximumSize(QtCore.QSize(90, 16777215)) |
230 |
font = QtGui.QFont() |
231 |
font.setBold(False)
|
232 |
font.setWeight(50)
|
233 |
self.label.setFont(font)
|
234 |
self.label.setObjectName("label") |
235 |
self.horizontalLayout_2.addWidget(self.label) |
236 |
self.lineEdit_Velocity = QtWidgets.QLineEdit(self.groupBox) |
237 |
self.lineEdit_Velocity.setMinimumSize(QtCore.QSize(100, 0)) |
238 |
self.lineEdit_Velocity.setMaximumSize(QtCore.QSize(100, 16777215)) |
239 |
font = QtGui.QFont() |
240 |
font.setBold(False)
|
241 |
font.setWeight(50)
|
242 |
self.lineEdit_Velocity.setFont(font)
|
243 |
self.lineEdit_Velocity.setAlignment(QtCore.Qt.AlignCenter)
|
244 |
self.lineEdit_Velocity.setReadOnly(True) |
245 |
self.lineEdit_Velocity.setObjectName("lineEdit_Velocity") |
246 |
self.horizontalLayout_2.addWidget(self.lineEdit_Velocity) |
247 |
self.label_Velocity_Unit = QtWidgets.QLabel(self.groupBox) |
248 |
font = QtGui.QFont() |
249 |
font.setBold(False)
|
250 |
font.setWeight(50)
|
251 |
self.label_Velocity_Unit.setFont(font)
|
252 |
self.label_Velocity_Unit.setObjectName("label_Velocity_Unit") |
253 |
self.horizontalLayout_2.addWidget(self.label_Velocity_Unit) |
254 |
self.gridLayout_2.addLayout(self.horizontalLayout_2, 0, 0, 1, 1) |
255 |
self.verticalLayout.addWidget(self.groupBox) |
256 |
self.groupBox_2 = QtWidgets.QGroupBox(Dialog)
|
257 |
font = QtGui.QFont() |
258 |
font.setFamily("굴림")
|
259 |
font.setBold(True)
|
260 |
font.setWeight(75)
|
261 |
self.groupBox_2.setFont(font)
|
262 |
self.groupBox_2.setObjectName("groupBox_2") |
263 |
self.gridLayout_3 = QtWidgets.QGridLayout(self.groupBox_2) |
264 |
self.gridLayout_3.setObjectName("gridLayout_3") |
265 |
self.tableWidget = QtWidgets.QTableWidget(self.groupBox_2) |
266 |
self.tableWidget.setObjectName("tableWidget") |
267 |
self.tableWidget.setColumnCount(0) |
268 |
self.tableWidget.setRowCount(0) |
269 |
self.gridLayout_3.addWidget(self.tableWidget, 0, 0, 1, 1) |
270 |
self.verticalLayout.addWidget(self.groupBox_2) |
271 |
self.gridLayout.addLayout(self.verticalLayout, 0, 0, 1, 1) |
272 |
self.horizontalLayout_3 = QtWidgets.QHBoxLayout()
|
273 |
self.horizontalLayout_3.setObjectName("horizontalLayout_3") |
274 |
self.label_Note = QtWidgets.QLabel(Dialog)
|
275 |
font = QtGui.QFont() |
276 |
font.setBold(True)
|
277 |
font.setWeight(75)
|
278 |
self.label_Note.setFont(font)
|
279 |
self.label_Note.setObjectName("label_Note") |
280 |
self.horizontalLayout_3.addWidget(self.label_Note) |
281 |
self.buttonBox = QtWidgets.QDialogButtonBox(Dialog)
|
282 |
self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
|
283 |
self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.Cancel|QtWidgets.QDialogButtonBox.Ok)
|
284 |
self.buttonBox.setObjectName("buttonBox") |
285 |
self.horizontalLayout_3.addWidget(self.buttonBox) |
286 |
self.gridLayout.addLayout(self.horizontalLayout_3, 1, 0, 1, 1) |
287 |
|
288 |
self.retranslateUi(Dialog)
|
289 |
self.buttonBox.accepted.connect(Dialog.accept)
|
290 |
self.buttonBox.rejected.connect(Dialog.reject)
|
291 |
QtCore.QMetaObject.connectSlotsByName(Dialog) |
292 |
Dialog.setTabOrder(self.lineEdit_Velocity, self.lineEdit_Pressure_Drop) |
293 |
Dialog.setTabOrder(self.lineEdit_Pressure_Drop, self.tableWidget) |
294 |
|
295 |
def retranslateUi(self, Dialog): |
296 |
_translate = QtCore.QCoreApplication.translate |
297 |
Dialog.setWindowTitle(_translate("Dialog", "Pipe Diameter Estimation")) |
298 |
self.groupBox_4.setTitle(_translate("Dialog", "Reference Pressure")) |
299 |
self.label_6.setText(_translate("Dialog", " Inlet P.")) |
300 |
self.label_Outlet_Pressure_Unit.setText(_translate("Dialog", "-")) |
301 |
self.label_5.setText(_translate("Dialog", " Outlet P.")) |
302 |
self.pushButton_Apply.setText(_translate("Dialog", "Apply")) |
303 |
self.label_7.setText(_translate("Dialog", "<html><head/><body><p><img src=\":/images/S_Out.png\"/></p></body></html>")) |
304 |
self.label_Inlet_Pressure_Unit.setText(_translate("Dialog", "-")) |
305 |
self.groupBox_3.setTitle(_translate("Dialog", "Calculated Property")) |
306 |
self.label_3.setText(_translate("Dialog", "- Normal Volume Flowrate")) |
307 |
self.label_Flowrate_Volume_Unit.setText(_translate("Dialog", "-")) |
308 |
self.label_4.setText(_translate("Dialog", "- Density")) |
309 |
self.label_Density_Unit.setText(_translate("Dialog", "-")) |
310 |
self.groupBox.setTitle(_translate("Dialog", "Limitation Criteria")) |
311 |
self.label_2.setText(_translate("Dialog", "Pressure Drop")) |
312 |
self.label_Pressure_Drop_Unit.setText(_translate("Dialog", "-")) |
313 |
self.label.setText(_translate("Dialog", "Velocity")) |
314 |
self.label_Velocity_Unit.setText(_translate("Dialog", "-")) |
315 |
self.groupBox_2.setTitle(_translate("Dialog", "Select Pipe Diameter")) |
316 |
self.label_Note.setText(_translate("Dialog", "※ Note : Red Diameter is not available")) |
317 |
import Resource_rc |