def setupUi(self, PCondType21): PCondType21.setObjectName("PCondType21") PCondType21.resize(416, 124) self.horizontalLayout = QtWidgets.QHBoxLayout(PCondType21) self.horizontalLayout.setObjectName("horizontalLayout") self.verticalLayout_2 = QtWidgets.QVBoxLayout() self.verticalLayout_2.setObjectName("verticalLayout_2") self.gridLayout = QtWidgets.QGridLayout() self.gridLayout.setObjectName("gridLayout") self.lf_Hbar = FloatEdit(PCondType21) self.lf_Hbar.setMinimumSize(QtCore.QSize(70, 0)) self.lf_Hbar.setMaximumSize(QtCore.QSize(100, 20)) self.lf_Hbar.setObjectName("lf_Hbar") self.gridLayout.addWidget(self.lf_Hbar, 0, 1, 1, 1) self.in_Hbar = QtWidgets.QLabel(PCondType21) self.in_Hbar.setMinimumSize(QtCore.QSize(40, 0)) self.in_Hbar.setObjectName("in_Hbar") self.gridLayout.addWidget(self.in_Hbar, 0, 0, 1, 1) self.unit_Hbar = QtWidgets.QLabel(PCondType21) self.unit_Hbar.setMinimumSize(QtCore.QSize(0, 0)) self.unit_Hbar.setObjectName("unit_Hbar") self.gridLayout.addWidget(self.unit_Hbar, 0, 2, 1, 1) self.lf_Wbar = FloatEdit(PCondType21) self.lf_Wbar.setMinimumSize(QtCore.QSize(70, 0)) self.lf_Wbar.setMaximumSize(QtCore.QSize(100, 20)) self.lf_Wbar.setObjectName("lf_Wbar") self.gridLayout.addWidget(self.lf_Wbar, 1, 1, 1, 1) self.unit_Wbar = QtWidgets.QLabel(PCondType21) self.unit_Wbar.setMinimumSize(QtCore.QSize(0, 0)) self.unit_Wbar.setObjectName("unit_Wbar") self.gridLayout.addWidget(self.unit_Wbar, 1, 2, 1, 1) self.in_Wbar = QtWidgets.QLabel(PCondType21) self.in_Wbar.setMinimumSize(QtCore.QSize(40, 0)) self.in_Wbar.setObjectName("in_Wbar") self.gridLayout.addWidget(self.in_Wbar, 1, 0, 1, 1) self.verticalLayout_2.addLayout(self.gridLayout) self.w_mat = WMatSelect(PCondType21) self.w_mat.setObjectName("w_mat") self.verticalLayout_2.addWidget(self.w_mat) self.horizontalLayout.addLayout(self.verticalLayout_2) self.w_out = WBarOut(PCondType21) self.w_out.setObjectName("w_out") self.horizontalLayout.addWidget(self.w_out) self.retranslateUi(PCondType21) QtCore.QMetaObject.connectSlotsByName(PCondType21) PCondType21.setTabOrder(self.lf_Hbar, self.lf_Wbar)
class Ui_PHoleM57(object): def setupUi(self, PHoleM57): if not PHoleM57.objectName(): PHoleM57.setObjectName(u"PHoleM57") PHoleM57.resize(700, 470) PHoleM57.setMinimumSize(QSize(700, 470)) PHoleM57.setMaximumSize(QSize(16777215, 16777215)) self.horizontalLayout = QHBoxLayout(PHoleM57) self.horizontalLayout.setObjectName(u"horizontalLayout") self.verticalLayout_3 = QVBoxLayout() self.verticalLayout_3.setObjectName(u"verticalLayout_3") self.img_slot = QLabel(PHoleM57) self.img_slot.setObjectName(u"img_slot") sizePolicy = QSizePolicy(QSizePolicy.Expanding, QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.img_slot.sizePolicy().hasHeightForWidth()) self.img_slot.setSizePolicy(sizePolicy) self.img_slot.setMinimumSize(QSize(450, 120)) self.img_slot.setMaximumSize(QSize(450, 120)) self.img_slot.setPixmap( QPixmap(u":/images/images/MachineSetup/WSlot/Slot_57.PNG")) self.img_slot.setScaledContents(True) self.verticalLayout_3.addWidget(self.img_slot) self.verticalSpacer = QSpacerItem(20, 40, QSizePolicy.Minimum, QSizePolicy.Expanding) self.verticalLayout_3.addItem(self.verticalSpacer) self.horizontalLayout.addLayout(self.verticalLayout_3) self.verticalLayout_2 = QVBoxLayout() self.verticalLayout_2.setObjectName(u"verticalLayout_2") self.gridLayout = QGridLayout() self.gridLayout.setObjectName(u"gridLayout") self.lf_W3 = FloatEdit(PHoleM57) self.lf_W3.setObjectName(u"lf_W3") self.gridLayout.addWidget(self.lf_W3, 5, 1, 1, 1) self.lf_W0 = FloatEdit(PHoleM57) self.lf_W0.setObjectName(u"lf_W0") self.gridLayout.addWidget(self.lf_W0, 2, 1, 1, 1) self.in_W1 = QLabel(PHoleM57) self.in_W1.setObjectName(u"in_W1") self.gridLayout.addWidget(self.in_W1, 3, 0, 1, 1) self.lf_H2 = FloatEdit(PHoleM57) self.lf_H2.setObjectName(u"lf_H2") self.gridLayout.addWidget(self.lf_H2, 1, 1, 1, 1) self.unit_W1 = QLabel(PHoleM57) self.unit_W1.setObjectName(u"unit_W1") self.gridLayout.addWidget(self.unit_W1, 3, 2, 1, 1) self.lf_H1 = FloatEdit(PHoleM57) self.lf_H1.setObjectName(u"lf_H1") self.gridLayout.addWidget(self.lf_H1, 0, 1, 1, 1) self.unit_W2 = QLabel(PHoleM57) self.unit_W2.setObjectName(u"unit_W2") self.gridLayout.addWidget(self.unit_W2, 4, 2, 1, 1) self.in_W3 = QLabel(PHoleM57) self.in_W3.setObjectName(u"in_W3") self.gridLayout.addWidget(self.in_W3, 5, 0, 1, 1) self.unit_W4 = QLabel(PHoleM57) self.unit_W4.setObjectName(u"unit_W4") self.gridLayout.addWidget(self.unit_W4, 6, 2, 1, 1) self.lf_W4 = FloatEdit(PHoleM57) self.lf_W4.setObjectName(u"lf_W4") self.gridLayout.addWidget(self.lf_W4, 6, 1, 1, 1) self.unit_W0 = QLabel(PHoleM57) self.unit_W0.setObjectName(u"unit_W0") self.gridLayout.addWidget(self.unit_W0, 2, 2, 1, 1) self.in_W2 = QLabel(PHoleM57) self.in_W2.setObjectName(u"in_W2") self.gridLayout.addWidget(self.in_W2, 4, 0, 1, 1) self.in_W0 = QLabel(PHoleM57) self.in_W0.setObjectName(u"in_W0") self.gridLayout.addWidget(self.in_W0, 2, 0, 1, 1) self.in_W4 = QLabel(PHoleM57) self.in_W4.setObjectName(u"in_W4") self.gridLayout.addWidget(self.in_W4, 6, 0, 1, 1) self.unit_H1 = QLabel(PHoleM57) self.unit_H1.setObjectName(u"unit_H1") self.gridLayout.addWidget(self.unit_H1, 0, 2, 1, 1) self.in_H2 = QLabel(PHoleM57) self.in_H2.setObjectName(u"in_H2") self.gridLayout.addWidget(self.in_H2, 1, 0, 1, 1) self.lf_W2 = FloatEdit(PHoleM57) self.lf_W2.setObjectName(u"lf_W2") self.gridLayout.addWidget(self.lf_W2, 4, 1, 1, 1) self.in_H1 = QLabel(PHoleM57) self.in_H1.setObjectName(u"in_H1") self.gridLayout.addWidget(self.in_H1, 0, 0, 1, 1) self.unit_W3 = QLabel(PHoleM57) self.unit_W3.setObjectName(u"unit_W3") self.gridLayout.addWidget(self.unit_W3, 5, 2, 1, 1) self.lf_W1 = FloatEdit(PHoleM57) self.lf_W1.setObjectName(u"lf_W1") self.gridLayout.addWidget(self.lf_W1, 3, 1, 1, 1) self.unit_H2 = QLabel(PHoleM57) self.unit_H2.setObjectName(u"unit_H2") self.gridLayout.addWidget(self.unit_H2, 1, 2, 1, 1) self.verticalLayout_2.addLayout(self.gridLayout) self.w_mat_0 = WMatSelect(PHoleM57) self.w_mat_0.setObjectName(u"w_mat_0") self.w_mat_0.setMinimumSize(QSize(100, 0)) self.verticalLayout_2.addWidget(self.w_mat_0) self.w_mat_1 = WMatSelect(PHoleM57) self.w_mat_1.setObjectName(u"w_mat_1") self.w_mat_1.setMinimumSize(QSize(100, 0)) self.verticalLayout_2.addWidget(self.w_mat_1) self.w_mat_2 = WMatSelect(PHoleM57) self.w_mat_2.setObjectName(u"w_mat_2") self.w_mat_2.setMinimumSize(QSize(100, 0)) self.verticalLayout_2.addWidget(self.w_mat_2) self.g_output = QGroupBox(PHoleM57) self.g_output.setObjectName(u"g_output") self.g_output.setMinimumSize(QSize(200, 0)) self.verticalLayout = QVBoxLayout(self.g_output) self.verticalLayout.setObjectName(u"verticalLayout") self.out_slot_surface = QLabel(self.g_output) self.out_slot_surface.setObjectName(u"out_slot_surface") self.verticalLayout.addWidget(self.out_slot_surface) self.out_magnet_surface = QLabel(self.g_output) self.out_magnet_surface.setObjectName(u"out_magnet_surface") self.verticalLayout.addWidget(self.out_magnet_surface) self.verticalSpacer_2 = QSpacerItem(20, 40, QSizePolicy.Minimum, QSizePolicy.Expanding) self.verticalLayout.addItem(self.verticalSpacer_2) self.verticalLayout_2.addWidget(self.g_output) self.horizontalLayout.addLayout(self.verticalLayout_2) QWidget.setTabOrder(self.lf_H1, self.lf_H2) QWidget.setTabOrder(self.lf_H2, self.lf_W0) QWidget.setTabOrder(self.lf_W0, self.lf_W1) QWidget.setTabOrder(self.lf_W1, self.lf_W2) QWidget.setTabOrder(self.lf_W2, self.lf_W3) QWidget.setTabOrder(self.lf_W3, self.lf_W4) self.retranslateUi(PHoleM57) QMetaObject.connectSlotsByName(PHoleM57) # setupUi def retranslateUi(self, PHoleM57): PHoleM57.setWindowTitle( QCoreApplication.translate("PHoleM57", u"Form", None)) self.img_slot.setText("") self.in_W1.setText( QCoreApplication.translate("PHoleM57", u"W1 :", None)) self.unit_W1.setText(QCoreApplication.translate( "PHoleM57", u"m", None)) self.unit_W2.setText(QCoreApplication.translate( "PHoleM57", u"m", None)) self.in_W3.setText( QCoreApplication.translate("PHoleM57", u"W3 :", None)) self.unit_W4.setText(QCoreApplication.translate( "PHoleM57", u"m", None)) self.lf_W4.setText("") self.unit_W0.setText( QCoreApplication.translate("PHoleM57", u"rad", None)) self.in_W2.setText( QCoreApplication.translate("PHoleM57", u"W2 :", None)) self.in_W0.setText( QCoreApplication.translate("PHoleM57", u"W0 :", None)) self.in_W4.setText( QCoreApplication.translate("PHoleM57", u"W4 :", None)) self.unit_H1.setText(QCoreApplication.translate( "PHoleM57", u"m", None)) self.in_H2.setText( QCoreApplication.translate("PHoleM57", u"H2 :", None)) self.in_H1.setText( QCoreApplication.translate("PHoleM57", u"H1 :", None)) self.unit_W3.setText(QCoreApplication.translate( "PHoleM57", u"m", None)) self.unit_H2.setText(QCoreApplication.translate( "PHoleM57", u"m", None)) self.g_output.setTitle( QCoreApplication.translate("PHoleM57", u"Output", None)) self.out_slot_surface.setText( QCoreApplication.translate("PHoleM57", u"Slot suface (2 part) : ?", None)) self.out_magnet_surface.setText( QCoreApplication.translate("PHoleM57", u"Single Magnet surface : ?", None))
def setupUi(self, PVentCirc): PVentCirc.setObjectName("PVentCirc") PVentCirc.resize(630, 470) PVentCirc.setMinimumSize(QtCore.QSize(630, 470)) PVentCirc.setMaximumSize(QtCore.QSize(16777215, 16777215)) self.horizontalLayout = QtWidgets.QHBoxLayout(PVentCirc) self.horizontalLayout.setObjectName("horizontalLayout") self.verticalLayout_2 = QtWidgets.QVBoxLayout() self.verticalLayout_2.setObjectName("verticalLayout_2") self.img_vent = QtWidgets.QLabel(PVentCirc) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.img_vent.sizePolicy().hasHeightForWidth()) self.img_vent.setSizePolicy(sizePolicy) self.img_vent.setMaximumSize(QtCore.QSize(16777215, 16777215)) self.img_vent.setText("") self.img_vent.setPixmap( QtGui.QPixmap( ":/images/images/MachineSetup/LamParam/CircVentDuct.png")) self.img_vent.setScaledContents(True) self.img_vent.setObjectName("img_vent") self.verticalLayout_2.addWidget(self.img_vent) self.horizontalLayout.addLayout(self.verticalLayout_2) self.verticalLayout = QtWidgets.QVBoxLayout() self.verticalLayout.setObjectName("verticalLayout") self.gridLayout = QtWidgets.QGridLayout() self.gridLayout.setObjectName("gridLayout") self.lf_D0 = FloatEdit(PVentCirc) self.lf_D0.setObjectName("lf_D0") self.gridLayout.addWidget(self.lf_D0, 2, 1, 1, 1) self.lf_Alpha0 = FloatEdit(PVentCirc) self.lf_Alpha0.setObjectName("lf_Alpha0") self.gridLayout.addWidget(self.lf_Alpha0, 3, 1, 1, 1) self.unit_D0 = QtWidgets.QLabel(PVentCirc) self.unit_D0.setObjectName("unit_D0") self.gridLayout.addWidget(self.unit_D0, 2, 2, 1, 1) self.in_Alpha0 = QtWidgets.QLabel(PVentCirc) self.in_Alpha0.setObjectName("in_Alpha0") self.gridLayout.addWidget(self.in_Alpha0, 3, 0, 1, 1) self.unit_Alpha0 = QtWidgets.QLabel(PVentCirc) self.unit_Alpha0.setObjectName("unit_Alpha0") self.gridLayout.addWidget(self.unit_Alpha0, 3, 2, 1, 1) self.unit_H0 = QtWidgets.QLabel(PVentCirc) self.unit_H0.setObjectName("unit_H0") self.gridLayout.addWidget(self.unit_H0, 1, 2, 1, 1) self.lf_H0 = FloatEdit(PVentCirc) self.lf_H0.setObjectName("lf_H0") self.gridLayout.addWidget(self.lf_H0, 1, 1, 1, 1) self.in_H0 = QtWidgets.QLabel(PVentCirc) self.in_H0.setObjectName("in_H0") self.gridLayout.addWidget(self.in_H0, 1, 0, 1, 1) self.in_D0 = QtWidgets.QLabel(PVentCirc) self.in_D0.setObjectName("in_D0") self.gridLayout.addWidget(self.in_D0, 2, 0, 1, 1) self.in_Zh = QtWidgets.QLabel(PVentCirc) self.in_Zh.setObjectName("in_Zh") self.gridLayout.addWidget(self.in_Zh, 0, 0, 1, 1) self.si_Zh = QtWidgets.QSpinBox(PVentCirc) self.si_Zh.setObjectName("si_Zh") self.gridLayout.addWidget(self.si_Zh, 0, 1, 1, 1) self.verticalLayout.addLayout(self.gridLayout) self.w_out = WVentOut(PVentCirc) self.w_out.setObjectName("w_out") self.verticalLayout.addWidget(self.w_out) self.horizontalLayout.addLayout(self.verticalLayout) self.retranslateUi(PVentCirc) QtCore.QMetaObject.connectSlotsByName(PVentCirc) PVentCirc.setTabOrder(self.lf_H0, self.lf_D0) PVentCirc.setTabOrder(self.lf_D0, self.lf_Alpha0)
def setupUi(self, PHoleM52): PHoleM52.setObjectName("PHoleM52") PHoleM52.resize(630, 470) PHoleM52.setMinimumSize(QtCore.QSize(630, 470)) PHoleM52.setMaximumSize(QtCore.QSize(16777215, 16777215)) self.horizontalLayout = QtWidgets.QHBoxLayout(PHoleM52) self.horizontalLayout.setObjectName("horizontalLayout") self.verticalLayout_3 = QtWidgets.QVBoxLayout() self.verticalLayout_3.setObjectName("verticalLayout_3") self.img_slot = QtWidgets.QLabel(PHoleM52) sizePolicy = QtWidgets.QSizePolicy( QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding ) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.img_slot.sizePolicy().hasHeightForWidth()) self.img_slot.setSizePolicy(sizePolicy) self.img_slot.setMinimumSize(QtCore.QSize(200, 0)) self.img_slot.setMaximumSize(QtCore.QSize(16777215, 16777215)) self.img_slot.setText("") self.img_slot.setPixmap( QtGui.QPixmap(":/images/images/MachineSetup/WSlot/Slot_52.PNG") ) self.img_slot.setScaledContents(True) self.img_slot.setObjectName("img_slot") self.verticalLayout_3.addWidget(self.img_slot) self.txt_constraint = QtWidgets.QTextEdit(PHoleM52) sizePolicy = QtWidgets.QSizePolicy( QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed ) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.txt_constraint.sizePolicy().hasHeightForWidth() ) self.txt_constraint.setSizePolicy(sizePolicy) self.txt_constraint.setMinimumSize(QtCore.QSize(200, 0)) self.txt_constraint.setMaximumSize(QtCore.QSize(16777215, 60)) self.txt_constraint.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff) self.txt_constraint.setTextInteractionFlags( QtCore.Qt.TextSelectableByKeyboard | QtCore.Qt.TextSelectableByMouse ) self.txt_constraint.setObjectName("txt_constraint") self.verticalLayout_3.addWidget(self.txt_constraint) self.horizontalLayout.addLayout(self.verticalLayout_3) self.verticalLayout_2 = QtWidgets.QVBoxLayout() self.verticalLayout_2.setObjectName("verticalLayout_2") self.gridLayout = QtWidgets.QGridLayout() self.gridLayout.setObjectName("gridLayout") self.in_W3 = QtWidgets.QLabel(PHoleM52) self.in_W3.setObjectName("in_W3") self.gridLayout.addWidget(self.in_W3, 4, 0, 1, 1) self.lf_W3 = FloatEdit(PHoleM52) self.lf_W3.setObjectName("lf_W3") self.gridLayout.addWidget(self.lf_W3, 4, 1, 1, 1) self.unit_W3 = QtWidgets.QLabel(PHoleM52) self.unit_W3.setObjectName("unit_W3") self.gridLayout.addWidget(self.unit_W3, 4, 2, 1, 1) self.lf_H0 = FloatEdit(PHoleM52) self.lf_H0.setObjectName("lf_H0") self.gridLayout.addWidget(self.lf_H0, 0, 1, 1, 1) self.in_H0 = QtWidgets.QLabel(PHoleM52) self.in_H0.setObjectName("in_H0") self.gridLayout.addWidget(self.in_H0, 0, 0, 1, 1) self.unit_H1 = QtWidgets.QLabel(PHoleM52) self.unit_H1.setObjectName("unit_H1") self.gridLayout.addWidget(self.unit_H1, 1, 2, 1, 1) self.lf_H1 = FloatEdit(PHoleM52) self.lf_H1.setObjectName("lf_H1") self.gridLayout.addWidget(self.lf_H1, 1, 1, 1, 1) self.in_H1 = QtWidgets.QLabel(PHoleM52) self.in_H1.setObjectName("in_H1") self.gridLayout.addWidget(self.in_H1, 1, 0, 1, 1) self.unit_H0 = QtWidgets.QLabel(PHoleM52) self.unit_H0.setObjectName("unit_H0") self.gridLayout.addWidget(self.unit_H0, 0, 2, 1, 1) self.in_H2 = QtWidgets.QLabel(PHoleM52) self.in_H2.setObjectName("in_H2") self.gridLayout.addWidget(self.in_H2, 2, 0, 1, 1) self.lf_H2 = FloatEdit(PHoleM52) self.lf_H2.setObjectName("lf_H2") self.gridLayout.addWidget(self.lf_H2, 2, 1, 1, 1) self.unit_H2 = QtWidgets.QLabel(PHoleM52) self.unit_H2.setObjectName("unit_H2") self.gridLayout.addWidget(self.unit_H2, 2, 2, 1, 1) self.in_W0 = QtWidgets.QLabel(PHoleM52) self.in_W0.setObjectName("in_W0") self.gridLayout.addWidget(self.in_W0, 3, 0, 1, 1) self.lf_W0 = FloatEdit(PHoleM52) self.lf_W0.setObjectName("lf_W0") self.gridLayout.addWidget(self.lf_W0, 3, 1, 1, 1) self.unit_W0 = QtWidgets.QLabel(PHoleM52) self.unit_W0.setObjectName("unit_W0") self.gridLayout.addWidget(self.unit_W0, 3, 2, 1, 1) self.verticalLayout_2.addLayout(self.gridLayout) self.g_output = QtWidgets.QGroupBox(PHoleM52) self.g_output.setMinimumSize(QtCore.QSize(200, 0)) self.g_output.setObjectName("g_output") self.verticalLayout = QtWidgets.QVBoxLayout(self.g_output) self.verticalLayout.setObjectName("verticalLayout") self.out_slot_surface = QtWidgets.QLabel(self.g_output) self.out_slot_surface.setObjectName("out_slot_surface") self.verticalLayout.addWidget(self.out_slot_surface) self.out_magnet_surface = QtWidgets.QLabel(self.g_output) self.out_magnet_surface.setObjectName("out_magnet_surface") self.verticalLayout.addWidget(self.out_magnet_surface) self.out_alpha = QtWidgets.QLabel(self.g_output) self.out_alpha.setObjectName("out_alpha") self.verticalLayout.addWidget(self.out_alpha) self.out_W1 = QtWidgets.QLabel(self.g_output) self.out_W1.setObjectName("out_W1") self.verticalLayout.addWidget(self.out_W1) self.verticalLayout_2.addWidget(self.g_output) self.horizontalLayout.addLayout(self.verticalLayout_2) self.retranslateUi(PHoleM52) QtCore.QMetaObject.connectSlotsByName(PHoleM52) PHoleM52.setTabOrder(self.lf_H0, self.lf_H1) PHoleM52.setTabOrder(self.lf_H1, self.lf_H2) PHoleM52.setTabOrder(self.lf_H2, self.lf_W0) PHoleM52.setTabOrder(self.lf_W0, self.lf_W3) PHoleM52.setTabOrder(self.lf_W3, self.txt_constraint)
def setupUi(self, SLamParam): SLamParam.setObjectName("SLamParam") SLamParam.resize(650, 550) SLamParam.setMinimumSize(QtCore.QSize(650, 550)) self.main_layout = QtWidgets.QVBoxLayout(SLamParam) self.main_layout.setObjectName("main_layout") self.horizontalLayout = QtWidgets.QHBoxLayout() self.horizontalLayout.setObjectName("horizontalLayout") self.in_L1 = QtWidgets.QLabel(SLamParam) self.in_L1.setObjectName("in_L1") self.horizontalLayout.addWidget(self.in_L1) self.lf_L1 = FloatEdit(SLamParam) self.lf_L1.setMaximumSize(QtCore.QSize(100, 16777215)) self.lf_L1.setObjectName("lf_L1") self.horizontalLayout.addWidget(self.lf_L1) self.unit_L1 = QtWidgets.QLabel(SLamParam) self.unit_L1.setObjectName("unit_L1") self.horizontalLayout.addWidget(self.unit_L1) spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout.addItem(spacerItem) self.main_layout.addLayout(self.horizontalLayout) self.horizontalLayout_2 = QtWidgets.QHBoxLayout() self.horizontalLayout_2.setObjectName("horizontalLayout_2") self.in_Kf1 = QtWidgets.QLabel(SLamParam) self.in_Kf1.setObjectName("in_Kf1") self.horizontalLayout_2.addWidget(self.in_Kf1) self.lf_Kf1 = FloatEdit(SLamParam) self.lf_Kf1.setMaximumSize(QtCore.QSize(100, 25)) self.lf_Kf1.setObjectName("lf_Kf1") self.horizontalLayout_2.addWidget(self.lf_Kf1) self.w_mat = WMatSelect(SLamParam) self.w_mat.setMinimumSize(QtCore.QSize(100, 0)) self.w_mat.setObjectName("w_mat") self.horizontalLayout_2.addWidget(self.w_mat) spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_2.addItem(spacerItem1) self.main_layout.addLayout(self.horizontalLayout_2) self.horizontalLayout_3 = QtWidgets.QHBoxLayout() self.horizontalLayout_3.setObjectName("horizontalLayout_3") self.g_ax_vent = QtWidgets.QGroupBox(SLamParam) self.g_ax_vent.setMinimumSize(QtCore.QSize(300, 300)) self.g_ax_vent.setCheckable(True) self.g_ax_vent.setChecked(False) self.g_ax_vent.setObjectName("g_ax_vent") self.verticalLayout_3 = QtWidgets.QVBoxLayout(self.g_ax_vent) self.verticalLayout_3.setObjectName("verticalLayout_3") self.label = QtWidgets.QLabel(self.g_ax_vent) self.label.setText("") self.label.setPixmap( QtGui.QPixmap( ":/images/images/MachineSetup/LamParam/CircVentDuct.png")) self.label.setScaledContents(True) self.label.setObjectName("label") self.verticalLayout_3.addWidget(self.label) self.horizontalLayout_5 = QtWidgets.QHBoxLayout() self.horizontalLayout_5.setObjectName("horizontalLayout_5") self.out_axial_duct = QtWidgets.QLabel(self.g_ax_vent) self.out_axial_duct.setObjectName("out_axial_duct") self.horizontalLayout_5.addWidget(self.out_axial_duct) self.b_axial_duct = QtWidgets.QPushButton(self.g_ax_vent) self.b_axial_duct.setObjectName("b_axial_duct") self.horizontalLayout_5.addWidget(self.b_axial_duct) spacerItem2 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_5.addItem(spacerItem2) self.verticalLayout_3.addLayout(self.horizontalLayout_5) self.horizontalLayout_3.addWidget(self.g_ax_vent) self.g_rad_vent = QtWidgets.QGroupBox(SLamParam) self.g_rad_vent.setMinimumSize(QtCore.QSize(0, 300)) self.g_rad_vent.setFlat(False) self.g_rad_vent.setCheckable(True) self.g_rad_vent.setChecked(False) self.g_rad_vent.setObjectName("g_rad_vent") self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.g_rad_vent) self.verticalLayout_2.setObjectName("verticalLayout_2") self.img_rad_duct = QtWidgets.QLabel(self.g_rad_vent) self.img_rad_duct.setMinimumSize(QtCore.QSize(300, 0)) self.img_rad_duct.setText("") self.img_rad_duct.setPixmap( QtGui.QPixmap( ":/images/images/MachineSetup/LamParam/RadVentDuct.png")) self.img_rad_duct.setScaledContents(True) self.img_rad_duct.setObjectName("img_rad_duct") self.verticalLayout_2.addWidget(self.img_rad_duct) self.horizontalLayout_4 = QtWidgets.QHBoxLayout() self.horizontalLayout_4.setObjectName("horizontalLayout_4") self.in_Nrvd = QtWidgets.QLabel(self.g_rad_vent) self.in_Nrvd.setObjectName("in_Nrvd") self.horizontalLayout_4.addWidget(self.in_Nrvd) self.si_Nrvd = QtWidgets.QSpinBox(self.g_rad_vent) self.si_Nrvd.setMaximum(999) self.si_Nrvd.setProperty("value", 0) self.si_Nrvd.setObjectName("si_Nrvd") self.horizontalLayout_4.addWidget(self.si_Nrvd) self.in_Wrvd = QtWidgets.QLabel(self.g_rad_vent) self.in_Wrvd.setObjectName("in_Wrvd") self.horizontalLayout_4.addWidget(self.in_Wrvd) self.lf_Wrvd = FloatEdit(self.g_rad_vent) self.lf_Wrvd.setMaximumSize(QtCore.QSize(100, 16777215)) self.lf_Wrvd.setObjectName("lf_Wrvd") self.horizontalLayout_4.addWidget(self.lf_Wrvd) self.unit_Wrvd = QtWidgets.QLabel(self.g_rad_vent) self.unit_Wrvd.setObjectName("unit_Wrvd") self.horizontalLayout_4.addWidget(self.unit_Wrvd) spacerItem3 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_4.addItem(spacerItem3) self.verticalLayout_2.addLayout(self.horizontalLayout_4) self.out_length = QtWidgets.QLabel(self.g_rad_vent) self.out_length.setMinimumSize(QtCore.QSize(250, 0)) self.out_length.setMaximumSize(QtCore.QSize(300, 16777215)) self.out_length.setObjectName("out_length") self.verticalLayout_2.addWidget(self.out_length) self.horizontalLayout_3.addWidget(self.g_rad_vent) self.main_layout.addLayout(self.horizontalLayout_3) self.horizontalLayout_6 = QtWidgets.QHBoxLayout() self.horizontalLayout_6.setObjectName("horizontalLayout_6") spacerItem4 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_6.addItem(spacerItem4) self.b_plot = QtWidgets.QPushButton(SLamParam) self.b_plot.setObjectName("b_plot") self.horizontalLayout_6.addWidget(self.b_plot) self.b_previous = QtWidgets.QPushButton(SLamParam) self.b_previous.setObjectName("b_previous") self.horizontalLayout_6.addWidget(self.b_previous) self.b_next = QtWidgets.QPushButton(SLamParam) self.b_next.setObjectName("b_next") self.horizontalLayout_6.addWidget(self.b_next) self.main_layout.addLayout(self.horizontalLayout_6) self.retranslateUi(SLamParam) QtCore.QMetaObject.connectSlotsByName(SLamParam) SLamParam.setTabOrder(self.lf_L1, self.lf_Kf1) SLamParam.setTabOrder(self.lf_Kf1, self.b_next) SLamParam.setTabOrder(self.b_next, self.si_Nrvd) SLamParam.setTabOrder(self.si_Nrvd, self.lf_Wrvd)
class Ui_PMagnet13(object): def setupUi(self, PMagnet13): PMagnet13.setObjectName("PMagnet13") PMagnet13.resize(531, 232) PMagnet13.setMinimumSize(QtCore.QSize(0, 0)) self.horizontalLayout = QtWidgets.QHBoxLayout(PMagnet13) self.horizontalLayout.setObjectName("horizontalLayout") self.img_magnet = QtWidgets.QLabel(PMagnet13) self.img_magnet.setMinimumSize(QtCore.QSize(300, 200)) self.img_magnet.setMaximumSize(QtCore.QSize(550, 350)) self.img_magnet.setText("") self.img_magnet.setPixmap( QtGui.QPixmap( ":/images/images/MachineSetup/P_Magnet/Surface Magnet type 13.PNG" ) ) self.img_magnet.setScaledContents(True) self.img_magnet.setObjectName("img_magnet") self.horizontalLayout.addWidget(self.img_magnet) self.verticalLayout = QtWidgets.QVBoxLayout() self.verticalLayout.setObjectName("verticalLayout") self.gridLayout = QtWidgets.QGridLayout() self.gridLayout.setObjectName("gridLayout") self.in_Wmag = QtWidgets.QLabel(PMagnet13) self.in_Wmag.setObjectName("in_Wmag") self.gridLayout.addWidget(self.in_Wmag, 0, 0, 1, 1) self.lf_Wmag = FloatEdit(PMagnet13) self.lf_Wmag.setMinimumSize(QtCore.QSize(100, 0)) self.lf_Wmag.setMaximumSize(QtCore.QSize(100, 16777215)) self.lf_Wmag.setObjectName("lf_Wmag") self.gridLayout.addWidget(self.lf_Wmag, 0, 1, 1, 1) self.unit_Wmag = QtWidgets.QLabel(PMagnet13) self.unit_Wmag.setObjectName("unit_Wmag") self.gridLayout.addWidget(self.unit_Wmag, 0, 2, 1, 1) self.in_Hmag = QtWidgets.QLabel(PMagnet13) self.in_Hmag.setObjectName("in_Hmag") self.gridLayout.addWidget(self.in_Hmag, 1, 0, 1, 1) self.lf_Hmag = FloatEdit(PMagnet13) self.lf_Hmag.setMinimumSize(QtCore.QSize(100, 0)) self.lf_Hmag.setMaximumSize(QtCore.QSize(100, 16777215)) self.lf_Hmag.setObjectName("lf_Hmag") self.gridLayout.addWidget(self.lf_Hmag, 1, 1, 1, 1) self.unit_Hmag = QtWidgets.QLabel(PMagnet13) self.unit_Hmag.setObjectName("unit_Hmag") self.gridLayout.addWidget(self.unit_Hmag, 1, 2, 1, 1) self.in_Rtopm = QtWidgets.QLabel(PMagnet13) self.in_Rtopm.setObjectName("in_Rtopm") self.gridLayout.addWidget(self.in_Rtopm, 2, 0, 1, 1) self.lf_Rtopm = FloatEdit(PMagnet13) self.lf_Rtopm.setMinimumSize(QtCore.QSize(100, 0)) self.lf_Rtopm.setMaximumSize(QtCore.QSize(100, 16777215)) self.lf_Rtopm.setObjectName("lf_Rtopm") self.gridLayout.addWidget(self.lf_Rtopm, 2, 1, 1, 1) self.unit_Rtopm = QtWidgets.QLabel(PMagnet13) self.unit_Rtopm.setObjectName("unit_Rtopm") self.gridLayout.addWidget(self.unit_Rtopm, 2, 2, 1, 1) self.in_H0 = QtWidgets.QLabel(PMagnet13) self.in_H0.setObjectName("in_H0") self.gridLayout.addWidget(self.in_H0, 3, 0, 1, 1) self.lf_H0 = FloatEdit(PMagnet13) self.lf_H0.setMinimumSize(QtCore.QSize(100, 0)) self.lf_H0.setMaximumSize(QtCore.QSize(100, 16777215)) self.lf_H0.setObjectName("lf_H0") self.gridLayout.addWidget(self.lf_H0, 3, 1, 1, 1) self.unit_H0 = QtWidgets.QLabel(PMagnet13) self.unit_H0.setObjectName("unit_H0") self.gridLayout.addWidget(self.unit_H0, 3, 2, 1, 1) self.verticalLayout.addLayout(self.gridLayout) self.w_out = WMagnetOut(PMagnet13) self.w_out.setObjectName("w_out") self.verticalLayout.addWidget(self.w_out) spacerItem = QtWidgets.QSpacerItem( 17, 18, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding ) self.verticalLayout.addItem(spacerItem) self.horizontalLayout.addLayout(self.verticalLayout) self.retranslateUi(PMagnet13) QtCore.QMetaObject.connectSlotsByName(PMagnet13) PMagnet13.setTabOrder(self.lf_Wmag, self.lf_Hmag) PMagnet13.setTabOrder(self.lf_Hmag, self.lf_Rtopm) PMagnet13.setTabOrder(self.lf_Rtopm, self.lf_H0) def retranslateUi(self, PMagnet13): _translate = QtCore.QCoreApplication.translate PMagnet13.setWindowTitle(_translate("PMagnet13", "Form")) self.in_Wmag.setText(_translate("PMagnet13", "Wmag :")) self.unit_Wmag.setText(_translate("PMagnet13", "m")) self.in_Hmag.setText(_translate("PMagnet13", "Hmag :")) self.unit_Hmag.setText(_translate("PMagnet13", "m")) self.in_Rtopm.setText(_translate("PMagnet13", "Rtopm :")) self.unit_Rtopm.setText(_translate("PMagnet13", "m")) self.in_H0.setText(_translate("PMagnet13", "H0 :")) self.unit_H0.setText(_translate("PMagnet13", "m"))
class Ui_PWSlot25(object): def setupUi(self, PWSlot25): PWSlot25.setObjectName("PWSlot25") PWSlot25.resize(630, 470) PWSlot25.setMinimumSize(QtCore.QSize(630, 470)) PWSlot25.setMaximumSize(QtCore.QSize(16777215, 16777215)) self.horizontalLayout = QtWidgets.QHBoxLayout(PWSlot25) self.horizontalLayout.setObjectName("horizontalLayout") self.verticalLayout_2 = QtWidgets.QVBoxLayout() self.verticalLayout_2.setObjectName("verticalLayout_2") self.img_slot = QtWidgets.QLabel(PWSlot25) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.img_slot.sizePolicy().hasHeightForWidth()) self.img_slot.setSizePolicy(sizePolicy) self.img_slot.setMaximumSize(QtCore.QSize(16777215, 16777215)) self.img_slot.setText("") self.img_slot.setPixmap( QtGui.QPixmap(":/images/images/MachineSetup/WSlot/Slot_25.PNG")) self.img_slot.setScaledContents(True) self.img_slot.setObjectName("img_slot") self.verticalLayout_2.addWidget(self.img_slot) self.textEdit = QtWidgets.QTextEdit(PWSlot25) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.textEdit.sizePolicy().hasHeightForWidth()) self.textEdit.setSizePolicy(sizePolicy) self.textEdit.setMinimumSize(QtCore.QSize(0, 60)) self.textEdit.setMaximumSize(QtCore.QSize(16777215, 60)) self.textEdit.setObjectName("textEdit") self.verticalLayout_2.addWidget(self.textEdit) self.horizontalLayout.addLayout(self.verticalLayout_2) self.verticalLayout = QtWidgets.QVBoxLayout() self.verticalLayout.setObjectName("verticalLayout") self.gridLayout = QtWidgets.QGridLayout() self.gridLayout.setObjectName("gridLayout") self.in_W3 = QtWidgets.QLabel(PWSlot25) self.in_W3.setObjectName("in_W3") self.gridLayout.addWidget(self.in_W3, 0, 0, 1, 1) self.lf_W3 = FloatEdit(PWSlot25) self.lf_W3.setObjectName("lf_W3") self.gridLayout.addWidget(self.lf_W3, 0, 1, 1, 1) self.unit_W3 = QtWidgets.QLabel(PWSlot25) self.unit_W3.setObjectName("unit_W3") self.gridLayout.addWidget(self.unit_W3, 0, 2, 1, 1) self.in_W4 = QtWidgets.QLabel(PWSlot25) self.in_W4.setObjectName("in_W4") self.gridLayout.addWidget(self.in_W4, 1, 0, 1, 1) self.lf_W4 = FloatEdit(PWSlot25) self.lf_W4.setObjectName("lf_W4") self.gridLayout.addWidget(self.lf_W4, 1, 1, 1, 1) self.unit_W4 = QtWidgets.QLabel(PWSlot25) self.unit_W4.setObjectName("unit_W4") self.gridLayout.addWidget(self.unit_W4, 1, 2, 1, 1) self.in_H1 = QtWidgets.QLabel(PWSlot25) self.in_H1.setObjectName("in_H1") self.gridLayout.addWidget(self.in_H1, 2, 0, 1, 1) self.lf_H1 = FloatEdit(PWSlot25) self.lf_H1.setObjectName("lf_H1") self.gridLayout.addWidget(self.lf_H1, 2, 1, 1, 1) self.unit_H1 = QtWidgets.QLabel(PWSlot25) self.unit_H1.setObjectName("unit_H1") self.gridLayout.addWidget(self.unit_H1, 2, 2, 1, 1) self.in_H2 = QtWidgets.QLabel(PWSlot25) self.in_H2.setObjectName("in_H2") self.gridLayout.addWidget(self.in_H2, 3, 0, 1, 1) self.lf_H2 = FloatEdit(PWSlot25) self.lf_H2.setObjectName("lf_H2") self.gridLayout.addWidget(self.lf_H2, 3, 1, 1, 1) self.unit_H2 = QtWidgets.QLabel(PWSlot25) self.unit_H2.setObjectName("unit_H2") self.gridLayout.addWidget(self.unit_H2, 3, 2, 1, 1) self.verticalLayout.addLayout(self.gridLayout) self.w_out = WWSlotOut(PWSlot25) self.w_out.setObjectName("w_out") self.verticalLayout.addWidget(self.w_out) self.horizontalLayout.addLayout(self.verticalLayout) self.retranslateUi(PWSlot25) QtCore.QMetaObject.connectSlotsByName(PWSlot25) def retranslateUi(self, PWSlot25): _translate = QtCore.QCoreApplication.translate PWSlot25.setWindowTitle(_translate("PWSlot25", "Form")) self.textEdit.setHtml( _translate( "PWSlot25", '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">\n' '<html><head><meta name="qrichtext" content="1" /><style type="text/css">\n' "p, li { white-space: pre-wrap; }\n" "</style></head><body style=\" font-family:'MS Shell Dlg 2'; font-size:7.8pt; font-weight:400; font-style:normal;\">\n" '<p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:14pt;">Constant tooth width</span></p>\n' '<p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:14pt;">Slot edges are not radial</span></p></body></html>', )) self.in_W3.setText(_translate("PWSlot25", "W3 :")) self.unit_W3.setText(_translate("PWSlot25", "m")) self.in_W4.setText(_translate("PWSlot25", "W4 :")) self.unit_W4.setText(_translate("PWSlot25", "m")) self.in_H1.setText(_translate("PWSlot25", "H1 :")) self.unit_H1.setText(_translate("PWSlot25", "m")) self.in_H2.setText(_translate("PWSlot25", "H2 :")) self.unit_H2.setText(_translate("PWSlot25", "m"))
def setupUi(self, PWSlot26): PWSlot26.setObjectName("PWSlot26") PWSlot26.resize(630, 470) PWSlot26.setMinimumSize(QtCore.QSize(630, 470)) PWSlot26.setMaximumSize(QtCore.QSize(16777215, 16777215)) self.horizontalLayout = QtWidgets.QHBoxLayout(PWSlot26) self.horizontalLayout.setObjectName("horizontalLayout") self.verticalLayout_2 = QtWidgets.QVBoxLayout() self.verticalLayout_2.setObjectName("verticalLayout_2") self.img_slot = QtWidgets.QLabel(PWSlot26) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.img_slot.sizePolicy().hasHeightForWidth()) self.img_slot.setSizePolicy(sizePolicy) self.img_slot.setMaximumSize(QtCore.QSize(16777215, 16777215)) self.img_slot.setText("") self.img_slot.setPixmap( QtGui.QPixmap(":/images/images/MachineSetup/WSlot/Slot 26.PNG")) self.img_slot.setScaledContents(True) self.img_slot.setObjectName("img_slot") self.verticalLayout_2.addWidget(self.img_slot) self.txt_constraint = QtWidgets.QTextEdit(PWSlot26) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.txt_constraint.sizePolicy().hasHeightForWidth()) self.txt_constraint.setSizePolicy(sizePolicy) self.txt_constraint.setMaximumSize(QtCore.QSize(16777215, 50)) self.txt_constraint.setVerticalScrollBarPolicy( QtCore.Qt.ScrollBarAlwaysOff) self.txt_constraint.setTextInteractionFlags( QtCore.Qt.TextSelectableByKeyboard | QtCore.Qt.TextSelectableByMouse) self.txt_constraint.setObjectName("txt_constraint") self.verticalLayout_2.addWidget(self.txt_constraint) self.horizontalLayout.addLayout(self.verticalLayout_2) self.verticalLayout = QtWidgets.QVBoxLayout() self.verticalLayout.setObjectName("verticalLayout") self.gridLayout = QtWidgets.QGridLayout() self.gridLayout.setObjectName("gridLayout") self.in_W0 = QtWidgets.QLabel(PWSlot26) self.in_W0.setObjectName("in_W0") self.gridLayout.addWidget(self.in_W0, 0, 0, 1, 1) self.lf_W0 = FloatEdit(PWSlot26) self.lf_W0.setObjectName("lf_W0") self.gridLayout.addWidget(self.lf_W0, 0, 1, 1, 1) self.unit_W0 = QtWidgets.QLabel(PWSlot26) self.unit_W0.setObjectName("unit_W0") self.gridLayout.addWidget(self.unit_W0, 0, 2, 1, 1) self.in_H0 = QtWidgets.QLabel(PWSlot26) self.in_H0.setObjectName("in_H0") self.gridLayout.addWidget(self.in_H0, 1, 0, 1, 1) self.lf_H0 = FloatEdit(PWSlot26) self.lf_H0.setObjectName("lf_H0") self.gridLayout.addWidget(self.lf_H0, 1, 1, 1, 1) self.unit_H0 = QtWidgets.QLabel(PWSlot26) self.unit_H0.setObjectName("unit_H0") self.gridLayout.addWidget(self.unit_H0, 1, 2, 1, 1) self.in_H1 = QtWidgets.QLabel(PWSlot26) self.in_H1.setObjectName("in_H1") self.gridLayout.addWidget(self.in_H1, 2, 0, 1, 1) self.lf_H1 = FloatEdit(PWSlot26) self.lf_H1.setObjectName("lf_H1") self.gridLayout.addWidget(self.lf_H1, 2, 1, 1, 1) self.unit_H1 = QtWidgets.QLabel(PWSlot26) self.unit_H1.setObjectName("unit_H1") self.gridLayout.addWidget(self.unit_H1, 2, 2, 1, 1) self.in_R1 = QtWidgets.QLabel(PWSlot26) self.in_R1.setObjectName("in_R1") self.gridLayout.addWidget(self.in_R1, 3, 0, 1, 1) self.lf_R1 = FloatEdit(PWSlot26) self.lf_R1.setObjectName("lf_R1") self.gridLayout.addWidget(self.lf_R1, 3, 1, 1, 1) self.unit_R1 = QtWidgets.QLabel(PWSlot26) self.unit_R1.setObjectName("unit_R1") self.gridLayout.addWidget(self.unit_R1, 3, 2, 1, 1) self.in_R2 = QtWidgets.QLabel(PWSlot26) self.in_R2.setObjectName("in_R2") self.gridLayout.addWidget(self.in_R2, 4, 0, 1, 1) self.lf_R2 = FloatEdit(PWSlot26) self.lf_R2.setText("") self.lf_R2.setObjectName("lf_R2") self.gridLayout.addWidget(self.lf_R2, 4, 1, 1, 1) self.unit_R2 = QtWidgets.QLabel(PWSlot26) self.unit_R2.setObjectName("unit_R2") self.gridLayout.addWidget(self.unit_R2, 4, 2, 1, 1) self.verticalLayout.addLayout(self.gridLayout) self.w_out = WWSlotOut(PWSlot26) self.w_out.setObjectName("w_out") self.verticalLayout.addWidget(self.w_out) self.horizontalLayout.addLayout(self.verticalLayout) self.retranslateUi(PWSlot26) QtCore.QMetaObject.connectSlotsByName(PWSlot26) PWSlot26.setTabOrder(self.lf_W0, self.lf_H0) PWSlot26.setTabOrder(self.lf_H0, self.lf_H1) PWSlot26.setTabOrder(self.lf_H1, self.lf_R1) PWSlot26.setTabOrder(self.lf_R1, self.txt_constraint)
class Ui_PWSlot14(object): def setupUi(self, PWSlot14): PWSlot14.setObjectName("PWSlot14") PWSlot14.resize(630, 470) PWSlot14.setMinimumSize(QtCore.QSize(630, 470)) PWSlot14.setMaximumSize(QtCore.QSize(16777215, 16777215)) self.horizontalLayout = QtWidgets.QHBoxLayout(PWSlot14) self.horizontalLayout.setObjectName("horizontalLayout") self.verticalLayout_2 = QtWidgets.QVBoxLayout() self.verticalLayout_2.setObjectName("verticalLayout_2") self.img_slot = QtWidgets.QLabel(PWSlot14) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.img_slot.sizePolicy().hasHeightForWidth()) self.img_slot.setSizePolicy(sizePolicy) self.img_slot.setMaximumSize(QtCore.QSize(16777215, 16777215)) self.img_slot.setText("") self.img_slot.setPixmap( QtGui.QPixmap(":/images/images/MachineSetup/WSlot/Slot 14.PNG")) self.img_slot.setScaledContents(True) self.img_slot.setObjectName("img_slot") self.verticalLayout_2.addWidget(self.img_slot) self.horizontalLayout.addLayout(self.verticalLayout_2) self.verticalLayout = QtWidgets.QVBoxLayout() self.verticalLayout.setObjectName("verticalLayout") self.gridLayout = QtWidgets.QGridLayout() self.gridLayout.setObjectName("gridLayout") self.in_W0 = QtWidgets.QLabel(PWSlot14) self.in_W0.setObjectName("in_W0") self.gridLayout.addWidget(self.in_W0, 0, 0, 1, 1) self.lf_W0 = FloatEdit(PWSlot14) self.lf_W0.setObjectName("lf_W0") self.gridLayout.addWidget(self.lf_W0, 0, 1, 1, 1) self.unit_W0 = QtWidgets.QLabel(PWSlot14) self.unit_W0.setObjectName("unit_W0") self.gridLayout.addWidget(self.unit_W0, 0, 2, 1, 1) self.in_W3 = QtWidgets.QLabel(PWSlot14) self.in_W3.setObjectName("in_W3") self.gridLayout.addWidget(self.in_W3, 1, 0, 1, 1) self.lf_W3 = FloatEdit(PWSlot14) self.lf_W3.setObjectName("lf_W3") self.gridLayout.addWidget(self.lf_W3, 1, 1, 1, 1) self.unit_W3 = QtWidgets.QLabel(PWSlot14) self.unit_W3.setObjectName("unit_W3") self.gridLayout.addWidget(self.unit_W3, 1, 2, 1, 1) self.in_H0 = QtWidgets.QLabel(PWSlot14) self.in_H0.setObjectName("in_H0") self.gridLayout.addWidget(self.in_H0, 2, 0, 1, 1) self.lf_H0 = FloatEdit(PWSlot14) self.lf_H0.setObjectName("lf_H0") self.gridLayout.addWidget(self.lf_H0, 2, 1, 1, 1) self.unit_H0 = QtWidgets.QLabel(PWSlot14) self.unit_H0.setObjectName("unit_H0") self.gridLayout.addWidget(self.unit_H0, 2, 2, 1, 1) self.in_H1 = QtWidgets.QLabel(PWSlot14) self.in_H1.setObjectName("in_H1") self.gridLayout.addWidget(self.in_H1, 3, 0, 1, 1) self.lf_H1 = FloatEdit(PWSlot14) self.lf_H1.setObjectName("lf_H1") self.gridLayout.addWidget(self.lf_H1, 3, 1, 1, 1) self.unit_H1 = QtWidgets.QLabel(PWSlot14) self.unit_H1.setObjectName("unit_H1") self.gridLayout.addWidget(self.unit_H1, 3, 2, 1, 1) self.in_H3 = QtWidgets.QLabel(PWSlot14) self.in_H3.setObjectName("in_H3") self.gridLayout.addWidget(self.in_H3, 4, 0, 1, 1) self.lf_H3 = FloatEdit(PWSlot14) self.lf_H3.setObjectName("lf_H3") self.gridLayout.addWidget(self.lf_H3, 4, 1, 1, 1) self.unit_H3 = QtWidgets.QLabel(PWSlot14) self.unit_H3.setObjectName("unit_H3") self.gridLayout.addWidget(self.unit_H3, 4, 2, 1, 1) self.verticalLayout.addLayout(self.gridLayout) self.w_out = WWSlotOut(PWSlot14) self.w_out.setObjectName("w_out") self.verticalLayout.addWidget(self.w_out) self.horizontalLayout.addLayout(self.verticalLayout) self.retranslateUi(PWSlot14) QtCore.QMetaObject.connectSlotsByName(PWSlot14) PWSlot14.setTabOrder(self.lf_W0, self.lf_W3) PWSlot14.setTabOrder(self.lf_W3, self.lf_H0) PWSlot14.setTabOrder(self.lf_H0, self.lf_H1) PWSlot14.setTabOrder(self.lf_H1, self.lf_H3) def retranslateUi(self, PWSlot14): _translate = QtCore.QCoreApplication.translate PWSlot14.setWindowTitle(_translate("PWSlot14", "Form")) self.in_W0.setText(_translate("PWSlot14", "W0 :")) self.unit_W0.setText(_translate("PWSlot14", "m")) self.in_W3.setText(_translate("PWSlot14", "W3 :")) self.unit_W3.setText(_translate("PWSlot14", "m")) self.in_H0.setText(_translate("PWSlot14", "H0 :")) self.unit_H0.setText(_translate("PWSlot14", "m")) self.in_H1.setText(_translate("PWSlot14", "H1 :")) self.unit_H1.setText(_translate("PWSlot14", "m")) self.in_H3.setText(_translate("PWSlot14", "H3 :")) self.unit_H3.setText(_translate("PWSlot14", "m"))
def setupUi(self, PHoleM52): if not PHoleM52.objectName(): PHoleM52.setObjectName(u"PHoleM52") PHoleM52.resize(740, 440) PHoleM52.setMinimumSize(QSize(740, 440)) PHoleM52.setMaximumSize(QSize(16777215, 16777215)) self.horizontalLayout = QHBoxLayout(PHoleM52) self.horizontalLayout.setObjectName(u"horizontalLayout") self.verticalLayout_3 = QVBoxLayout() self.verticalLayout_3.setObjectName(u"verticalLayout_3") self.img_slot = QLabel(PHoleM52) self.img_slot.setObjectName(u"img_slot") sizePolicy = QSizePolicy(QSizePolicy.Fixed, QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.img_slot.sizePolicy().hasHeightForWidth()) self.img_slot.setSizePolicy(sizePolicy) self.img_slot.setMinimumSize(QSize(500, 213)) self.img_slot.setMaximumSize(QSize(500, 213)) self.img_slot.setPixmap( QPixmap(u":/images/images/MachineSetup/WSlot/Slot_52.PNG")) self.img_slot.setScaledContents(True) self.verticalLayout_3.addWidget(self.img_slot) self.txt_constraint = QTextEdit(PHoleM52) self.txt_constraint.setObjectName(u"txt_constraint") sizePolicy1 = QSizePolicy(QSizePolicy.Preferred, QSizePolicy.Fixed) sizePolicy1.setHorizontalStretch(0) sizePolicy1.setVerticalStretch(0) sizePolicy1.setHeightForWidth( self.txt_constraint.sizePolicy().hasHeightForWidth()) self.txt_constraint.setSizePolicy(sizePolicy1) self.txt_constraint.setMinimumSize(QSize(200, 0)) self.txt_constraint.setMaximumSize(QSize(16777215, 60)) self.txt_constraint.setVerticalScrollBarPolicy(Qt.ScrollBarAlwaysOff) self.txt_constraint.setTextInteractionFlags(Qt.TextSelectableByKeyboard | Qt.TextSelectableByMouse) self.verticalLayout_3.addWidget(self.txt_constraint) self.verticalSpacer_2 = QSpacerItem(20, 40, QSizePolicy.Minimum, QSizePolicy.Expanding) self.verticalLayout_3.addItem(self.verticalSpacer_2) self.horizontalLayout.addLayout(self.verticalLayout_3) self.verticalLayout_2 = QVBoxLayout() self.verticalLayout_2.setObjectName(u"verticalLayout_2") self.gridLayout = QGridLayout() self.gridLayout.setObjectName(u"gridLayout") self.in_W3 = QLabel(PHoleM52) self.in_W3.setObjectName(u"in_W3") self.gridLayout.addWidget(self.in_W3, 4, 0, 1, 1) self.lf_W3 = FloatEdit(PHoleM52) self.lf_W3.setObjectName(u"lf_W3") self.gridLayout.addWidget(self.lf_W3, 4, 1, 1, 1) self.unit_W3 = QLabel(PHoleM52) self.unit_W3.setObjectName(u"unit_W3") self.gridLayout.addWidget(self.unit_W3, 4, 2, 1, 1) self.lf_H0 = FloatEdit(PHoleM52) self.lf_H0.setObjectName(u"lf_H0") self.gridLayout.addWidget(self.lf_H0, 0, 1, 1, 1) self.in_H0 = QLabel(PHoleM52) self.in_H0.setObjectName(u"in_H0") self.gridLayout.addWidget(self.in_H0, 0, 0, 1, 1) self.unit_H1 = QLabel(PHoleM52) self.unit_H1.setObjectName(u"unit_H1") self.gridLayout.addWidget(self.unit_H1, 1, 2, 1, 1) self.lf_H1 = FloatEdit(PHoleM52) self.lf_H1.setObjectName(u"lf_H1") self.gridLayout.addWidget(self.lf_H1, 1, 1, 1, 1) self.in_H1 = QLabel(PHoleM52) self.in_H1.setObjectName(u"in_H1") self.gridLayout.addWidget(self.in_H1, 1, 0, 1, 1) self.unit_H0 = QLabel(PHoleM52) self.unit_H0.setObjectName(u"unit_H0") self.gridLayout.addWidget(self.unit_H0, 0, 2, 1, 1) self.in_H2 = QLabel(PHoleM52) self.in_H2.setObjectName(u"in_H2") self.gridLayout.addWidget(self.in_H2, 2, 0, 1, 1) self.lf_H2 = FloatEdit(PHoleM52) self.lf_H2.setObjectName(u"lf_H2") self.gridLayout.addWidget(self.lf_H2, 2, 1, 1, 1) self.unit_H2 = QLabel(PHoleM52) self.unit_H2.setObjectName(u"unit_H2") self.gridLayout.addWidget(self.unit_H2, 2, 2, 1, 1) self.in_W0 = QLabel(PHoleM52) self.in_W0.setObjectName(u"in_W0") self.gridLayout.addWidget(self.in_W0, 3, 0, 1, 1) self.lf_W0 = FloatEdit(PHoleM52) self.lf_W0.setObjectName(u"lf_W0") self.gridLayout.addWidget(self.lf_W0, 3, 1, 1, 1) self.unit_W0 = QLabel(PHoleM52) self.unit_W0.setObjectName(u"unit_W0") self.gridLayout.addWidget(self.unit_W0, 3, 2, 1, 1) self.verticalLayout_2.addLayout(self.gridLayout) self.w_mat_0 = WMatSelect(PHoleM52) self.w_mat_0.setObjectName(u"w_mat_0") self.w_mat_0.setMinimumSize(QSize(100, 0)) self.verticalLayout_2.addWidget(self.w_mat_0) self.w_mat_1 = WMatSelect(PHoleM52) self.w_mat_1.setObjectName(u"w_mat_1") self.w_mat_1.setMinimumSize(QSize(100, 0)) self.verticalLayout_2.addWidget(self.w_mat_1) self.g_output = QGroupBox(PHoleM52) self.g_output.setObjectName(u"g_output") self.g_output.setMinimumSize(QSize(200, 0)) self.verticalLayout = QVBoxLayout(self.g_output) self.verticalLayout.setObjectName(u"verticalLayout") self.out_slot_surface = QLabel(self.g_output) self.out_slot_surface.setObjectName(u"out_slot_surface") self.verticalLayout.addWidget(self.out_slot_surface) self.out_magnet_surface = QLabel(self.g_output) self.out_magnet_surface.setObjectName(u"out_magnet_surface") self.verticalLayout.addWidget(self.out_magnet_surface) self.out_alpha = QLabel(self.g_output) self.out_alpha.setObjectName(u"out_alpha") self.verticalLayout.addWidget(self.out_alpha) self.out_W1 = QLabel(self.g_output) self.out_W1.setObjectName(u"out_W1") self.verticalLayout.addWidget(self.out_W1) self.verticalSpacer = QSpacerItem(20, 40, QSizePolicy.Minimum, QSizePolicy.Expanding) self.verticalLayout.addItem(self.verticalSpacer) self.verticalLayout_2.addWidget(self.g_output) self.horizontalLayout.addLayout(self.verticalLayout_2) QWidget.setTabOrder(self.lf_H0, self.lf_H1) QWidget.setTabOrder(self.lf_H1, self.lf_H2) QWidget.setTabOrder(self.lf_H2, self.lf_W0) QWidget.setTabOrder(self.lf_W0, self.lf_W3) QWidget.setTabOrder(self.lf_W3, self.txt_constraint) self.retranslateUi(PHoleM52) QMetaObject.connectSlotsByName(PHoleM52)
def setupUi(self, PHoleM51): PHoleM51.setObjectName("PHoleM51") PHoleM51.resize(740, 440) PHoleM51.setMinimumSize(QtCore.QSize(740, 440)) PHoleM51.setMaximumSize(QtCore.QSize(16777215, 16777215)) self.horizontalLayout = QtWidgets.QHBoxLayout(PHoleM51) self.horizontalLayout.setObjectName("horizontalLayout") self.verticalLayout_3 = QtWidgets.QVBoxLayout() self.verticalLayout_3.setObjectName("verticalLayout_3") self.img_slot = QtWidgets.QLabel(PHoleM51) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.img_slot.sizePolicy().hasHeightForWidth()) self.img_slot.setSizePolicy(sizePolicy) self.img_slot.setMinimumSize(QtCore.QSize(500, 200)) self.img_slot.setMaximumSize(QtCore.QSize(500, 216)) self.img_slot.setAutoFillBackground(False) self.img_slot.setFrameShape(QtWidgets.QFrame.NoFrame) self.img_slot.setText("") self.img_slot.setPixmap( QtGui.QPixmap(":/images/images/MachineSetup/WSlot/Slot_51.PNG")) self.img_slot.setScaledContents(True) self.img_slot.setAlignment(QtCore.Qt.AlignLeading | QtCore.Qt.AlignLeft | QtCore.Qt.AlignVCenter) self.img_slot.setWordWrap(False) self.img_slot.setObjectName("img_slot") self.verticalLayout_3.addWidget(self.img_slot) self.txt_constraint = QtWidgets.QTextEdit(PHoleM51) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.txt_constraint.sizePolicy().hasHeightForWidth()) self.txt_constraint.setSizePolicy(sizePolicy) self.txt_constraint.setMinimumSize(QtCore.QSize(200, 0)) self.txt_constraint.setMaximumSize(QtCore.QSize(16777215, 60)) self.txt_constraint.setVerticalScrollBarPolicy( QtCore.Qt.ScrollBarAlwaysOff) self.txt_constraint.setTextInteractionFlags( QtCore.Qt.TextSelectableByKeyboard | QtCore.Qt.TextSelectableByMouse) self.txt_constraint.setObjectName("txt_constraint") self.verticalLayout_3.addWidget(self.txt_constraint) spacerItem = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) self.verticalLayout_3.addItem(spacerItem) self.horizontalLayout.addLayout(self.verticalLayout_3) self.verticalLayout_2 = QtWidgets.QVBoxLayout() self.verticalLayout_2.setObjectName("verticalLayout_2") self.gridLayout = QtWidgets.QGridLayout() self.gridLayout.setSizeConstraint( QtWidgets.QLayout.SetDefaultConstraint) self.gridLayout.setObjectName("gridLayout") self.in_H0 = QtWidgets.QLabel(PHoleM51) self.in_H0.setObjectName("in_H0") self.gridLayout.addWidget(self.in_H0, 0, 0, 1, 1) self.lf_H0 = FloatEdit(PHoleM51) self.lf_H0.setObjectName("lf_H0") self.gridLayout.addWidget(self.lf_H0, 0, 1, 1, 1) self.unit_H0 = QtWidgets.QLabel(PHoleM51) self.unit_H0.setObjectName("unit_H0") self.gridLayout.addWidget(self.unit_H0, 0, 2, 1, 1) self.in_H1 = QtWidgets.QLabel(PHoleM51) self.in_H1.setObjectName("in_H1") self.gridLayout.addWidget(self.in_H1, 1, 0, 1, 1) self.lf_H1 = FloatEdit(PHoleM51) self.lf_H1.setObjectName("lf_H1") self.gridLayout.addWidget(self.lf_H1, 1, 1, 1, 1) self.unit_H1 = QtWidgets.QLabel(PHoleM51) self.unit_H1.setObjectName("unit_H1") self.gridLayout.addWidget(self.unit_H1, 1, 2, 1, 1) self.in_H2 = QtWidgets.QLabel(PHoleM51) self.in_H2.setObjectName("in_H2") self.gridLayout.addWidget(self.in_H2, 2, 0, 1, 1) self.lf_H2 = FloatEdit(PHoleM51) self.lf_H2.setObjectName("lf_H2") self.gridLayout.addWidget(self.lf_H2, 2, 1, 1, 1) self.unit_H2 = QtWidgets.QLabel(PHoleM51) self.unit_H2.setObjectName("unit_H2") self.gridLayout.addWidget(self.unit_H2, 2, 2, 1, 1) self.in_W0 = QtWidgets.QLabel(PHoleM51) self.in_W0.setObjectName("in_W0") self.gridLayout.addWidget(self.in_W0, 3, 0, 1, 1) self.lf_W0 = FloatEdit(PHoleM51) self.lf_W0.setObjectName("lf_W0") self.gridLayout.addWidget(self.lf_W0, 3, 1, 1, 1) self.unit_W0 = QtWidgets.QLabel(PHoleM51) self.unit_W0.setObjectName("unit_W0") self.gridLayout.addWidget(self.unit_W0, 3, 2, 1, 1) self.in_W1 = QtWidgets.QLabel(PHoleM51) self.in_W1.setObjectName("in_W1") self.gridLayout.addWidget(self.in_W1, 4, 0, 1, 1) self.lf_W1 = FloatEdit(PHoleM51) self.lf_W1.setCursorPosition(0) self.lf_W1.setObjectName("lf_W1") self.gridLayout.addWidget(self.lf_W1, 4, 1, 1, 1) self.unit_W1 = QtWidgets.QLabel(PHoleM51) self.unit_W1.setObjectName("unit_W1") self.gridLayout.addWidget(self.unit_W1, 4, 2, 1, 1) self.in_W2 = QtWidgets.QLabel(PHoleM51) self.in_W2.setObjectName("in_W2") self.gridLayout.addWidget(self.in_W2, 5, 0, 1, 1) self.lf_W2 = FloatEdit(PHoleM51) self.lf_W2.setObjectName("lf_W2") self.gridLayout.addWidget(self.lf_W2, 5, 1, 1, 1) self.unit_W2 = QtWidgets.QLabel(PHoleM51) self.unit_W2.setObjectName("unit_W2") self.gridLayout.addWidget(self.unit_W2, 5, 2, 1, 1) self.in_W3 = QtWidgets.QLabel(PHoleM51) self.in_W3.setObjectName("in_W3") self.gridLayout.addWidget(self.in_W3, 6, 0, 1, 1) self.lf_W3 = FloatEdit(PHoleM51) self.lf_W3.setObjectName("lf_W3") self.gridLayout.addWidget(self.lf_W3, 6, 1, 1, 1) self.unit_W3 = QtWidgets.QLabel(PHoleM51) self.unit_W3.setObjectName("unit_W3") self.gridLayout.addWidget(self.unit_W3, 6, 2, 1, 1) self.in_W4 = QtWidgets.QLabel(PHoleM51) self.in_W4.setObjectName("in_W4") self.gridLayout.addWidget(self.in_W4, 7, 0, 1, 1) self.lf_W4 = FloatEdit(PHoleM51) self.lf_W4.setObjectName("lf_W4") self.gridLayout.addWidget(self.lf_W4, 7, 1, 1, 1) self.unit_W4 = QtWidgets.QLabel(PHoleM51) self.unit_W4.setObjectName("unit_W4") self.gridLayout.addWidget(self.unit_W4, 7, 2, 1, 1) self.in_W5 = QtWidgets.QLabel(PHoleM51) self.in_W5.setObjectName("in_W5") self.gridLayout.addWidget(self.in_W5, 8, 0, 1, 1) self.lf_W5 = FloatEdit(PHoleM51) self.lf_W5.setObjectName("lf_W5") self.gridLayout.addWidget(self.lf_W5, 8, 1, 1, 1) self.unit_W5 = QtWidgets.QLabel(PHoleM51) self.unit_W5.setObjectName("unit_W5") self.gridLayout.addWidget(self.unit_W5, 8, 2, 1, 1) self.in_W6 = QtWidgets.QLabel(PHoleM51) self.in_W6.setObjectName("in_W6") self.gridLayout.addWidget(self.in_W6, 9, 0, 1, 1) self.lf_W6 = FloatEdit(PHoleM51) self.lf_W6.setObjectName("lf_W6") self.gridLayout.addWidget(self.lf_W6, 9, 1, 1, 1) self.unit_W6 = QtWidgets.QLabel(PHoleM51) self.unit_W6.setObjectName("unit_W6") self.gridLayout.addWidget(self.unit_W6, 9, 2, 1, 1) self.in_W7 = QtWidgets.QLabel(PHoleM51) self.in_W7.setObjectName("in_W7") self.gridLayout.addWidget(self.in_W7, 10, 0, 1, 1) self.lf_W7 = FloatEdit(PHoleM51) self.lf_W7.setObjectName("lf_W7") self.gridLayout.addWidget(self.lf_W7, 10, 1, 1, 1) self.unit_W7 = QtWidgets.QLabel(PHoleM51) self.unit_W7.setObjectName("unit_W7") self.gridLayout.addWidget(self.unit_W7, 10, 2, 1, 1) self.verticalLayout_2.addLayout(self.gridLayout) self.w_mat_0 = WMatSelect(PHoleM51) self.w_mat_0.setMinimumSize(QtCore.QSize(100, 0)) self.w_mat_0.setObjectName("w_mat_0") self.verticalLayout_2.addWidget(self.w_mat_0) self.w_mat_1 = WMatSelect(PHoleM51) self.w_mat_1.setMinimumSize(QtCore.QSize(100, 0)) self.w_mat_1.setObjectName("w_mat_1") self.verticalLayout_2.addWidget(self.w_mat_1) self.w_mat_2 = WMatSelect(PHoleM51) self.w_mat_2.setMinimumSize(QtCore.QSize(100, 0)) self.w_mat_2.setObjectName("w_mat_2") self.verticalLayout_2.addWidget(self.w_mat_2) self.w_mat_3 = WMatSelect(PHoleM51) self.w_mat_3.setMinimumSize(QtCore.QSize(100, 0)) self.w_mat_3.setObjectName("w_mat_3") self.verticalLayout_2.addWidget(self.w_mat_3) self.g_output = QtWidgets.QGroupBox(PHoleM51) self.g_output.setMinimumSize(QtCore.QSize(200, 0)) self.g_output.setObjectName("g_output") self.verticalLayout = QtWidgets.QVBoxLayout(self.g_output) self.verticalLayout.setObjectName("verticalLayout") self.out_slot_surface = QtWidgets.QLabel(self.g_output) self.out_slot_surface.setObjectName("out_slot_surface") self.verticalLayout.addWidget(self.out_slot_surface) self.out_magnet_surface = QtWidgets.QLabel(self.g_output) self.out_magnet_surface.setObjectName("out_magnet_surface") self.verticalLayout.addWidget(self.out_magnet_surface) self.out_alpha = QtWidgets.QLabel(self.g_output) self.out_alpha.setObjectName("out_alpha") self.verticalLayout.addWidget(self.out_alpha) self.out_Whole = QtWidgets.QLabel(self.g_output) self.out_Whole.setObjectName("out_Whole") self.verticalLayout.addWidget(self.out_Whole) spacerItem1 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) self.verticalLayout.addItem(spacerItem1) self.verticalLayout_2.addWidget(self.g_output) self.horizontalLayout.addLayout(self.verticalLayout_2) self.retranslateUi(PHoleM51) QtCore.QMetaObject.connectSlotsByName(PHoleM51) PHoleM51.setTabOrder(self.lf_H0, self.lf_H1) PHoleM51.setTabOrder(self.lf_H1, self.lf_H2) PHoleM51.setTabOrder(self.lf_H2, self.lf_W0) PHoleM51.setTabOrder(self.lf_W0, self.lf_W1) PHoleM51.setTabOrder(self.lf_W1, self.txt_constraint)
class Ui_PHoleM51(object): def setupUi(self, PHoleM51): PHoleM51.setObjectName("PHoleM51") PHoleM51.resize(740, 440) PHoleM51.setMinimumSize(QtCore.QSize(740, 440)) PHoleM51.setMaximumSize(QtCore.QSize(16777215, 16777215)) self.horizontalLayout = QtWidgets.QHBoxLayout(PHoleM51) self.horizontalLayout.setObjectName("horizontalLayout") self.verticalLayout_3 = QtWidgets.QVBoxLayout() self.verticalLayout_3.setObjectName("verticalLayout_3") self.img_slot = QtWidgets.QLabel(PHoleM51) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.img_slot.sizePolicy().hasHeightForWidth()) self.img_slot.setSizePolicy(sizePolicy) self.img_slot.setMinimumSize(QtCore.QSize(500, 200)) self.img_slot.setMaximumSize(QtCore.QSize(500, 216)) self.img_slot.setAutoFillBackground(False) self.img_slot.setFrameShape(QtWidgets.QFrame.NoFrame) self.img_slot.setText("") self.img_slot.setPixmap( QtGui.QPixmap(":/images/images/MachineSetup/WSlot/Slot_51.PNG")) self.img_slot.setScaledContents(True) self.img_slot.setAlignment(QtCore.Qt.AlignLeading | QtCore.Qt.AlignLeft | QtCore.Qt.AlignVCenter) self.img_slot.setWordWrap(False) self.img_slot.setObjectName("img_slot") self.verticalLayout_3.addWidget(self.img_slot) self.txt_constraint = QtWidgets.QTextEdit(PHoleM51) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.txt_constraint.sizePolicy().hasHeightForWidth()) self.txt_constraint.setSizePolicy(sizePolicy) self.txt_constraint.setMinimumSize(QtCore.QSize(200, 0)) self.txt_constraint.setMaximumSize(QtCore.QSize(16777215, 60)) self.txt_constraint.setVerticalScrollBarPolicy( QtCore.Qt.ScrollBarAlwaysOff) self.txt_constraint.setTextInteractionFlags( QtCore.Qt.TextSelectableByKeyboard | QtCore.Qt.TextSelectableByMouse) self.txt_constraint.setObjectName("txt_constraint") self.verticalLayout_3.addWidget(self.txt_constraint) spacerItem = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) self.verticalLayout_3.addItem(spacerItem) self.horizontalLayout.addLayout(self.verticalLayout_3) self.verticalLayout_2 = QtWidgets.QVBoxLayout() self.verticalLayout_2.setObjectName("verticalLayout_2") self.gridLayout = QtWidgets.QGridLayout() self.gridLayout.setSizeConstraint( QtWidgets.QLayout.SetDefaultConstraint) self.gridLayout.setObjectName("gridLayout") self.in_H0 = QtWidgets.QLabel(PHoleM51) self.in_H0.setObjectName("in_H0") self.gridLayout.addWidget(self.in_H0, 0, 0, 1, 1) self.lf_H0 = FloatEdit(PHoleM51) self.lf_H0.setObjectName("lf_H0") self.gridLayout.addWidget(self.lf_H0, 0, 1, 1, 1) self.unit_H0 = QtWidgets.QLabel(PHoleM51) self.unit_H0.setObjectName("unit_H0") self.gridLayout.addWidget(self.unit_H0, 0, 2, 1, 1) self.in_H1 = QtWidgets.QLabel(PHoleM51) self.in_H1.setObjectName("in_H1") self.gridLayout.addWidget(self.in_H1, 1, 0, 1, 1) self.lf_H1 = FloatEdit(PHoleM51) self.lf_H1.setObjectName("lf_H1") self.gridLayout.addWidget(self.lf_H1, 1, 1, 1, 1) self.unit_H1 = QtWidgets.QLabel(PHoleM51) self.unit_H1.setObjectName("unit_H1") self.gridLayout.addWidget(self.unit_H1, 1, 2, 1, 1) self.in_H2 = QtWidgets.QLabel(PHoleM51) self.in_H2.setObjectName("in_H2") self.gridLayout.addWidget(self.in_H2, 2, 0, 1, 1) self.lf_H2 = FloatEdit(PHoleM51) self.lf_H2.setObjectName("lf_H2") self.gridLayout.addWidget(self.lf_H2, 2, 1, 1, 1) self.unit_H2 = QtWidgets.QLabel(PHoleM51) self.unit_H2.setObjectName("unit_H2") self.gridLayout.addWidget(self.unit_H2, 2, 2, 1, 1) self.in_W0 = QtWidgets.QLabel(PHoleM51) self.in_W0.setObjectName("in_W0") self.gridLayout.addWidget(self.in_W0, 3, 0, 1, 1) self.lf_W0 = FloatEdit(PHoleM51) self.lf_W0.setObjectName("lf_W0") self.gridLayout.addWidget(self.lf_W0, 3, 1, 1, 1) self.unit_W0 = QtWidgets.QLabel(PHoleM51) self.unit_W0.setObjectName("unit_W0") self.gridLayout.addWidget(self.unit_W0, 3, 2, 1, 1) self.in_W1 = QtWidgets.QLabel(PHoleM51) self.in_W1.setObjectName("in_W1") self.gridLayout.addWidget(self.in_W1, 4, 0, 1, 1) self.lf_W1 = FloatEdit(PHoleM51) self.lf_W1.setCursorPosition(0) self.lf_W1.setObjectName("lf_W1") self.gridLayout.addWidget(self.lf_W1, 4, 1, 1, 1) self.unit_W1 = QtWidgets.QLabel(PHoleM51) self.unit_W1.setObjectName("unit_W1") self.gridLayout.addWidget(self.unit_W1, 4, 2, 1, 1) self.in_W2 = QtWidgets.QLabel(PHoleM51) self.in_W2.setObjectName("in_W2") self.gridLayout.addWidget(self.in_W2, 5, 0, 1, 1) self.lf_W2 = FloatEdit(PHoleM51) self.lf_W2.setObjectName("lf_W2") self.gridLayout.addWidget(self.lf_W2, 5, 1, 1, 1) self.unit_W2 = QtWidgets.QLabel(PHoleM51) self.unit_W2.setObjectName("unit_W2") self.gridLayout.addWidget(self.unit_W2, 5, 2, 1, 1) self.in_W3 = QtWidgets.QLabel(PHoleM51) self.in_W3.setObjectName("in_W3") self.gridLayout.addWidget(self.in_W3, 6, 0, 1, 1) self.lf_W3 = FloatEdit(PHoleM51) self.lf_W3.setObjectName("lf_W3") self.gridLayout.addWidget(self.lf_W3, 6, 1, 1, 1) self.unit_W3 = QtWidgets.QLabel(PHoleM51) self.unit_W3.setObjectName("unit_W3") self.gridLayout.addWidget(self.unit_W3, 6, 2, 1, 1) self.in_W4 = QtWidgets.QLabel(PHoleM51) self.in_W4.setObjectName("in_W4") self.gridLayout.addWidget(self.in_W4, 7, 0, 1, 1) self.lf_W4 = FloatEdit(PHoleM51) self.lf_W4.setObjectName("lf_W4") self.gridLayout.addWidget(self.lf_W4, 7, 1, 1, 1) self.unit_W4 = QtWidgets.QLabel(PHoleM51) self.unit_W4.setObjectName("unit_W4") self.gridLayout.addWidget(self.unit_W4, 7, 2, 1, 1) self.in_W5 = QtWidgets.QLabel(PHoleM51) self.in_W5.setObjectName("in_W5") self.gridLayout.addWidget(self.in_W5, 8, 0, 1, 1) self.lf_W5 = FloatEdit(PHoleM51) self.lf_W5.setObjectName("lf_W5") self.gridLayout.addWidget(self.lf_W5, 8, 1, 1, 1) self.unit_W5 = QtWidgets.QLabel(PHoleM51) self.unit_W5.setObjectName("unit_W5") self.gridLayout.addWidget(self.unit_W5, 8, 2, 1, 1) self.in_W6 = QtWidgets.QLabel(PHoleM51) self.in_W6.setObjectName("in_W6") self.gridLayout.addWidget(self.in_W6, 9, 0, 1, 1) self.lf_W6 = FloatEdit(PHoleM51) self.lf_W6.setObjectName("lf_W6") self.gridLayout.addWidget(self.lf_W6, 9, 1, 1, 1) self.unit_W6 = QtWidgets.QLabel(PHoleM51) self.unit_W6.setObjectName("unit_W6") self.gridLayout.addWidget(self.unit_W6, 9, 2, 1, 1) self.in_W7 = QtWidgets.QLabel(PHoleM51) self.in_W7.setObjectName("in_W7") self.gridLayout.addWidget(self.in_W7, 10, 0, 1, 1) self.lf_W7 = FloatEdit(PHoleM51) self.lf_W7.setObjectName("lf_W7") self.gridLayout.addWidget(self.lf_W7, 10, 1, 1, 1) self.unit_W7 = QtWidgets.QLabel(PHoleM51) self.unit_W7.setObjectName("unit_W7") self.gridLayout.addWidget(self.unit_W7, 10, 2, 1, 1) self.verticalLayout_2.addLayout(self.gridLayout) self.w_mat_0 = WMatSelect(PHoleM51) self.w_mat_0.setMinimumSize(QtCore.QSize(100, 0)) self.w_mat_0.setObjectName("w_mat_0") self.verticalLayout_2.addWidget(self.w_mat_0) self.w_mat_1 = WMatSelect(PHoleM51) self.w_mat_1.setMinimumSize(QtCore.QSize(100, 0)) self.w_mat_1.setObjectName("w_mat_1") self.verticalLayout_2.addWidget(self.w_mat_1) self.w_mat_2 = WMatSelect(PHoleM51) self.w_mat_2.setMinimumSize(QtCore.QSize(100, 0)) self.w_mat_2.setObjectName("w_mat_2") self.verticalLayout_2.addWidget(self.w_mat_2) self.w_mat_3 = WMatSelect(PHoleM51) self.w_mat_3.setMinimumSize(QtCore.QSize(100, 0)) self.w_mat_3.setObjectName("w_mat_3") self.verticalLayout_2.addWidget(self.w_mat_3) self.g_output = QtWidgets.QGroupBox(PHoleM51) self.g_output.setMinimumSize(QtCore.QSize(200, 0)) self.g_output.setObjectName("g_output") self.verticalLayout = QtWidgets.QVBoxLayout(self.g_output) self.verticalLayout.setObjectName("verticalLayout") self.out_slot_surface = QtWidgets.QLabel(self.g_output) self.out_slot_surface.setObjectName("out_slot_surface") self.verticalLayout.addWidget(self.out_slot_surface) self.out_magnet_surface = QtWidgets.QLabel(self.g_output) self.out_magnet_surface.setObjectName("out_magnet_surface") self.verticalLayout.addWidget(self.out_magnet_surface) self.out_alpha = QtWidgets.QLabel(self.g_output) self.out_alpha.setObjectName("out_alpha") self.verticalLayout.addWidget(self.out_alpha) self.out_Whole = QtWidgets.QLabel(self.g_output) self.out_Whole.setObjectName("out_Whole") self.verticalLayout.addWidget(self.out_Whole) spacerItem1 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) self.verticalLayout.addItem(spacerItem1) self.verticalLayout_2.addWidget(self.g_output) self.horizontalLayout.addLayout(self.verticalLayout_2) self.retranslateUi(PHoleM51) QtCore.QMetaObject.connectSlotsByName(PHoleM51) PHoleM51.setTabOrder(self.lf_H0, self.lf_H1) PHoleM51.setTabOrder(self.lf_H1, self.lf_H2) PHoleM51.setTabOrder(self.lf_H2, self.lf_W0) PHoleM51.setTabOrder(self.lf_W0, self.lf_W1) PHoleM51.setTabOrder(self.lf_W1, self.txt_constraint) def retranslateUi(self, PHoleM51): _translate = QtCore.QCoreApplication.translate PHoleM51.setWindowTitle(_translate("PHoleM51", "Form")) self.txt_constraint.setHtml( _translate( "PHoleM51", '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">\n' '<html><head><meta name="qrichtext" content="1" /><style type="text/css">\n' "p, li { white-space: pre-wrap; }\n" "</style></head><body style=\" font-family:'MS Shell Dlg 2'; font-size:8.25pt; font-weight:400; font-style:normal;\">\n" '<p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:12pt; font-weight:600; text-decoration: underline;">Constraints :</span></p>\n' '<p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:14pt;">W3+W2 < W0</span></p>\n' '<p align="center" style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-size:8pt;"><br /></p></body></html>', )) self.in_H0.setText(_translate("PHoleM51", "H0 :")) self.unit_H0.setText(_translate("PHoleM51", "m")) self.in_H1.setText(_translate("PHoleM51", "H1 :")) self.unit_H1.setText(_translate("PHoleM51", "m")) self.in_H2.setText(_translate("PHoleM51", "H2 :")) self.unit_H2.setText(_translate("PHoleM51", "m")) self.in_W0.setText(_translate("PHoleM51", "W0 :")) self.unit_W0.setText(_translate("PHoleM51", "m")) self.in_W1.setText(_translate("PHoleM51", "W1 :")) self.unit_W1.setText(_translate("PHoleM51", "rad")) self.in_W2.setText(_translate("PHoleM51", "W2 :")) self.unit_W2.setText(_translate("PHoleM51", "m")) self.in_W3.setText(_translate("PHoleM51", "W3 :")) self.unit_W3.setText(_translate("PHoleM51", "m")) self.in_W4.setText(_translate("PHoleM51", "W4 :")) self.unit_W4.setText(_translate("PHoleM51", "m")) self.in_W5.setText(_translate("PHoleM51", "W5 :")) self.unit_W5.setText(_translate("PHoleM51", "m")) self.in_W6.setText(_translate("PHoleM51", "W6 :")) self.unit_W6.setText(_translate("PHoleM51", "m")) self.in_W7.setText(_translate("PHoleM51", "W7 :")) self.unit_W7.setText(_translate("PHoleM51", "m")) self.g_output.setTitle(_translate("PHoleM51", "Output")) self.out_slot_surface.setText(_translate("PHoleM51", "Slot suface : ?")) self.out_magnet_surface.setText( _translate("PHoleM51", "Magnet surface : ?")) self.out_alpha.setText(_translate("PHoleM51", "Alpha : ?")) self.out_Whole.setText(_translate("PHoleM51", "Wslot : ?"))
class Ui_PHoleM53(object): def setupUi(self, PHoleM53): if not PHoleM53.objectName(): PHoleM53.setObjectName(u"PHoleM53") PHoleM53.resize(740, 440) PHoleM53.setMinimumSize(QSize(740, 440)) PHoleM53.setMaximumSize(QSize(16777215, 16777215)) self.horizontalLayout = QHBoxLayout(PHoleM53) self.horizontalLayout.setObjectName(u"horizontalLayout") self.verticalLayout_3 = QVBoxLayout() self.verticalLayout_3.setObjectName(u"verticalLayout_3") self.img_slot = QLabel(PHoleM53) self.img_slot.setObjectName(u"img_slot") sizePolicy = QSizePolicy(QSizePolicy.Fixed, QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.img_slot.sizePolicy().hasHeightForWidth()) self.img_slot.setSizePolicy(sizePolicy) self.img_slot.setMinimumSize(QSize(500, 191)) self.img_slot.setMaximumSize(QSize(500, 191)) self.img_slot.setPixmap( QPixmap(u":/images/images/MachineSetup/WSlot/Slot_53.PNG")) self.img_slot.setScaledContents(True) self.verticalLayout_3.addWidget(self.img_slot) self.txt_constraint = QTextEdit(PHoleM53) self.txt_constraint.setObjectName(u"txt_constraint") sizePolicy1 = QSizePolicy(QSizePolicy.Preferred, QSizePolicy.Fixed) sizePolicy1.setHorizontalStretch(0) sizePolicy1.setVerticalStretch(0) sizePolicy1.setHeightForWidth( self.txt_constraint.sizePolicy().hasHeightForWidth()) self.txt_constraint.setSizePolicy(sizePolicy1) self.txt_constraint.setMinimumSize(QSize(200, 0)) self.txt_constraint.setMaximumSize(QSize(16777215, 100)) self.txt_constraint.setVerticalScrollBarPolicy(Qt.ScrollBarAlwaysOff) self.txt_constraint.setTextInteractionFlags(Qt.TextSelectableByKeyboard | Qt.TextSelectableByMouse) self.verticalLayout_3.addWidget(self.txt_constraint) self.verticalSpacer_2 = QSpacerItem(20, 40, QSizePolicy.Minimum, QSizePolicy.Expanding) self.verticalLayout_3.addItem(self.verticalSpacer_2) self.horizontalLayout.addLayout(self.verticalLayout_3) self.verticalLayout_2 = QVBoxLayout() self.verticalLayout_2.setObjectName(u"verticalLayout_2") self.gridLayout = QGridLayout() self.gridLayout.setObjectName(u"gridLayout") self.in_H0 = QLabel(PHoleM53) self.in_H0.setObjectName(u"in_H0") self.gridLayout.addWidget(self.in_H0, 0, 0, 1, 1) self.lf_H0 = FloatEdit(PHoleM53) self.lf_H0.setObjectName(u"lf_H0") self.gridLayout.addWidget(self.lf_H0, 0, 1, 1, 1) self.unit_H0 = QLabel(PHoleM53) self.unit_H0.setObjectName(u"unit_H0") self.gridLayout.addWidget(self.unit_H0, 0, 2, 1, 1) self.in_H1 = QLabel(PHoleM53) self.in_H1.setObjectName(u"in_H1") self.gridLayout.addWidget(self.in_H1, 1, 0, 1, 1) self.lf_H1 = FloatEdit(PHoleM53) self.lf_H1.setObjectName(u"lf_H1") self.gridLayout.addWidget(self.lf_H1, 1, 1, 1, 1) self.unit_H1 = QLabel(PHoleM53) self.unit_H1.setObjectName(u"unit_H1") self.gridLayout.addWidget(self.unit_H1, 1, 2, 1, 1) self.in_H2 = QLabel(PHoleM53) self.in_H2.setObjectName(u"in_H2") self.gridLayout.addWidget(self.in_H2, 2, 0, 1, 1) self.lf_H2 = FloatEdit(PHoleM53) self.lf_H2.setObjectName(u"lf_H2") self.gridLayout.addWidget(self.lf_H2, 2, 1, 1, 1) self.unit_H2 = QLabel(PHoleM53) self.unit_H2.setObjectName(u"unit_H2") self.gridLayout.addWidget(self.unit_H2, 2, 2, 1, 1) self.in_H3 = QLabel(PHoleM53) self.in_H3.setObjectName(u"in_H3") self.gridLayout.addWidget(self.in_H3, 3, 0, 1, 1) self.lf_H3 = FloatEdit(PHoleM53) self.lf_H3.setObjectName(u"lf_H3") self.gridLayout.addWidget(self.lf_H3, 3, 1, 1, 1) self.unit_H3 = QLabel(PHoleM53) self.unit_H3.setObjectName(u"unit_H3") self.gridLayout.addWidget(self.unit_H3, 3, 2, 1, 1) self.in_W1 = QLabel(PHoleM53) self.in_W1.setObjectName(u"in_W1") self.gridLayout.addWidget(self.in_W1, 4, 0, 1, 1) self.lf_W1 = FloatEdit(PHoleM53) self.lf_W1.setObjectName(u"lf_W1") self.gridLayout.addWidget(self.lf_W1, 4, 1, 1, 1) self.unit_W1 = QLabel(PHoleM53) self.unit_W1.setObjectName(u"unit_W1") self.gridLayout.addWidget(self.unit_W1, 4, 2, 1, 1) self.in_W2 = QLabel(PHoleM53) self.in_W2.setObjectName(u"in_W2") self.gridLayout.addWidget(self.in_W2, 5, 0, 1, 1) self.lf_W2 = FloatEdit(PHoleM53) self.lf_W2.setObjectName(u"lf_W2") self.gridLayout.addWidget(self.lf_W2, 5, 1, 1, 1) self.unit_W2 = QLabel(PHoleM53) self.unit_W2.setObjectName(u"unit_W2") self.gridLayout.addWidget(self.unit_W2, 5, 2, 1, 1) self.in_W3 = QLabel(PHoleM53) self.in_W3.setObjectName(u"in_W3") self.gridLayout.addWidget(self.in_W3, 6, 0, 1, 1) self.lf_W3 = FloatEdit(PHoleM53) self.lf_W3.setObjectName(u"lf_W3") self.gridLayout.addWidget(self.lf_W3, 6, 1, 1, 1) self.unit_W3 = QLabel(PHoleM53) self.unit_W3.setObjectName(u"unit_W3") self.gridLayout.addWidget(self.unit_W3, 6, 2, 1, 1) self.in_W4 = QLabel(PHoleM53) self.in_W4.setObjectName(u"in_W4") self.gridLayout.addWidget(self.in_W4, 7, 0, 1, 1) self.lf_W4 = FloatEdit(PHoleM53) self.lf_W4.setObjectName(u"lf_W4") self.gridLayout.addWidget(self.lf_W4, 7, 1, 1, 1) self.unit_W4 = QLabel(PHoleM53) self.unit_W4.setObjectName(u"unit_W4") self.gridLayout.addWidget(self.unit_W4, 7, 2, 1, 1) self.verticalLayout_2.addLayout(self.gridLayout) self.w_mat_0 = WMatSelect(PHoleM53) self.w_mat_0.setObjectName(u"w_mat_0") self.w_mat_0.setMinimumSize(QSize(100, 0)) self.verticalLayout_2.addWidget(self.w_mat_0) self.w_mat_1 = WMatSelect(PHoleM53) self.w_mat_1.setObjectName(u"w_mat_1") self.w_mat_1.setMinimumSize(QSize(100, 0)) self.verticalLayout_2.addWidget(self.w_mat_1) self.w_mat_2 = WMatSelect(PHoleM53) self.w_mat_2.setObjectName(u"w_mat_2") self.w_mat_2.setMinimumSize(QSize(100, 0)) self.verticalLayout_2.addWidget(self.w_mat_2) self.g_output = QGroupBox(PHoleM53) self.g_output.setObjectName(u"g_output") self.g_output.setMinimumSize(QSize(200, 0)) self.verticalLayout = QVBoxLayout(self.g_output) self.verticalLayout.setObjectName(u"verticalLayout") self.out_slot_surface = QLabel(self.g_output) self.out_slot_surface.setObjectName(u"out_slot_surface") self.verticalLayout.addWidget(self.out_slot_surface) self.out_magnet_surface = QLabel(self.g_output) self.out_magnet_surface.setObjectName(u"out_magnet_surface") self.verticalLayout.addWidget(self.out_magnet_surface) self.out_W5 = QLabel(self.g_output) self.out_W5.setObjectName(u"out_W5") self.verticalLayout.addWidget(self.out_W5) self.verticalSpacer = QSpacerItem(20, 40, QSizePolicy.Minimum, QSizePolicy.Expanding) self.verticalLayout.addItem(self.verticalSpacer) self.verticalLayout_2.addWidget(self.g_output) self.horizontalLayout.addLayout(self.verticalLayout_2) QWidget.setTabOrder(self.lf_H0, self.lf_H1) QWidget.setTabOrder(self.lf_H1, self.lf_H2) QWidget.setTabOrder(self.lf_H2, self.lf_H3) QWidget.setTabOrder(self.lf_H3, self.lf_W1) QWidget.setTabOrder(self.lf_W1, self.lf_W2) QWidget.setTabOrder(self.lf_W2, self.lf_W3) QWidget.setTabOrder(self.lf_W3, self.lf_W4) QWidget.setTabOrder(self.lf_W4, self.txt_constraint) self.retranslateUi(PHoleM53) QMetaObject.connectSlotsByName(PHoleM53) # setupUi def retranslateUi(self, PHoleM53): PHoleM53.setWindowTitle( QCoreApplication.translate("PHoleM53", u"Form", None)) self.img_slot.setText("") self.txt_constraint.setHtml( QCoreApplication.translate( "PHoleM53", u'<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">\n' '<html><head><meta name="qrichtext" content="1" /><style type="text/css">\n' "p, li { white-space: pre-wrap; }\n" "</style></head><body style=\" font-family:'MS Shell Dlg 2'; font-size:8.25pt; font-weight:400; font-style:normal;\">\n" '<p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:12pt; font-weight:600; text-decoration: underline;">Constraints :</span></p>\n' '<p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:14pt;">H2 < H3</span></p></body></html>', None, )) self.in_H0.setText( QCoreApplication.translate("PHoleM53", u"H0 :", None)) self.unit_H0.setText(QCoreApplication.translate( "PHoleM53", u"m", None)) self.in_H1.setText( QCoreApplication.translate("PHoleM53", u"H1 :", None)) self.unit_H1.setText(QCoreApplication.translate( "PHoleM53", u"m", None)) self.in_H2.setText( QCoreApplication.translate("PHoleM53", u"H2 :", None)) self.unit_H2.setText(QCoreApplication.translate( "PHoleM53", u"m", None)) self.in_H3.setText( QCoreApplication.translate("PHoleM53", u"H3 :", None)) self.unit_H3.setText(QCoreApplication.translate( "PHoleM53", u"m", None)) self.in_W1.setText( QCoreApplication.translate("PHoleM53", u"W1 :", None)) self.unit_W1.setText(QCoreApplication.translate( "PHoleM53", u"m", None)) self.in_W2.setText( QCoreApplication.translate("PHoleM53", u"W2 :", None)) self.unit_W2.setText(QCoreApplication.translate( "PHoleM53", u"m", None)) self.in_W3.setText( QCoreApplication.translate("PHoleM53", u"W3 :", None)) self.unit_W3.setText(QCoreApplication.translate( "PHoleM53", u"m", None)) self.in_W4.setText( QCoreApplication.translate("PHoleM53", u"W4 :", None)) self.lf_W4.setText("") self.unit_W4.setText( QCoreApplication.translate("PHoleM53", u"rad", None)) self.g_output.setTitle( QCoreApplication.translate("PHoleM53", u"Output", None)) self.out_slot_surface.setText( QCoreApplication.translate("PHoleM53", u"Slot suface (2 part) : ?", None)) self.out_magnet_surface.setText( QCoreApplication.translate("PHoleM53", u"Single Magnet surface : ?", None)) self.out_W5.setText( QCoreApplication.translate("PHoleM53", u"W5 : ?", None))
def setupUi(self, PHoleM57): PHoleM57.setObjectName("PHoleM57") PHoleM57.resize(700, 470) PHoleM57.setMinimumSize(QtCore.QSize(700, 470)) PHoleM57.setMaximumSize(QtCore.QSize(16777215, 16777215)) self.horizontalLayout = QtWidgets.QHBoxLayout(PHoleM57) self.horizontalLayout.setObjectName("horizontalLayout") self.verticalLayout_3 = QtWidgets.QVBoxLayout() self.verticalLayout_3.setObjectName("verticalLayout_3") self.img_slot = QtWidgets.QLabel(PHoleM57) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.img_slot.sizePolicy().hasHeightForWidth()) self.img_slot.setSizePolicy(sizePolicy) self.img_slot.setMinimumSize(QtCore.QSize(450, 120)) self.img_slot.setMaximumSize(QtCore.QSize(450, 120)) self.img_slot.setText("") self.img_slot.setPixmap( QtGui.QPixmap(":/images/images/MachineSetup/WSlot/Slot_57.PNG")) self.img_slot.setScaledContents(True) self.img_slot.setObjectName("img_slot") self.verticalLayout_3.addWidget(self.img_slot) spacerItem = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) self.verticalLayout_3.addItem(spacerItem) self.horizontalLayout.addLayout(self.verticalLayout_3) self.verticalLayout_2 = QtWidgets.QVBoxLayout() self.verticalLayout_2.setObjectName("verticalLayout_2") self.gridLayout = QtWidgets.QGridLayout() self.gridLayout.setObjectName("gridLayout") self.lf_W3 = FloatEdit(PHoleM57) self.lf_W3.setObjectName("lf_W3") self.gridLayout.addWidget(self.lf_W3, 5, 1, 1, 1) self.lf_W0 = FloatEdit(PHoleM57) self.lf_W0.setObjectName("lf_W0") self.gridLayout.addWidget(self.lf_W0, 2, 1, 1, 1) self.in_W1 = QtWidgets.QLabel(PHoleM57) self.in_W1.setObjectName("in_W1") self.gridLayout.addWidget(self.in_W1, 3, 0, 1, 1) self.lf_H2 = FloatEdit(PHoleM57) self.lf_H2.setObjectName("lf_H2") self.gridLayout.addWidget(self.lf_H2, 1, 1, 1, 1) self.unit_W1 = QtWidgets.QLabel(PHoleM57) self.unit_W1.setObjectName("unit_W1") self.gridLayout.addWidget(self.unit_W1, 3, 2, 1, 1) self.lf_H1 = FloatEdit(PHoleM57) self.lf_H1.setObjectName("lf_H1") self.gridLayout.addWidget(self.lf_H1, 0, 1, 1, 1) self.unit_W2 = QtWidgets.QLabel(PHoleM57) self.unit_W2.setObjectName("unit_W2") self.gridLayout.addWidget(self.unit_W2, 4, 2, 1, 1) self.in_W3 = QtWidgets.QLabel(PHoleM57) self.in_W3.setObjectName("in_W3") self.gridLayout.addWidget(self.in_W3, 5, 0, 1, 1) self.unit_W4 = QtWidgets.QLabel(PHoleM57) self.unit_W4.setObjectName("unit_W4") self.gridLayout.addWidget(self.unit_W4, 6, 2, 1, 1) self.lf_W4 = FloatEdit(PHoleM57) self.lf_W4.setText("") self.lf_W4.setObjectName("lf_W4") self.gridLayout.addWidget(self.lf_W4, 6, 1, 1, 1) self.unit_W0 = QtWidgets.QLabel(PHoleM57) self.unit_W0.setObjectName("unit_W0") self.gridLayout.addWidget(self.unit_W0, 2, 2, 1, 1) self.in_W2 = QtWidgets.QLabel(PHoleM57) self.in_W2.setObjectName("in_W2") self.gridLayout.addWidget(self.in_W2, 4, 0, 1, 1) self.in_W0 = QtWidgets.QLabel(PHoleM57) self.in_W0.setObjectName("in_W0") self.gridLayout.addWidget(self.in_W0, 2, 0, 1, 1) self.in_W4 = QtWidgets.QLabel(PHoleM57) self.in_W4.setObjectName("in_W4") self.gridLayout.addWidget(self.in_W4, 6, 0, 1, 1) self.unit_H1 = QtWidgets.QLabel(PHoleM57) self.unit_H1.setObjectName("unit_H1") self.gridLayout.addWidget(self.unit_H1, 0, 2, 1, 1) self.in_H2 = QtWidgets.QLabel(PHoleM57) self.in_H2.setObjectName("in_H2") self.gridLayout.addWidget(self.in_H2, 1, 0, 1, 1) self.lf_W2 = FloatEdit(PHoleM57) self.lf_W2.setObjectName("lf_W2") self.gridLayout.addWidget(self.lf_W2, 4, 1, 1, 1) self.in_H1 = QtWidgets.QLabel(PHoleM57) self.in_H1.setObjectName("in_H1") self.gridLayout.addWidget(self.in_H1, 0, 0, 1, 1) self.unit_W3 = QtWidgets.QLabel(PHoleM57) self.unit_W3.setObjectName("unit_W3") self.gridLayout.addWidget(self.unit_W3, 5, 2, 1, 1) self.lf_W1 = FloatEdit(PHoleM57) self.lf_W1.setObjectName("lf_W1") self.gridLayout.addWidget(self.lf_W1, 3, 1, 1, 1) self.unit_H2 = QtWidgets.QLabel(PHoleM57) self.unit_H2.setObjectName("unit_H2") self.gridLayout.addWidget(self.unit_H2, 1, 2, 1, 1) self.verticalLayout_2.addLayout(self.gridLayout) self.w_mat_0 = WMatSelect(PHoleM57) self.w_mat_0.setMinimumSize(QtCore.QSize(100, 0)) self.w_mat_0.setObjectName("w_mat_0") self.verticalLayout_2.addWidget(self.w_mat_0) self.w_mat_1 = WMatSelect(PHoleM57) self.w_mat_1.setMinimumSize(QtCore.QSize(100, 0)) self.w_mat_1.setObjectName("w_mat_1") self.verticalLayout_2.addWidget(self.w_mat_1) self.w_mat_2 = WMatSelect(PHoleM57) self.w_mat_2.setMinimumSize(QtCore.QSize(100, 0)) self.w_mat_2.setObjectName("w_mat_2") self.verticalLayout_2.addWidget(self.w_mat_2) self.g_output = QtWidgets.QGroupBox(PHoleM57) self.g_output.setMinimumSize(QtCore.QSize(200, 0)) self.g_output.setObjectName("g_output") self.verticalLayout = QtWidgets.QVBoxLayout(self.g_output) self.verticalLayout.setObjectName("verticalLayout") self.out_slot_surface = QtWidgets.QLabel(self.g_output) self.out_slot_surface.setObjectName("out_slot_surface") self.verticalLayout.addWidget(self.out_slot_surface) self.out_magnet_surface = QtWidgets.QLabel(self.g_output) self.out_magnet_surface.setObjectName("out_magnet_surface") self.verticalLayout.addWidget(self.out_magnet_surface) spacerItem1 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) self.verticalLayout.addItem(spacerItem1) self.verticalLayout_2.addWidget(self.g_output) self.horizontalLayout.addLayout(self.verticalLayout_2) self.retranslateUi(PHoleM57) QtCore.QMetaObject.connectSlotsByName(PHoleM57) PHoleM57.setTabOrder(self.lf_H1, self.lf_H2) PHoleM57.setTabOrder(self.lf_H2, self.lf_W0) PHoleM57.setTabOrder(self.lf_W0, self.lf_W1) PHoleM57.setTabOrder(self.lf_W1, self.lf_W2) PHoleM57.setTabOrder(self.lf_W2, self.lf_W3) PHoleM57.setTabOrder(self.lf_W3, self.lf_W4)
def setupUi(self, SBar): SBar.setObjectName("SBar") SBar.resize(650, 550) SBar.setMinimumSize(QtCore.QSize(650, 550)) self.verticalLayout_2 = QtWidgets.QVBoxLayout(SBar) self.verticalLayout_2.setObjectName("verticalLayout_2") self.g_bar = QtWidgets.QGroupBox(SBar) self.g_bar.setObjectName("g_bar") self.verticalLayout = QtWidgets.QVBoxLayout(self.g_bar) self.verticalLayout.setObjectName("verticalLayout") self.horizontalLayout = QtWidgets.QHBoxLayout() self.horizontalLayout.setObjectName("horizontalLayout") spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout.addItem(spacerItem) self.c_bar_type = QtWidgets.QComboBox(self.g_bar) self.c_bar_type.setMinimumSize(QtCore.QSize(100, 0)) self.c_bar_type.setObjectName("c_bar_type") self.c_bar_type.addItem("") self.c_bar_type.addItem("") self.horizontalLayout.addWidget(self.c_bar_type) spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout.addItem(spacerItem1) self.verticalLayout.addLayout(self.horizontalLayout) self.w_bar = QtWidgets.QWidget(self.g_bar) self.w_bar.setObjectName("w_bar") self.verticalLayout.addWidget(self.w_bar) self.verticalLayout_2.addWidget(self.g_bar) self.g_ring = QtWidgets.QGroupBox(SBar) self.g_ring.setObjectName("g_ring") self.horizontalLayout_2 = QtWidgets.QHBoxLayout(self.g_ring) self.horizontalLayout_2.setObjectName("horizontalLayout_2") self.img_ring = QtWidgets.QLabel(self.g_ring) self.img_ring.setMaximumSize(QtCore.QSize(300, 300)) self.img_ring.setText("") self.img_ring.setPixmap( QtGui.QPixmap(":/images/images/MachineSetup/Bar/Ring.PNG")) self.img_ring.setScaledContents(True) self.img_ring.setObjectName("img_ring") self.horizontalLayout_2.addWidget(self.img_ring) self.verticalLayout_3 = QtWidgets.QVBoxLayout() self.verticalLayout_3.setObjectName("verticalLayout_3") self.gridLayout = QtWidgets.QGridLayout() self.gridLayout.setObjectName("gridLayout") self.lf_Lewout = FloatEdit(self.g_ring) self.lf_Lewout.setMinimumSize(QtCore.QSize(70, 0)) self.lf_Lewout.setMaximumSize(QtCore.QSize(100, 20)) self.lf_Lewout.setObjectName("lf_Lewout") self.gridLayout.addWidget(self.lf_Lewout, 2, 1, 1, 1) self.unit_Hscr = QtWidgets.QLabel(self.g_ring) self.unit_Hscr.setMinimumSize(QtCore.QSize(0, 0)) self.unit_Hscr.setObjectName("unit_Hscr") self.gridLayout.addWidget(self.unit_Hscr, 0, 2, 1, 1) self.unit_Lscr = QtWidgets.QLabel(self.g_ring) self.unit_Lscr.setMinimumSize(QtCore.QSize(0, 0)) self.unit_Lscr.setObjectName("unit_Lscr") self.gridLayout.addWidget(self.unit_Lscr, 1, 2, 1, 1) self.in_Hscr = QtWidgets.QLabel(self.g_ring) self.in_Hscr.setMinimumSize(QtCore.QSize(40, 0)) self.in_Hscr.setObjectName("in_Hscr") self.gridLayout.addWidget(self.in_Hscr, 0, 0, 1, 1) self.lf_Hscr = FloatEdit(self.g_ring) self.lf_Hscr.setMinimumSize(QtCore.QSize(70, 0)) self.lf_Hscr.setMaximumSize(QtCore.QSize(100, 20)) self.lf_Hscr.setObjectName("lf_Hscr") self.gridLayout.addWidget(self.lf_Hscr, 0, 1, 1, 1) self.lf_Lscr = FloatEdit(self.g_ring) self.lf_Lscr.setMinimumSize(QtCore.QSize(70, 0)) self.lf_Lscr.setMaximumSize(QtCore.QSize(100, 20)) self.lf_Lscr.setObjectName("lf_Lscr") self.gridLayout.addWidget(self.lf_Lscr, 1, 1, 1, 1) self.unit_Lewout = QtWidgets.QLabel(self.g_ring) self.unit_Lewout.setMinimumSize(QtCore.QSize(0, 0)) self.unit_Lewout.setObjectName("unit_Lewout") self.gridLayout.addWidget(self.unit_Lewout, 2, 2, 1, 1) self.in_Lewout = QtWidgets.QLabel(self.g_ring) self.in_Lewout.setMinimumSize(QtCore.QSize(40, 0)) self.in_Lewout.setObjectName("in_Lewout") self.gridLayout.addWidget(self.in_Lewout, 2, 0, 1, 1) self.in_Lscr = QtWidgets.QLabel(self.g_ring) self.in_Lscr.setMinimumSize(QtCore.QSize(40, 0)) self.in_Lscr.setObjectName("in_Lscr") self.gridLayout.addWidget(self.in_Lscr, 1, 0, 1, 1) self.verticalLayout_3.addLayout(self.gridLayout) self.w_mat = WMatSelect(self.g_ring) self.w_mat.setObjectName("w_mat") self.verticalLayout_3.addWidget(self.w_mat) spacerItem2 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) self.verticalLayout_3.addItem(spacerItem2) self.horizontalLayout_2.addLayout(self.verticalLayout_3) self.verticalLayout_2.addWidget(self.g_ring) self.horizontalLayout_3 = QtWidgets.QHBoxLayout() self.horizontalLayout_3.setObjectName("horizontalLayout_3") spacerItem3 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_3.addItem(spacerItem3) self.b_plot = QtWidgets.QPushButton(SBar) self.b_plot.setObjectName("b_plot") self.horizontalLayout_3.addWidget(self.b_plot) self.b_previous = QtWidgets.QPushButton(SBar) self.b_previous.setObjectName("b_previous") self.horizontalLayout_3.addWidget(self.b_previous) self.b_next = QtWidgets.QPushButton(SBar) self.b_next.setEnabled(True) self.b_next.setObjectName("b_next") self.horizontalLayout_3.addWidget(self.b_next) self.verticalLayout_2.addLayout(self.horizontalLayout_3) self.retranslateUi(SBar) QtCore.QMetaObject.connectSlotsByName(SBar) SBar.setTabOrder(self.lf_Hscr, self.lf_Lscr) SBar.setTabOrder(self.lf_Lscr, self.lf_Lewout) SBar.setTabOrder(self.lf_Lewout, self.b_previous) SBar.setTabOrder(self.b_previous, self.b_plot) SBar.setTabOrder(self.b_plot, self.c_bar_type)
class Ui_PWSlot21(object): def setupUi(self, PWSlot21): PWSlot21.setObjectName("PWSlot21") PWSlot21.resize(630, 470) PWSlot21.setMinimumSize(QtCore.QSize(630, 470)) PWSlot21.setMaximumSize(QtCore.QSize(16777215, 16777215)) self.horizontalLayout = QtWidgets.QHBoxLayout(PWSlot21) self.horizontalLayout.setObjectName("horizontalLayout") self.verticalLayout_2 = QtWidgets.QVBoxLayout() self.verticalLayout_2.setObjectName("verticalLayout_2") self.img_slot = QtWidgets.QLabel(PWSlot21) sizePolicy = QtWidgets.QSizePolicy( QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding ) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.img_slot.sizePolicy().hasHeightForWidth()) self.img_slot.setSizePolicy(sizePolicy) self.img_slot.setMaximumSize(QtCore.QSize(16777215, 16777215)) self.img_slot.setText("") self.img_slot.setPixmap( QtGui.QPixmap(":/images/images/MachineSetup/WSlot/Slot 21.PNG") ) self.img_slot.setScaledContents(True) self.img_slot.setObjectName("img_slot") self.verticalLayout_2.addWidget(self.img_slot) self.txt_constraint = QtWidgets.QTextEdit(PWSlot21) sizePolicy = QtWidgets.QSizePolicy( QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed ) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.txt_constraint.sizePolicy().hasHeightForWidth() ) self.txt_constraint.setSizePolicy(sizePolicy) self.txt_constraint.setMaximumSize(QtCore.QSize(16777215, 70)) self.txt_constraint.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff) self.txt_constraint.setTextInteractionFlags( QtCore.Qt.TextSelectableByKeyboard | QtCore.Qt.TextSelectableByMouse ) self.txt_constraint.setObjectName("txt_constraint") self.verticalLayout_2.addWidget(self.txt_constraint) self.horizontalLayout.addLayout(self.verticalLayout_2) self.verticalLayout = QtWidgets.QVBoxLayout() self.verticalLayout.setObjectName("verticalLayout") self.gridLayout = QtWidgets.QGridLayout() self.gridLayout.setObjectName("gridLayout") self.lf_W0 = FloatEdit(PWSlot21) self.lf_W0.setObjectName("lf_W0") self.gridLayout.addWidget(self.lf_W0, 0, 1, 1, 1) self.in_W0 = QtWidgets.QLabel(PWSlot21) self.in_W0.setObjectName("in_W0") self.gridLayout.addWidget(self.in_W0, 0, 0, 1, 1) self.unit_W1 = QtWidgets.QLabel(PWSlot21) self.unit_W1.setObjectName("unit_W1") self.gridLayout.addWidget(self.unit_W1, 1, 2, 1, 1) self.lf_W1 = FloatEdit(PWSlot21) self.lf_W1.setObjectName("lf_W1") self.gridLayout.addWidget(self.lf_W1, 1, 1, 1, 1) self.in_W1 = QtWidgets.QLabel(PWSlot21) self.in_W1.setObjectName("in_W1") self.gridLayout.addWidget(self.in_W1, 1, 0, 1, 1) self.unit_W0 = QtWidgets.QLabel(PWSlot21) self.unit_W0.setObjectName("unit_W0") self.gridLayout.addWidget(self.unit_W0, 0, 2, 1, 1) self.in_W2 = QtWidgets.QLabel(PWSlot21) self.in_W2.setObjectName("in_W2") self.gridLayout.addWidget(self.in_W2, 2, 0, 1, 1) self.lf_W2 = FloatEdit(PWSlot21) self.lf_W2.setObjectName("lf_W2") self.gridLayout.addWidget(self.lf_W2, 2, 1, 1, 1) self.unit_W2 = QtWidgets.QLabel(PWSlot21) self.unit_W2.setObjectName("unit_W2") self.gridLayout.addWidget(self.unit_W2, 2, 2, 1, 1) self.in_H0 = QtWidgets.QLabel(PWSlot21) self.in_H0.setObjectName("in_H0") self.gridLayout.addWidget(self.in_H0, 3, 0, 1, 1) self.lf_H0 = FloatEdit(PWSlot21) self.lf_H0.setObjectName("lf_H0") self.gridLayout.addWidget(self.lf_H0, 3, 1, 1, 1) self.unit_H0 = QtWidgets.QLabel(PWSlot21) self.unit_H0.setObjectName("unit_H0") self.gridLayout.addWidget(self.unit_H0, 3, 2, 1, 1) self.in_H1 = QtWidgets.QLabel(PWSlot21) self.in_H1.setObjectName("in_H1") self.gridLayout.addWidget(self.in_H1, 4, 0, 1, 1) self.lf_H1 = FloatEdit(PWSlot21) self.lf_H1.setObjectName("lf_H1") self.gridLayout.addWidget(self.lf_H1, 4, 1, 1, 1) self.c_H1_unit = QtWidgets.QComboBox(PWSlot21) self.c_H1_unit.setObjectName("c_H1_unit") self.c_H1_unit.addItem("") self.c_H1_unit.addItem("") self.c_H1_unit.addItem("") self.gridLayout.addWidget(self.c_H1_unit, 4, 2, 1, 1) self.in_H2 = QtWidgets.QLabel(PWSlot21) self.in_H2.setObjectName("in_H2") self.gridLayout.addWidget(self.in_H2, 5, 0, 1, 1) self.lf_H2 = FloatEdit(PWSlot21) self.lf_H2.setObjectName("lf_H2") self.gridLayout.addWidget(self.lf_H2, 5, 1, 1, 1) self.unit_H2 = QtWidgets.QLabel(PWSlot21) self.unit_H2.setObjectName("unit_H2") self.gridLayout.addWidget(self.unit_H2, 5, 2, 1, 1) self.verticalLayout.addLayout(self.gridLayout) self.w_out = WWSlotOut(PWSlot21) self.w_out.setObjectName("w_out") self.verticalLayout.addWidget(self.w_out) self.horizontalLayout.addLayout(self.verticalLayout) self.retranslateUi(PWSlot21) QtCore.QMetaObject.connectSlotsByName(PWSlot21) PWSlot21.setTabOrder(self.lf_W0, self.lf_W1) PWSlot21.setTabOrder(self.lf_W1, self.lf_W2) PWSlot21.setTabOrder(self.lf_W2, self.lf_H0) PWSlot21.setTabOrder(self.lf_H0, self.lf_H1) PWSlot21.setTabOrder(self.lf_H1, self.c_H1_unit) PWSlot21.setTabOrder(self.c_H1_unit, self.lf_H2) PWSlot21.setTabOrder(self.lf_H2, self.txt_constraint) def retranslateUi(self, PWSlot21): _translate = QtCore.QCoreApplication.translate PWSlot21.setWindowTitle(_translate("PWSlot21", "Form")) self.txt_constraint.setHtml( _translate( "PWSlot21", '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">\n' '<html><head><meta name="qrichtext" content="1" /><style type="text/css">\n' "p, li { white-space: pre-wrap; }\n" "</style></head><body style=\" font-family:'MS Shell Dlg 2'; font-size:7.8pt; font-weight:400; font-style:normal;\">\n" '<p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:12pt; font-weight:600; text-decoration: underline;">Constraints :</span></p>\n' '<p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:14pt;">W0 <= W1</span></p>\n' '<p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:14pt;">W0 <= W2</span></p></body></html>', ) ) self.in_W0.setText(_translate("PWSlot21", "W0 :")) self.unit_W1.setText(_translate("PWSlot21", "m")) self.in_W1.setText(_translate("PWSlot21", "W1 :")) self.unit_W0.setText(_translate("PWSlot21", "m")) self.in_W2.setText(_translate("PWSlot21", "W2 :")) self.unit_W2.setText(_translate("PWSlot21", "m")) self.in_H0.setText(_translate("PWSlot21", "H0 :")) self.unit_H0.setText(_translate("PWSlot21", "m")) self.in_H1.setText(_translate("PWSlot21", "H1 :")) self.c_H1_unit.setItemText(0, _translate("PWSlot21", "m")) self.c_H1_unit.setItemText(1, _translate("PWSlot21", "rad")) self.c_H1_unit.setItemText(2, _translate("PWSlot21", "deg")) self.in_H2.setText(_translate("PWSlot21", "H2 :")) self.unit_H2.setText(_translate("PWSlot21", "m"))
class Ui_PCondType12(object): def setupUi(self, PCondType12): PCondType12.setObjectName("PCondType12") PCondType12.resize(965, 672) self.horizontalLayout = QtWidgets.QHBoxLayout(PCondType12) self.horizontalLayout.setObjectName("horizontalLayout") self.img_cond = QtWidgets.QLabel(PCondType12) self.img_cond.setMinimumSize(QtCore.QSize(0, 0)) self.img_cond.setMaximumSize(QtCore.QSize(16777215, 16777215)) self.img_cond.setText("") self.img_cond.setPixmap( QtGui.QPixmap( ":/images/images/MachineSetup/WindParam/Cond_1_2.PNG")) self.img_cond.setScaledContents(True) self.img_cond.setObjectName("img_cond") self.horizontalLayout.addWidget(self.img_cond) self.verticalLayout_2 = QtWidgets.QVBoxLayout() self.verticalLayout_2.setObjectName("verticalLayout_2") self.gridLayout = QtWidgets.QGridLayout() self.gridLayout.setObjectName("gridLayout") self.in_Nwpc1 = QtWidgets.QLabel(PCondType12) self.in_Nwpc1.setMinimumSize(QtCore.QSize(60, 0)) self.in_Nwpc1.setObjectName("in_Nwpc1") self.gridLayout.addWidget(self.in_Nwpc1, 0, 0, 1, 1) self.si_Nwpc1 = QtWidgets.QSpinBox(PCondType12) self.si_Nwpc1.setMinimumSize(QtCore.QSize(70, 0)) self.si_Nwpc1.setProperty("value", 99) self.si_Nwpc1.setObjectName("si_Nwpc1") self.gridLayout.addWidget(self.si_Nwpc1, 0, 1, 1, 1) self.in_Wwire = QtWidgets.QLabel(PCondType12) self.in_Wwire.setMinimumSize(QtCore.QSize(40, 0)) self.in_Wwire.setObjectName("in_Wwire") self.gridLayout.addWidget(self.in_Wwire, 1, 0, 1, 1) self.lf_Wwire = FloatEdit(PCondType12) self.lf_Wwire.setMinimumSize(QtCore.QSize(50, 0)) self.lf_Wwire.setMaximumSize(QtCore.QSize(100, 20)) self.lf_Wwire.setObjectName("lf_Wwire") self.gridLayout.addWidget(self.lf_Wwire, 1, 1, 1, 1) self.unit_Wwire = QtWidgets.QLabel(PCondType12) self.unit_Wwire.setMinimumSize(QtCore.QSize(0, 0)) self.unit_Wwire.setObjectName("unit_Wwire") self.gridLayout.addWidget(self.unit_Wwire, 1, 2, 1, 1) self.in_Wins_wire = QtWidgets.QLabel(PCondType12) self.in_Wins_wire.setMinimumSize(QtCore.QSize(40, 0)) self.in_Wins_wire.setObjectName("in_Wins_wire") self.gridLayout.addWidget(self.in_Wins_wire, 2, 0, 1, 1) self.lf_Wins_wire = FloatEdit(PCondType12) self.lf_Wins_wire.setMinimumSize(QtCore.QSize(50, 0)) self.lf_Wins_wire.setMaximumSize(QtCore.QSize(100, 20)) self.lf_Wins_wire.setObjectName("lf_Wins_wire") self.gridLayout.addWidget(self.lf_Wins_wire, 2, 1, 1, 1) self.unit_Wins_wire = QtWidgets.QLabel(PCondType12) self.unit_Wins_wire.setMinimumSize(QtCore.QSize(0, 0)) self.unit_Wins_wire.setObjectName("unit_Wins_wire") self.gridLayout.addWidget(self.unit_Wins_wire, 2, 2, 1, 1) self.in_Wins_cond = QtWidgets.QLabel(PCondType12) self.in_Wins_cond.setObjectName("in_Wins_cond") self.gridLayout.addWidget(self.in_Wins_cond, 3, 0, 1, 1) self.lf_Wins_cond = FloatEdit(PCondType12) self.lf_Wins_cond.setMinimumSize(QtCore.QSize(50, 0)) self.lf_Wins_cond.setMaximumSize(QtCore.QSize(100, 20)) self.lf_Wins_cond.setObjectName("lf_Wins_cond") self.gridLayout.addWidget(self.lf_Wins_cond, 3, 1, 1, 1) self.unit_Wins_cond = QtWidgets.QLabel(PCondType12) self.unit_Wins_cond.setObjectName("unit_Wins_cond") self.gridLayout.addWidget(self.unit_Wins_cond, 3, 2, 1, 1) self.verticalLayout_2.addLayout(self.gridLayout) self.w_out = WCondOut(PCondType12) self.w_out.setObjectName("w_out") self.verticalLayout_2.addWidget(self.w_out) spacerItem = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) self.verticalLayout_2.addItem(spacerItem) self.horizontalLayout.addLayout(self.verticalLayout_2) self.retranslateUi(PCondType12) QtCore.QMetaObject.connectSlotsByName(PCondType12) PCondType12.setTabOrder(self.si_Nwpc1, self.lf_Wwire) PCondType12.setTabOrder(self.lf_Wwire, self.lf_Wins_wire) def retranslateUi(self, PCondType12): _translate = QtCore.QCoreApplication.translate PCondType12.setWindowTitle(_translate("PCondType12", "Form")) self.in_Nwpc1.setText(_translate("PCondType12", "Nwpc1 :")) self.in_Wwire.setText(_translate("PCondType12", "Wwire :")) self.unit_Wwire.setText(_translate("PCondType12", "m")) self.in_Wins_wire.setText(_translate("PCondType12", "Wins_wire :")) self.unit_Wins_wire.setText(_translate("PCondType12", "m")) self.in_Wins_cond.setText(_translate("PCondType12", "Wins_cond :")) self.unit_Wins_cond.setText(_translate("PCondType12", "m"))
class Ui_SMachineDimension(object): def setupUi(self, SMachineDimension): SMachineDimension.setObjectName("SMachineDimension") SMachineDimension.resize(650, 550) SMachineDimension.setMinimumSize(QtCore.QSize(650, 550)) self.horizontalLayout_2 = QtWidgets.QHBoxLayout(SMachineDimension) self.horizontalLayout_2.setObjectName("horizontalLayout_2") self.img_machine = QtWidgets.QLabel(SMachineDimension) self.img_machine.setMinimumSize(QtCore.QSize(400, 400)) self.img_machine.setMaximumSize(QtCore.QSize(16777215, 16777215)) self.img_machine.setText("") self.img_machine.setPixmap( QtGui.QPixmap( ":/images/images/MachineSetup/MachineDimension/Dim_IRS.png")) self.img_machine.setScaledContents(True) self.img_machine.setObjectName("img_machine") self.horizontalLayout_2.addWidget(self.img_machine) self.verticalLayout = QtWidgets.QVBoxLayout() self.verticalLayout.setObjectName("verticalLayout") self.g_stator = QtWidgets.QGroupBox(SMachineDimension) self.g_stator.setMinimumSize(QtCore.QSize(150, 0)) self.g_stator.setMaximumSize(QtCore.QSize(16777215, 16777215)) self.g_stator.setObjectName("g_stator") self.gridLayout_2 = QtWidgets.QGridLayout(self.g_stator) self.gridLayout_2.setObjectName("gridLayout_2") self.in_SRext = QtWidgets.QLabel(self.g_stator) self.in_SRext.setMinimumSize(QtCore.QSize(30, 0)) self.in_SRext.setObjectName("in_SRext") self.gridLayout_2.addWidget(self.in_SRext, 0, 0, 1, 1) self.lf_SRext = FloatEdit(self.g_stator) self.lf_SRext.setMaximumSize(QtCore.QSize(100, 16777215)) self.lf_SRext.setObjectName("lf_SRext") self.gridLayout_2.addWidget(self.lf_SRext, 0, 1, 1, 1) self.unit_SRext = QtWidgets.QLabel(self.g_stator) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.unit_SRext.sizePolicy().hasHeightForWidth()) self.unit_SRext.setSizePolicy(sizePolicy) self.unit_SRext.setObjectName("unit_SRext") self.gridLayout_2.addWidget(self.unit_SRext, 0, 2, 1, 1) self.in_SRint = QtWidgets.QLabel(self.g_stator) self.in_SRint.setMinimumSize(QtCore.QSize(30, 0)) self.in_SRint.setObjectName("in_SRint") self.gridLayout_2.addWidget(self.in_SRint, 1, 0, 1, 1) self.lf_SRint = FloatEdit(self.g_stator) self.lf_SRint.setMaximumSize(QtCore.QSize(100, 100)) self.lf_SRint.setObjectName("lf_SRint") self.gridLayout_2.addWidget(self.lf_SRint, 1, 1, 1, 1) self.unit_SRint = QtWidgets.QLabel(self.g_stator) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.unit_SRint.sizePolicy().hasHeightForWidth()) self.unit_SRint.setSizePolicy(sizePolicy) self.unit_SRint.setObjectName("unit_SRint") self.gridLayout_2.addWidget(self.unit_SRint, 1, 2, 1, 1) self.verticalLayout.addWidget(self.g_stator) self.g_rotor = QtWidgets.QGroupBox(SMachineDimension) self.g_rotor.setObjectName("g_rotor") self.gridLayout_3 = QtWidgets.QGridLayout(self.g_rotor) self.gridLayout_3.setObjectName("gridLayout_3") self.in_RRext = QtWidgets.QLabel(self.g_rotor) self.in_RRext.setMinimumSize(QtCore.QSize(30, 0)) self.in_RRext.setObjectName("in_RRext") self.gridLayout_3.addWidget(self.in_RRext, 0, 0, 1, 1) self.lf_RRext = FloatEdit(self.g_rotor) self.lf_RRext.setMaximumSize(QtCore.QSize(100, 16777215)) self.lf_RRext.setObjectName("lf_RRext") self.gridLayout_3.addWidget(self.lf_RRext, 0, 1, 1, 1) self.unit_RRext = QtWidgets.QLabel(self.g_rotor) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.unit_RRext.sizePolicy().hasHeightForWidth()) self.unit_RRext.setSizePolicy(sizePolicy) self.unit_RRext.setObjectName("unit_RRext") self.gridLayout_3.addWidget(self.unit_RRext, 0, 2, 1, 1) self.in_RRint = QtWidgets.QLabel(self.g_rotor) self.in_RRint.setMinimumSize(QtCore.QSize(30, 0)) self.in_RRint.setObjectName("in_RRint") self.gridLayout_3.addWidget(self.in_RRint, 1, 0, 1, 1) self.lf_RRint = FloatEdit(self.g_rotor) self.lf_RRint.setMaximumSize(QtCore.QSize(100, 100)) self.lf_RRint.setObjectName("lf_RRint") self.gridLayout_3.addWidget(self.lf_RRint, 1, 1, 1, 1) self.unit_RRint = QtWidgets.QLabel(self.g_rotor) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.unit_RRint.sizePolicy().hasHeightForWidth()) self.unit_RRint.setSizePolicy(sizePolicy) self.unit_RRint.setObjectName("unit_RRint") self.gridLayout_3.addWidget(self.unit_RRint, 1, 2, 1, 1) self.verticalLayout.addWidget(self.g_rotor) self.out_airgap = QtWidgets.QLabel(SMachineDimension) self.out_airgap.setObjectName("out_airgap") self.verticalLayout.addWidget(self.out_airgap) self.g_shaft = QtWidgets.QGroupBox(SMachineDimension) self.g_shaft.setMinimumSize(QtCore.QSize(0, 0)) self.g_shaft.setCheckable(True) self.g_shaft.setObjectName("g_shaft") self.horizontalLayout_5 = QtWidgets.QHBoxLayout(self.g_shaft) self.horizontalLayout_5.setObjectName("horizontalLayout_5") self.out_Drsh = QtWidgets.QLabel(self.g_shaft) self.out_Drsh.setObjectName("out_Drsh") self.horizontalLayout_5.addWidget(self.out_Drsh) self.verticalLayout.addWidget(self.g_shaft) self.g_frame = QtWidgets.QGroupBox(SMachineDimension) self.g_frame.setCheckable(True) self.g_frame.setObjectName("g_frame") self.gridLayout = QtWidgets.QGridLayout(self.g_frame) self.gridLayout.setObjectName("gridLayout") self.in_Wfra = QtWidgets.QLabel(self.g_frame) self.in_Wfra.setObjectName("in_Wfra") self.gridLayout.addWidget(self.in_Wfra, 0, 0, 1, 1) self.lf_Wfra = FloatEdit(self.g_frame) self.lf_Wfra.setMaximumSize(QtCore.QSize(100, 16777215)) self.lf_Wfra.setObjectName("lf_Wfra") self.gridLayout.addWidget(self.lf_Wfra, 0, 1, 1, 1) self.unit_Wfra = QtWidgets.QLabel(self.g_frame) self.unit_Wfra.setObjectName("unit_Wfra") self.gridLayout.addWidget(self.unit_Wfra, 0, 2, 1, 1) self.in_Lfra = QtWidgets.QLabel(self.g_frame) self.in_Lfra.setObjectName("in_Lfra") self.gridLayout.addWidget(self.in_Lfra, 1, 0, 1, 1) self.lf_Lfra = FloatEdit(self.g_frame) self.lf_Lfra.setMaximumSize(QtCore.QSize(100, 16777215)) self.lf_Lfra.setObjectName("lf_Lfra") self.gridLayout.addWidget(self.lf_Lfra, 1, 1, 1, 1) self.unit_Lfra = QtWidgets.QLabel(self.g_frame) self.unit_Lfra.setObjectName("unit_Lfra") self.gridLayout.addWidget(self.unit_Lfra, 1, 2, 1, 1) self.verticalLayout.addWidget(self.g_frame) spacerItem = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) self.verticalLayout.addItem(spacerItem) self.horizontalLayout = QtWidgets.QHBoxLayout() self.horizontalLayout.setObjectName("horizontalLayout") spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout.addItem(spacerItem1) self.b_previous = QtWidgets.QPushButton(SMachineDimension) self.b_previous.setObjectName("b_previous") self.horizontalLayout.addWidget(self.b_previous) self.b_next = QtWidgets.QPushButton(SMachineDimension) self.b_next.setObjectName("b_next") self.horizontalLayout.addWidget(self.b_next) self.verticalLayout.addLayout(self.horizontalLayout) self.horizontalLayout_2.addLayout(self.verticalLayout) self.retranslateUi(SMachineDimension) self.g_shaft.toggled["bool"].connect(self.out_Drsh.setVisible) self.g_frame.toggled["bool"].connect(self.in_Lfra.setVisible) self.g_frame.toggled["bool"].connect(self.unit_Lfra.setVisible) QtCore.QMetaObject.connectSlotsByName(SMachineDimension) def retranslateUi(self, SMachineDimension): _translate = QtCore.QCoreApplication.translate SMachineDimension.setWindowTitle( _translate("SMachineDimension", "Form")) self.g_stator.setTitle(_translate("SMachineDimension", "Stator")) self.in_SRext.setToolTip( _translate("SMachineDimension", "Stator external radius")) self.in_SRext.setText(_translate("SMachineDimension", "Rext:")) self.lf_SRext.setToolTip( _translate("SMachineDimension", "Stator external radius")) self.unit_SRext.setText(_translate("SMachineDimension", "m")) self.in_SRint.setToolTip( _translate("SMachineDimension", "Stator internal radius")) self.in_SRint.setText(_translate("SMachineDimension", "Rint:")) self.lf_SRint.setToolTip( _translate("SMachineDimension", "Stator internal radius")) self.unit_SRint.setText(_translate("SMachineDimension", "m")) self.g_rotor.setTitle(_translate("SMachineDimension", "Rotor")) self.in_RRext.setToolTip( _translate("SMachineDimension", "Rotor external radius")) self.in_RRext.setText(_translate("SMachineDimension", "Rext:")) self.lf_RRext.setToolTip( _translate("SMachineDimension", "Rotor external radius")) self.unit_RRext.setText(_translate("SMachineDimension", "m")) self.in_RRint.setToolTip( _translate("SMachineDimension", "Rotor internal radius")) self.in_RRint.setText(_translate("SMachineDimension", "Rint:")) self.lf_RRint.setToolTip( _translate("SMachineDimension", "Rotor internal radius")) self.unit_RRint.setText(_translate("SMachineDimension", "m")) self.out_airgap.setToolTip( _translate( "SMachineDimension", "mechanical airgap width (distance between stator bore and rotor bore radii)", )) self.out_airgap.setText(_translate("SMachineDimension", "airgap = ")) self.g_shaft.setTitle(_translate("SMachineDimension", "Shaft")) self.out_Drsh.setToolTip( _translate("SMachineDimension", "Shaft Diameter")) self.out_Drsh.setText( _translate("SMachineDimension", "Drsh = 2*Rotor.Rint")) self.g_frame.setTitle(_translate("SMachineDimension", "Frame")) self.in_Wfra.setToolTip(_translate("SMachineDimension", "Frame width")) self.in_Wfra.setWhatsThis( _translate("SMachineDimension", "Frame width")) self.in_Wfra.setText(_translate("SMachineDimension", "Wfra:")) self.lf_Wfra.setToolTip(_translate("SMachineDimension", "Frame width")) self.lf_Wfra.setWhatsThis( _translate("SMachineDimension", "Frame width")) self.unit_Wfra.setToolTip( _translate("SMachineDimension", "Frame width")) self.unit_Wfra.setWhatsThis( _translate("SMachineDimension", "Frame width")) self.unit_Wfra.setText(_translate("SMachineDimension", "m")) self.in_Lfra.setToolTip(_translate("SMachineDimension", "Frame length")) self.in_Lfra.setWhatsThis( _translate("SMachineDimension", "Frame length")) self.in_Lfra.setText(_translate("SMachineDimension", "Lfra:")) self.lf_Lfra.setToolTip(_translate("SMachineDimension", "Frame length")) self.lf_Lfra.setWhatsThis( _translate("SMachineDimension", "Frame length")) self.unit_Lfra.setToolTip( _translate("SMachineDimension", "Frame length")) self.unit_Lfra.setWhatsThis( _translate("SMachineDimension", "Frame length")) self.unit_Lfra.setText(_translate("SMachineDimension", "m")) self.b_previous.setText(_translate("SMachineDimension", "Previous")) self.b_next.setText(_translate("SMachineDimension", "Next"))
class Ui_PVentPolar(object): def setupUi(self, PVentPolar): PVentPolar.setObjectName("PVentPolar") PVentPolar.resize(630, 470) PVentPolar.setMinimumSize(QtCore.QSize(630, 470)) PVentPolar.setMaximumSize(QtCore.QSize(16777215, 16777215)) self.horizontalLayout = QtWidgets.QHBoxLayout(PVentPolar) self.horizontalLayout.setObjectName("horizontalLayout") self.verticalLayout_2 = QtWidgets.QVBoxLayout() self.verticalLayout_2.setObjectName("verticalLayout_2") self.img_vent = QtWidgets.QLabel(PVentPolar) sizePolicy = QtWidgets.QSizePolicy( QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding ) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.img_vent.sizePolicy().hasHeightForWidth()) self.img_vent.setSizePolicy(sizePolicy) self.img_vent.setMaximumSize(QtCore.QSize(16777215, 16777215)) self.img_vent.setText("") self.img_vent.setPixmap( QtGui.QPixmap(":/images/images/MachineSetup/LamParam/PolarVentDuct.png") ) self.img_vent.setScaledContents(True) self.img_vent.setObjectName("img_vent") self.verticalLayout_2.addWidget(self.img_vent) self.horizontalLayout.addLayout(self.verticalLayout_2) self.verticalLayout = QtWidgets.QVBoxLayout() self.verticalLayout.setObjectName("verticalLayout") self.gridLayout = QtWidgets.QGridLayout() self.gridLayout.setObjectName("gridLayout") self.in_Zh = QtWidgets.QLabel(PVentPolar) self.in_Zh.setObjectName("in_Zh") self.gridLayout.addWidget(self.in_Zh, 0, 0, 1, 1) self.in_H0 = QtWidgets.QLabel(PVentPolar) self.in_H0.setObjectName("in_H0") self.gridLayout.addWidget(self.in_H0, 1, 0, 1, 1) self.lf_H0 = FloatEdit(PVentPolar) self.lf_H0.setObjectName("lf_H0") self.gridLayout.addWidget(self.lf_H0, 1, 1, 1, 1) self.unit_H0 = QtWidgets.QLabel(PVentPolar) self.unit_H0.setObjectName("unit_H0") self.gridLayout.addWidget(self.unit_H0, 1, 2, 1, 1) self.in_D0 = QtWidgets.QLabel(PVentPolar) self.in_D0.setObjectName("in_D0") self.gridLayout.addWidget(self.in_D0, 2, 0, 1, 1) self.lf_D0 = FloatEdit(PVentPolar) self.lf_D0.setObjectName("lf_D0") self.gridLayout.addWidget(self.lf_D0, 2, 1, 1, 1) self.unit_D0 = QtWidgets.QLabel(PVentPolar) self.unit_D0.setObjectName("unit_D0") self.gridLayout.addWidget(self.unit_D0, 2, 2, 1, 1) self.in_W1 = QtWidgets.QLabel(PVentPolar) self.in_W1.setObjectName("in_W1") self.gridLayout.addWidget(self.in_W1, 3, 0, 1, 1) self.lf_W1 = FloatEdit(PVentPolar) self.lf_W1.setObjectName("lf_W1") self.gridLayout.addWidget(self.lf_W1, 3, 1, 1, 1) self.unit_W1 = QtWidgets.QLabel(PVentPolar) self.unit_W1.setObjectName("unit_W1") self.gridLayout.addWidget(self.unit_W1, 3, 2, 1, 1) self.in_Alpha0 = QtWidgets.QLabel(PVentPolar) self.in_Alpha0.setObjectName("in_Alpha0") self.gridLayout.addWidget(self.in_Alpha0, 4, 0, 1, 1) self.lf_Alpha0 = FloatEdit(PVentPolar) self.lf_Alpha0.setObjectName("lf_Alpha0") self.gridLayout.addWidget(self.lf_Alpha0, 4, 1, 1, 1) self.unit_Alpha0 = QtWidgets.QLabel(PVentPolar) self.unit_Alpha0.setObjectName("unit_Alpha0") self.gridLayout.addWidget(self.unit_Alpha0, 4, 2, 1, 1) self.si_Zh = QtWidgets.QSpinBox(PVentPolar) self.si_Zh.setObjectName("si_Zh") self.gridLayout.addWidget(self.si_Zh, 0, 1, 1, 1) self.verticalLayout.addLayout(self.gridLayout) self.w_out = WVentOut(PVentPolar) self.w_out.setObjectName("w_out") self.verticalLayout.addWidget(self.w_out) self.horizontalLayout.addLayout(self.verticalLayout) self.retranslateUi(PVentPolar) QtCore.QMetaObject.connectSlotsByName(PVentPolar) PVentPolar.setTabOrder(self.lf_H0, self.lf_D0) PVentPolar.setTabOrder(self.lf_D0, self.lf_Alpha0) def retranslateUi(self, PVentPolar): _translate = QtCore.QCoreApplication.translate PVentPolar.setWindowTitle(_translate("PVentPolar", "Form")) self.in_Zh.setText(_translate("PVentPolar", "Zh :")) self.in_H0.setText(_translate("PVentPolar", "H0 :")) self.unit_H0.setText(_translate("PVentPolar", "m")) self.in_D0.setText(_translate("PVentPolar", "D0 :")) self.unit_D0.setText(_translate("PVentPolar", "m")) self.in_W1.setText(_translate("PVentPolar", "W1 :")) self.unit_W1.setText(_translate("PVentPolar", "rad")) self.in_Alpha0.setText(_translate("PVentPolar", "Alpha0 :")) self.unit_Alpha0.setText(_translate("PVentPolar", "rad"))
def setupUi(self, SMachineDimension): SMachineDimension.setObjectName("SMachineDimension") SMachineDimension.resize(650, 550) SMachineDimension.setMinimumSize(QtCore.QSize(650, 550)) self.horizontalLayout_2 = QtWidgets.QHBoxLayout(SMachineDimension) self.horizontalLayout_2.setObjectName("horizontalLayout_2") self.img_machine = QtWidgets.QLabel(SMachineDimension) self.img_machine.setMinimumSize(QtCore.QSize(400, 400)) self.img_machine.setMaximumSize(QtCore.QSize(16777215, 16777215)) self.img_machine.setText("") self.img_machine.setPixmap( QtGui.QPixmap( ":/images/images/MachineSetup/MachineDimension/Dim_IRS.png")) self.img_machine.setScaledContents(True) self.img_machine.setObjectName("img_machine") self.horizontalLayout_2.addWidget(self.img_machine) self.verticalLayout_3 = QtWidgets.QVBoxLayout() self.verticalLayout_3.setObjectName("verticalLayout_3") self.g_stator = QtWidgets.QGroupBox(SMachineDimension) self.g_stator.setMinimumSize(QtCore.QSize(150, 0)) self.g_stator.setMaximumSize(QtCore.QSize(16777215, 16777215)) self.g_stator.setObjectName("g_stator") self.gridLayout_2 = QtWidgets.QGridLayout(self.g_stator) self.gridLayout_2.setObjectName("gridLayout_2") self.in_SRext = QtWidgets.QLabel(self.g_stator) self.in_SRext.setMinimumSize(QtCore.QSize(30, 0)) self.in_SRext.setObjectName("in_SRext") self.gridLayout_2.addWidget(self.in_SRext, 0, 0, 1, 1) self.lf_SRext = FloatEdit(self.g_stator) self.lf_SRext.setMaximumSize(QtCore.QSize(100, 16777215)) self.lf_SRext.setObjectName("lf_SRext") self.gridLayout_2.addWidget(self.lf_SRext, 0, 1, 1, 1) self.unit_SRext = QtWidgets.QLabel(self.g_stator) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.unit_SRext.sizePolicy().hasHeightForWidth()) self.unit_SRext.setSizePolicy(sizePolicy) self.unit_SRext.setObjectName("unit_SRext") self.gridLayout_2.addWidget(self.unit_SRext, 0, 2, 1, 1) self.in_SRint = QtWidgets.QLabel(self.g_stator) self.in_SRint.setMinimumSize(QtCore.QSize(30, 0)) self.in_SRint.setObjectName("in_SRint") self.gridLayout_2.addWidget(self.in_SRint, 1, 0, 1, 1) self.lf_SRint = FloatEdit(self.g_stator) self.lf_SRint.setMaximumSize(QtCore.QSize(100, 100)) self.lf_SRint.setObjectName("lf_SRint") self.gridLayout_2.addWidget(self.lf_SRint, 1, 1, 1, 1) self.unit_SRint = QtWidgets.QLabel(self.g_stator) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.unit_SRint.sizePolicy().hasHeightForWidth()) self.unit_SRint.setSizePolicy(sizePolicy) self.unit_SRint.setObjectName("unit_SRint") self.gridLayout_2.addWidget(self.unit_SRint, 1, 2, 1, 1) self.verticalLayout_3.addWidget(self.g_stator) self.g_rotor = QtWidgets.QGroupBox(SMachineDimension) self.g_rotor.setObjectName("g_rotor") self.gridLayout_3 = QtWidgets.QGridLayout(self.g_rotor) self.gridLayout_3.setObjectName("gridLayout_3") self.in_RRext = QtWidgets.QLabel(self.g_rotor) self.in_RRext.setMinimumSize(QtCore.QSize(30, 0)) self.in_RRext.setObjectName("in_RRext") self.gridLayout_3.addWidget(self.in_RRext, 0, 0, 1, 1) self.lf_RRext = FloatEdit(self.g_rotor) self.lf_RRext.setMaximumSize(QtCore.QSize(100, 16777215)) self.lf_RRext.setObjectName("lf_RRext") self.gridLayout_3.addWidget(self.lf_RRext, 0, 1, 1, 1) self.unit_RRext = QtWidgets.QLabel(self.g_rotor) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.unit_RRext.sizePolicy().hasHeightForWidth()) self.unit_RRext.setSizePolicy(sizePolicy) self.unit_RRext.setObjectName("unit_RRext") self.gridLayout_3.addWidget(self.unit_RRext, 0, 2, 1, 1) self.in_RRint = QtWidgets.QLabel(self.g_rotor) self.in_RRint.setMinimumSize(QtCore.QSize(30, 0)) self.in_RRint.setObjectName("in_RRint") self.gridLayout_3.addWidget(self.in_RRint, 1, 0, 1, 1) self.lf_RRint = FloatEdit(self.g_rotor) self.lf_RRint.setMaximumSize(QtCore.QSize(100, 100)) self.lf_RRint.setObjectName("lf_RRint") self.gridLayout_3.addWidget(self.lf_RRint, 1, 1, 1, 1) self.unit_RRint = QtWidgets.QLabel(self.g_rotor) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.unit_RRint.sizePolicy().hasHeightForWidth()) self.unit_RRint.setSizePolicy(sizePolicy) self.unit_RRint.setObjectName("unit_RRint") self.gridLayout_3.addWidget(self.unit_RRint, 1, 2, 1, 1) self.verticalLayout_3.addWidget(self.g_rotor) self.out_airgap = QtWidgets.QLabel(SMachineDimension) self.out_airgap.setObjectName("out_airgap") self.verticalLayout_3.addWidget(self.out_airgap) self.g_shaft = QtWidgets.QGroupBox(SMachineDimension) self.g_shaft.setMinimumSize(QtCore.QSize(0, 0)) self.g_shaft.setCheckable(True) self.g_shaft.setObjectName("g_shaft") self.verticalLayout = QtWidgets.QVBoxLayout(self.g_shaft) self.verticalLayout.setObjectName("verticalLayout") self.w_mat_0 = WMatSelect(self.g_shaft) self.w_mat_0.setMinimumSize(QtCore.QSize(100, 0)) self.w_mat_0.setObjectName("w_mat_0") self.verticalLayout.addWidget(self.w_mat_0) self.out_Drsh = QtWidgets.QLabel(self.g_shaft) self.out_Drsh.setObjectName("out_Drsh") self.verticalLayout.addWidget(self.out_Drsh) self.verticalLayout_3.addWidget(self.g_shaft) self.g_frame = QtWidgets.QGroupBox(SMachineDimension) self.g_frame.setCheckable(True) self.g_frame.setObjectName("g_frame") self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.g_frame) self.verticalLayout_2.setObjectName("verticalLayout_2") self.w_mat_1 = WMatSelect(self.g_frame) self.w_mat_1.setMinimumSize(QtCore.QSize(100, 0)) self.w_mat_1.setObjectName("w_mat_1") self.verticalLayout_2.addWidget(self.w_mat_1) self.gridLayout = QtWidgets.QGridLayout() self.gridLayout.setObjectName("gridLayout") self.lf_Lfra = FloatEdit(self.g_frame) self.lf_Lfra.setMaximumSize(QtCore.QSize(100, 16777215)) self.lf_Lfra.setObjectName("lf_Lfra") self.gridLayout.addWidget(self.lf_Lfra, 1, 1, 1, 1) self.in_Lfra = QtWidgets.QLabel(self.g_frame) self.in_Lfra.setObjectName("in_Lfra") self.gridLayout.addWidget(self.in_Lfra, 1, 0, 1, 1) self.lf_Wfra = FloatEdit(self.g_frame) self.lf_Wfra.setMaximumSize(QtCore.QSize(100, 16777215)) self.lf_Wfra.setObjectName("lf_Wfra") self.gridLayout.addWidget(self.lf_Wfra, 0, 1, 1, 1) self.in_Wfra = QtWidgets.QLabel(self.g_frame) self.in_Wfra.setObjectName("in_Wfra") self.gridLayout.addWidget(self.in_Wfra, 0, 0, 1, 1) self.unit_Lfra = QtWidgets.QLabel(self.g_frame) self.unit_Lfra.setObjectName("unit_Lfra") self.gridLayout.addWidget(self.unit_Lfra, 1, 2, 1, 1) self.unit_Wfra = QtWidgets.QLabel(self.g_frame) self.unit_Wfra.setObjectName("unit_Wfra") self.gridLayout.addWidget(self.unit_Wfra, 0, 2, 1, 1) self.verticalLayout_2.addLayout(self.gridLayout) self.verticalLayout_3.addWidget(self.g_frame) spacerItem = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) self.verticalLayout_3.addItem(spacerItem) self.horizontalLayout = QtWidgets.QHBoxLayout() self.horizontalLayout.setObjectName("horizontalLayout") spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout.addItem(spacerItem1) self.b_previous = QtWidgets.QPushButton(SMachineDimension) self.b_previous.setObjectName("b_previous") self.horizontalLayout.addWidget(self.b_previous) self.b_next = QtWidgets.QPushButton(SMachineDimension) self.b_next.setObjectName("b_next") self.horizontalLayout.addWidget(self.b_next) self.verticalLayout_3.addLayout(self.horizontalLayout) self.horizontalLayout_2.addLayout(self.verticalLayout_3) self.retranslateUi(SMachineDimension) self.g_shaft.toggled["bool"].connect(self.out_Drsh.setVisible) self.g_frame.toggled["bool"].connect(self.in_Lfra.setVisible) self.g_frame.toggled["bool"].connect(self.unit_Lfra.setVisible) QtCore.QMetaObject.connectSlotsByName(SMachineDimension)
def setupUi(self, PWSlot25): PWSlot25.setObjectName("PWSlot25") PWSlot25.resize(630, 470) PWSlot25.setMinimumSize(QtCore.QSize(630, 470)) PWSlot25.setMaximumSize(QtCore.QSize(16777215, 16777215)) self.horizontalLayout = QtWidgets.QHBoxLayout(PWSlot25) self.horizontalLayout.setObjectName("horizontalLayout") self.verticalLayout_2 = QtWidgets.QVBoxLayout() self.verticalLayout_2.setObjectName("verticalLayout_2") self.img_slot = QtWidgets.QLabel(PWSlot25) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.img_slot.sizePolicy().hasHeightForWidth()) self.img_slot.setSizePolicy(sizePolicy) self.img_slot.setMaximumSize(QtCore.QSize(16777215, 16777215)) self.img_slot.setText("") self.img_slot.setPixmap( QtGui.QPixmap(":/images/images/MachineSetup/WSlot/Slot_25.PNG")) self.img_slot.setScaledContents(True) self.img_slot.setObjectName("img_slot") self.verticalLayout_2.addWidget(self.img_slot) self.textEdit = QtWidgets.QTextEdit(PWSlot25) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.textEdit.sizePolicy().hasHeightForWidth()) self.textEdit.setSizePolicy(sizePolicy) self.textEdit.setMinimumSize(QtCore.QSize(0, 60)) self.textEdit.setMaximumSize(QtCore.QSize(16777215, 60)) self.textEdit.setObjectName("textEdit") self.verticalLayout_2.addWidget(self.textEdit) self.horizontalLayout.addLayout(self.verticalLayout_2) self.verticalLayout = QtWidgets.QVBoxLayout() self.verticalLayout.setObjectName("verticalLayout") self.gridLayout = QtWidgets.QGridLayout() self.gridLayout.setObjectName("gridLayout") self.in_W3 = QtWidgets.QLabel(PWSlot25) self.in_W3.setObjectName("in_W3") self.gridLayout.addWidget(self.in_W3, 0, 0, 1, 1) self.lf_W3 = FloatEdit(PWSlot25) self.lf_W3.setObjectName("lf_W3") self.gridLayout.addWidget(self.lf_W3, 0, 1, 1, 1) self.unit_W3 = QtWidgets.QLabel(PWSlot25) self.unit_W3.setObjectName("unit_W3") self.gridLayout.addWidget(self.unit_W3, 0, 2, 1, 1) self.in_W4 = QtWidgets.QLabel(PWSlot25) self.in_W4.setObjectName("in_W4") self.gridLayout.addWidget(self.in_W4, 1, 0, 1, 1) self.lf_W4 = FloatEdit(PWSlot25) self.lf_W4.setObjectName("lf_W4") self.gridLayout.addWidget(self.lf_W4, 1, 1, 1, 1) self.unit_W4 = QtWidgets.QLabel(PWSlot25) self.unit_W4.setObjectName("unit_W4") self.gridLayout.addWidget(self.unit_W4, 1, 2, 1, 1) self.in_H1 = QtWidgets.QLabel(PWSlot25) self.in_H1.setObjectName("in_H1") self.gridLayout.addWidget(self.in_H1, 2, 0, 1, 1) self.lf_H1 = FloatEdit(PWSlot25) self.lf_H1.setObjectName("lf_H1") self.gridLayout.addWidget(self.lf_H1, 2, 1, 1, 1) self.unit_H1 = QtWidgets.QLabel(PWSlot25) self.unit_H1.setObjectName("unit_H1") self.gridLayout.addWidget(self.unit_H1, 2, 2, 1, 1) self.in_H2 = QtWidgets.QLabel(PWSlot25) self.in_H2.setObjectName("in_H2") self.gridLayout.addWidget(self.in_H2, 3, 0, 1, 1) self.lf_H2 = FloatEdit(PWSlot25) self.lf_H2.setObjectName("lf_H2") self.gridLayout.addWidget(self.lf_H2, 3, 1, 1, 1) self.unit_H2 = QtWidgets.QLabel(PWSlot25) self.unit_H2.setObjectName("unit_H2") self.gridLayout.addWidget(self.unit_H2, 3, 2, 1, 1) self.verticalLayout.addLayout(self.gridLayout) self.w_out = WWSlotOut(PWSlot25) self.w_out.setObjectName("w_out") self.verticalLayout.addWidget(self.w_out) self.horizontalLayout.addLayout(self.verticalLayout) self.retranslateUi(PWSlot25) QtCore.QMetaObject.connectSlotsByName(PWSlot25)
def setupUi(self, DMatSetup): DMatSetup.setObjectName("DMatSetup") DMatSetup.resize(392, 451) self.verticalLayout = QtWidgets.QVBoxLayout(DMatSetup) self.verticalLayout.setObjectName("verticalLayout") self.horizontalLayout = QtWidgets.QHBoxLayout() self.horizontalLayout.setObjectName("horizontalLayout") self.in_name = QtWidgets.QLabel(DMatSetup) self.in_name.setObjectName("in_name") self.horizontalLayout.addWidget(self.in_name) self.le_name = QtWidgets.QLineEdit(DMatSetup) self.le_name.setText("") self.le_name.setObjectName("le_name") self.horizontalLayout.addWidget(self.le_name) self.verticalLayout.addLayout(self.horizontalLayout) self.horizontalLayout_33 = QtWidgets.QHBoxLayout() self.horizontalLayout_33.setObjectName("horizontalLayout_33") self.in_type_mat = QtWidgets.QLabel(DMatSetup) font = QtGui.QFont() font.setPointSize(8) font.setBold(False) font.setWeight(50) self.in_type_mat.setFont(font) self.in_type_mat.setObjectName("in_type_mat") self.horizontalLayout_33.addWidget(self.in_type_mat) self.c_type_mat = QtWidgets.QComboBox(DMatSetup) font = QtGui.QFont() font.setPointSize(8) font.setBold(False) font.setWeight(50) self.c_type_mat.setFont(font) self.c_type_mat.setObjectName("c_type_mat") self.c_type_mat.addItem("") self.c_type_mat.addItem("") self.c_type_mat.addItem("") self.horizontalLayout_33.addWidget(self.c_type_mat) self.verticalLayout.addLayout(self.horizontalLayout_33) self.is_isotropic = QtWidgets.QCheckBox(DMatSetup) self.is_isotropic.setObjectName("is_isotropic") self.verticalLayout.addWidget(self.is_isotropic) self.nav_phy = QtWidgets.QTabWidget(DMatSetup) self.nav_phy.setMinimumSize(QtCore.QSize(370, 0)) self.nav_phy.setObjectName("nav_phy") self.tab_elec = QtWidgets.QWidget() self.tab_elec.setObjectName("tab_elec") self.gridLayout_2 = QtWidgets.QGridLayout(self.tab_elec) self.gridLayout_2.setObjectName("gridLayout_2") self.in_rho_elec = QtWidgets.QLabel(self.tab_elec) font = QtGui.QFont() font.setPointSize(8) font.setBold(False) font.setWeight(50) self.in_rho_elec.setFont(font) self.in_rho_elec.setObjectName("in_rho_elec") self.gridLayout_2.addWidget(self.in_rho_elec, 0, 0, 1, 1) self.lf_rho_elec = FloatEdit(self.tab_elec) self.lf_rho_elec.setObjectName("lf_rho_elec") self.gridLayout_2.addWidget(self.lf_rho_elec, 0, 1, 1, 1) self.unit_rho_elec = QtWidgets.QLabel(self.tab_elec) font = QtGui.QFont() font.setPointSize(8) font.setBold(False) font.setWeight(50) self.unit_rho_elec.setFont(font) self.unit_rho_elec.setObjectName("unit_rho_elec") self.gridLayout_2.addWidget(self.unit_rho_elec, 0, 2, 1, 1) self.in_epsr = QtWidgets.QLabel(self.tab_elec) font = QtGui.QFont() font.setPointSize(8) font.setBold(False) font.setWeight(50) self.in_epsr.setFont(font) self.in_epsr.setObjectName("in_epsr") self.gridLayout_2.addWidget(self.in_epsr, 1, 0, 1, 1) self.lf_epsr = FloatEdit(self.tab_elec) self.lf_epsr.setObjectName("lf_epsr") self.gridLayout_2.addWidget(self.lf_epsr, 1, 1, 1, 1) self.nav_phy.addTab(self.tab_elec, "") self.tab_mag = QtWidgets.QWidget() self.tab_mag.setObjectName("tab_mag") self.verticalLayout_7 = QtWidgets.QVBoxLayout(self.tab_mag) self.verticalLayout_7.setObjectName("verticalLayout_7") self.horizontalLayout_44 = QtWidgets.QHBoxLayout() self.horizontalLayout_44.setObjectName("horizontalLayout_44") self.in_mur_lin = QtWidgets.QLabel(self.tab_mag) font = QtGui.QFont() font.setPointSize(8) font.setBold(False) font.setWeight(50) self.in_mur_lin.setFont(font) self.in_mur_lin.setObjectName("in_mur_lin") self.horizontalLayout_44.addWidget(self.in_mur_lin) self.lf_mur_lin = FloatEdit(self.tab_mag) self.lf_mur_lin.setObjectName("lf_mur_lin") self.horizontalLayout_44.addWidget(self.lf_mur_lin) self.verticalLayout_7.addLayout(self.horizontalLayout_44) self.nav_mag = QtWidgets.QStackedWidget(self.tab_mag) self.nav_mag.setObjectName("nav_mag") self.page_magnet = QtWidgets.QWidget() self.page_magnet.setObjectName("page_magnet") self.verticalLayout_3 = QtWidgets.QVBoxLayout(self.page_magnet) self.verticalLayout_3.setObjectName("verticalLayout_3") self.horizontalLayout_8 = QtWidgets.QHBoxLayout() self.horizontalLayout_8.setObjectName("horizontalLayout_8") self.in_Brm20 = QtWidgets.QLabel(self.page_magnet) font = QtGui.QFont() font.setPointSize(8) font.setBold(False) font.setWeight(50) self.in_Brm20.setFont(font) self.in_Brm20.setObjectName("in_Brm20") self.horizontalLayout_8.addWidget(self.in_Brm20) self.lf_Brm20 = FloatEdit(self.page_magnet) self.lf_Brm20.setObjectName("lf_Brm20") self.horizontalLayout_8.addWidget(self.lf_Brm20) self.unit_Brm20 = QtWidgets.QLabel(self.page_magnet) font = QtGui.QFont() font.setPointSize(8) font.setBold(False) font.setWeight(50) self.unit_Brm20.setFont(font) self.unit_Brm20.setObjectName("unit_Brm20") self.horizontalLayout_8.addWidget(self.unit_Brm20) self.verticalLayout_3.addLayout(self.horizontalLayout_8) self.horizontalLayout_9 = QtWidgets.QHBoxLayout() self.horizontalLayout_9.setObjectName("horizontalLayout_9") self.in_alpha_Br = QtWidgets.QLabel(self.page_magnet) font = QtGui.QFont() font.setPointSize(8) font.setBold(False) font.setWeight(50) self.in_alpha_Br.setFont(font) self.in_alpha_Br.setObjectName("in_alpha_Br") self.horizontalLayout_9.addWidget(self.in_alpha_Br) self.lf_alpha_Br = FloatEdit(self.page_magnet) self.lf_alpha_Br.setObjectName("lf_alpha_Br") self.horizontalLayout_9.addWidget(self.lf_alpha_Br) self.verticalLayout_3.addLayout(self.horizontalLayout_9) self.nav_mag.addWidget(self.page_magnet) self.page_lam = QtWidgets.QWidget() self.page_lam.setObjectName("page_lam") self.horizontalLayout_10 = QtWidgets.QHBoxLayout(self.page_lam) self.horizontalLayout_10.setObjectName("horizontalLayout_10") self.in_Wlam = QtWidgets.QLabel(self.page_lam) font = QtGui.QFont() font.setPointSize(8) font.setBold(False) font.setWeight(50) self.in_Wlam.setFont(font) self.in_Wlam.setObjectName("in_Wlam") self.horizontalLayout_10.addWidget(self.in_Wlam) self.lf_Wlam = FloatEdit(self.page_lam) self.lf_Wlam.setObjectName("lf_Wlam") self.horizontalLayout_10.addWidget(self.lf_Wlam) self.unit_Wlam = QtWidgets.QLabel(self.page_lam) font = QtGui.QFont() font.setPointSize(8) font.setBold(False) font.setWeight(50) self.unit_Wlam.setFont(font) self.unit_Wlam.setObjectName("unit_Wlam") self.horizontalLayout_10.addWidget(self.unit_Wlam) self.nav_mag.addWidget(self.page_lam) self.verticalLayout_7.addWidget(self.nav_mag) self.nav_phy.addTab(self.tab_mag, "") self.tab_mec = QtWidgets.QWidget() self.tab_mec.setObjectName("tab_mec") self.verticalLayout_12 = QtWidgets.QVBoxLayout(self.tab_mec) self.verticalLayout_12.setObjectName("verticalLayout_12") self.horizontalLayout_41 = QtWidgets.QHBoxLayout() self.horizontalLayout_41.setObjectName("horizontalLayout_41") self.in_rho_meca = QtWidgets.QLabel(self.tab_mec) font = QtGui.QFont() font.setPointSize(8) font.setBold(False) font.setWeight(50) self.in_rho_meca.setFont(font) self.in_rho_meca.setObjectName("in_rho_meca") self.horizontalLayout_41.addWidget(self.in_rho_meca) self.lf_rho_meca = FloatEdit(self.tab_mec) self.lf_rho_meca.setObjectName("lf_rho_meca") self.horizontalLayout_41.addWidget(self.lf_rho_meca) self.unit_rho_meca = QtWidgets.QLabel(self.tab_mec) font = QtGui.QFont() font.setPointSize(8) font.setBold(False) font.setWeight(50) self.unit_rho_meca.setFont(font) self.unit_rho_meca.setObjectName("unit_rho_meca") self.horizontalLayout_41.addWidget(self.unit_rho_meca) self.verticalLayout_12.addLayout(self.horizontalLayout_41) self.nav_meca = QtWidgets.QStackedWidget(self.tab_mec) self.nav_meca.setObjectName("nav_meca") self.page_niso_mec = QtWidgets.QWidget() self.page_niso_mec.setObjectName("page_niso_mec") self.verticalLayout_4 = QtWidgets.QVBoxLayout(self.page_niso_mec) self.verticalLayout_4.setObjectName("verticalLayout_4") self.g_young = QtWidgets.QGroupBox(self.page_niso_mec) self.g_young.setObjectName("g_young") self.horizontalLayout_2 = QtWidgets.QHBoxLayout(self.g_young) self.horizontalLayout_2.setObjectName("horizontalLayout_2") self.in_Ex = QtWidgets.QLabel(self.g_young) font = QtGui.QFont() font.setPointSize(8) font.setBold(False) font.setWeight(50) self.in_Ex.setFont(font) self.in_Ex.setObjectName("in_Ex") self.horizontalLayout_2.addWidget(self.in_Ex) self.lf_Ex = FloatEdit(self.g_young) self.lf_Ex.setObjectName("lf_Ex") self.horizontalLayout_2.addWidget(self.lf_Ex) self.in_Ey = QtWidgets.QLabel(self.g_young) font = QtGui.QFont() font.setPointSize(8) font.setBold(False) font.setWeight(50) self.in_Ey.setFont(font) self.in_Ey.setObjectName("in_Ey") self.horizontalLayout_2.addWidget(self.in_Ey) self.lf_Ey = FloatEdit(self.g_young) self.lf_Ey.setObjectName("lf_Ey") self.horizontalLayout_2.addWidget(self.lf_Ey) self.in_Ez = QtWidgets.QLabel(self.g_young) font = QtGui.QFont() font.setPointSize(8) font.setBold(False) font.setWeight(50) self.in_Ez.setFont(font) self.in_Ez.setObjectName("in_Ez") self.horizontalLayout_2.addWidget(self.in_Ez) self.lf_Ez = FloatEdit(self.g_young) self.lf_Ez.setObjectName("lf_Ez") self.horizontalLayout_2.addWidget(self.lf_Ez) self.verticalLayout_4.addWidget(self.g_young) self.g_poisson = QtWidgets.QGroupBox(self.page_niso_mec) self.g_poisson.setObjectName("g_poisson") self.horizontalLayout_3 = QtWidgets.QHBoxLayout(self.g_poisson) self.horizontalLayout_3.setObjectName("horizontalLayout_3") self.in_nu_xy = QtWidgets.QLabel(self.g_poisson) font = QtGui.QFont() font.setPointSize(8) font.setBold(False) font.setWeight(50) self.in_nu_xy.setFont(font) self.in_nu_xy.setObjectName("in_nu_xy") self.horizontalLayout_3.addWidget(self.in_nu_xy) self.lf_nu_xy = FloatEdit(self.g_poisson) self.lf_nu_xy.setObjectName("lf_nu_xy") self.horizontalLayout_3.addWidget(self.lf_nu_xy) self.in_nu_xz = QtWidgets.QLabel(self.g_poisson) font = QtGui.QFont() font.setPointSize(8) font.setBold(False) font.setWeight(50) self.in_nu_xz.setFont(font) self.in_nu_xz.setObjectName("in_nu_xz") self.horizontalLayout_3.addWidget(self.in_nu_xz) self.lf_nu_xz = FloatEdit(self.g_poisson) self.lf_nu_xz.setObjectName("lf_nu_xz") self.horizontalLayout_3.addWidget(self.lf_nu_xz) self.in_nu_yz = QtWidgets.QLabel(self.g_poisson) font = QtGui.QFont() font.setPointSize(8) font.setBold(False) font.setWeight(50) self.in_nu_yz.setFont(font) self.in_nu_yz.setObjectName("in_nu_yz") self.horizontalLayout_3.addWidget(self.in_nu_yz) self.lf_nu_yz = FloatEdit(self.g_poisson) self.lf_nu_yz.setObjectName("lf_nu_yz") self.horizontalLayout_3.addWidget(self.lf_nu_yz) self.verticalLayout_4.addWidget(self.g_poisson) self.g_shear = QtWidgets.QGroupBox(self.page_niso_mec) self.g_shear.setObjectName("g_shear") self.horizontalLayout_4 = QtWidgets.QHBoxLayout(self.g_shear) self.horizontalLayout_4.setObjectName("horizontalLayout_4") self.in_Gxy = QtWidgets.QLabel(self.g_shear) font = QtGui.QFont() font.setPointSize(8) font.setBold(False) font.setWeight(50) self.in_Gxy.setFont(font) self.in_Gxy.setObjectName("in_Gxy") self.horizontalLayout_4.addWidget(self.in_Gxy) self.lf_Gxy = FloatEdit(self.g_shear) self.lf_Gxy.setObjectName("lf_Gxy") self.horizontalLayout_4.addWidget(self.lf_Gxy) self.in_Gxz = QtWidgets.QLabel(self.g_shear) font = QtGui.QFont() font.setPointSize(8) font.setBold(False) font.setWeight(50) self.in_Gxz.setFont(font) self.in_Gxz.setObjectName("in_Gxz") self.horizontalLayout_4.addWidget(self.in_Gxz) self.lf_Gxz = FloatEdit(self.g_shear) self.lf_Gxz.setObjectName("lf_Gxz") self.horizontalLayout_4.addWidget(self.lf_Gxz) self.in_Gyz = QtWidgets.QLabel(self.g_shear) font = QtGui.QFont() font.setPointSize(8) font.setBold(False) font.setWeight(50) self.in_Gyz.setFont(font) self.in_Gyz.setObjectName("in_Gyz") self.horizontalLayout_4.addWidget(self.in_Gyz) self.lf_Gyz = FloatEdit(self.g_shear) self.lf_Gyz.setObjectName("lf_Gyz") self.horizontalLayout_4.addWidget(self.lf_Gyz) self.verticalLayout_4.addWidget(self.g_shear) self.nav_meca.addWidget(self.page_niso_mec) self.page_iso_mec = QtWidgets.QWidget() self.page_iso_mec.setObjectName("page_iso_mec") self.gridLayout_6 = QtWidgets.QGridLayout(self.page_iso_mec) self.gridLayout_6.setObjectName("gridLayout_6") self.in_E = QtWidgets.QLabel(self.page_iso_mec) font = QtGui.QFont() font.setPointSize(8) font.setBold(False) font.setWeight(50) self.in_E.setFont(font) self.in_E.setObjectName("in_E") self.gridLayout_6.addWidget(self.in_E, 0, 0, 1, 1) self.lf_E = FloatEdit(self.page_iso_mec) self.lf_E.setObjectName("lf_E") self.gridLayout_6.addWidget(self.lf_E, 0, 1, 1, 3) self.unit_E = QtWidgets.QLabel(self.page_iso_mec) self.unit_E.setObjectName("unit_E") self.gridLayout_6.addWidget(self.unit_E, 0, 4, 1, 1) self.in_nu = QtWidgets.QLabel(self.page_iso_mec) font = QtGui.QFont() font.setPointSize(8) font.setBold(False) font.setWeight(50) self.in_nu.setFont(font) self.in_nu.setObjectName("in_nu") self.gridLayout_6.addWidget(self.in_nu, 1, 0, 1, 3) self.lf_nu = FloatEdit(self.page_iso_mec) self.lf_nu.setObjectName("lf_nu") self.gridLayout_6.addWidget(self.lf_nu, 1, 3, 1, 1) self.in_G = QtWidgets.QLabel(self.page_iso_mec) font = QtGui.QFont() font.setPointSize(8) font.setBold(False) font.setWeight(50) self.in_G.setFont(font) self.in_G.setObjectName("in_G") self.gridLayout_6.addWidget(self.in_G, 2, 0, 1, 2) self.lf_G = FloatEdit(self.page_iso_mec) self.lf_G.setObjectName("lf_G") self.gridLayout_6.addWidget(self.lf_G, 2, 2, 1, 2) self.unit_G = QtWidgets.QLabel(self.page_iso_mec) self.unit_G.setObjectName("unit_G") self.gridLayout_6.addWidget(self.unit_G, 2, 4, 1, 1) self.nav_meca.addWidget(self.page_iso_mec) self.verticalLayout_12.addWidget(self.nav_meca) self.nav_phy.addTab(self.tab_mec, "") self.tab_ther = QtWidgets.QWidget() self.tab_ther.setObjectName("tab_ther") self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.tab_ther) self.verticalLayout_2.setObjectName("verticalLayout_2") self.g_lambda = QtWidgets.QGroupBox(self.tab_ther) self.g_lambda.setMaximumSize(QtCore.QSize(16777215, 80)) self.g_lambda.setObjectName("g_lambda") self.verticalLayout_11 = QtWidgets.QVBoxLayout(self.g_lambda) self.verticalLayout_11.setObjectName("verticalLayout_11") self.nav_ther = QtWidgets.QStackedWidget(self.g_lambda) self.nav_ther.setObjectName("nav_ther") self.page_niso_ther = QtWidgets.QWidget() self.page_niso_ther.setObjectName("page_niso_ther") self.horizontalLayout_5 = QtWidgets.QHBoxLayout(self.page_niso_ther) self.horizontalLayout_5.setObjectName("horizontalLayout_5") self.in_Lx = QtWidgets.QLabel(self.page_niso_ther) font = QtGui.QFont() font.setPointSize(8) font.setBold(False) font.setWeight(50) self.in_Lx.setFont(font) self.in_Lx.setObjectName("in_Lx") self.horizontalLayout_5.addWidget(self.in_Lx) self.lf_Lx = FloatEdit(self.page_niso_ther) self.lf_Lx.setObjectName("lf_Lx") self.horizontalLayout_5.addWidget(self.lf_Lx) self.in_Ly = QtWidgets.QLabel(self.page_niso_ther) font = QtGui.QFont() font.setPointSize(8) font.setBold(False) font.setWeight(50) self.in_Ly.setFont(font) self.in_Ly.setObjectName("in_Ly") self.horizontalLayout_5.addWidget(self.in_Ly) self.lf_Ly = FloatEdit(self.page_niso_ther) self.lf_Ly.setObjectName("lf_Ly") self.horizontalLayout_5.addWidget(self.lf_Ly) self.in_Lz = QtWidgets.QLabel(self.page_niso_ther) font = QtGui.QFont() font.setPointSize(8) font.setBold(False) font.setWeight(50) self.in_Lz.setFont(font) self.in_Lz.setObjectName("in_Lz") self.horizontalLayout_5.addWidget(self.in_Lz) self.lf_Lz = FloatEdit(self.page_niso_ther) self.lf_Lz.setObjectName("lf_Lz") self.horizontalLayout_5.addWidget(self.lf_Lz) self.nav_ther.addWidget(self.page_niso_ther) self.page_iso_ther = QtWidgets.QWidget() self.page_iso_ther.setObjectName("page_iso_ther") self.horizontalLayout_7 = QtWidgets.QHBoxLayout(self.page_iso_ther) self.horizontalLayout_7.setObjectName("horizontalLayout_7") self.in_L = QtWidgets.QLabel(self.page_iso_ther) font = QtGui.QFont() font.setPointSize(8) font.setBold(False) font.setWeight(50) self.in_L.setFont(font) self.in_L.setObjectName("in_L") self.horizontalLayout_7.addWidget(self.in_L) self.lf_L = FloatEdit(self.page_iso_ther) self.lf_L.setObjectName("lf_L") self.horizontalLayout_7.addWidget(self.lf_L) self.unit_L = QtWidgets.QLabel(self.page_iso_ther) self.unit_L.setObjectName("unit_L") self.horizontalLayout_7.addWidget(self.unit_L) self.nav_ther.addWidget(self.page_iso_ther) self.verticalLayout_11.addWidget(self.nav_ther) self.verticalLayout_2.addWidget(self.g_lambda) self.gridLayout_3 = QtWidgets.QGridLayout() self.gridLayout_3.setObjectName("gridLayout_3") self.in_Cp = QtWidgets.QLabel(self.tab_ther) font = QtGui.QFont() font.setPointSize(8) font.setBold(False) font.setWeight(50) self.in_Cp.setFont(font) self.in_Cp.setObjectName("in_Cp") self.gridLayout_3.addWidget(self.in_Cp, 0, 0, 1, 1) self.lf_Cp = FloatEdit(self.tab_ther) self.lf_Cp.setObjectName("lf_Cp") self.gridLayout_3.addWidget(self.lf_Cp, 0, 1, 1, 1) self.unit_Cp = QtWidgets.QLabel(self.tab_ther) font = QtGui.QFont() font.setPointSize(8) font.setBold(False) font.setWeight(50) self.unit_Cp.setFont(font) self.unit_Cp.setObjectName("unit_Cp") self.gridLayout_3.addWidget(self.unit_Cp, 0, 2, 1, 1) self.in_alpha = QtWidgets.QLabel(self.tab_ther) font = QtGui.QFont() font.setPointSize(8) font.setBold(False) font.setWeight(50) self.in_alpha.setFont(font) self.in_alpha.setObjectName("in_alpha") self.gridLayout_3.addWidget(self.in_alpha, 1, 0, 1, 1) self.lf_alpha = FloatEdit(self.tab_ther) self.lf_alpha.setObjectName("lf_alpha") self.gridLayout_3.addWidget(self.lf_alpha, 1, 1, 1, 1) self.verticalLayout_2.addLayout(self.gridLayout_3) self.nav_phy.addTab(self.tab_ther, "") self.tab_eco = QtWidgets.QWidget() self.tab_eco.setObjectName("tab_eco") self.verticalLayout_6 = QtWidgets.QVBoxLayout(self.tab_eco) self.verticalLayout_6.setObjectName("verticalLayout_6") self.horizontalLayout_6 = QtWidgets.QHBoxLayout() self.horizontalLayout_6.setObjectName("horizontalLayout_6") self.in_cost_unit = QtWidgets.QLabel(self.tab_eco) font = QtGui.QFont() font.setPointSize(8) font.setBold(False) font.setWeight(50) self.in_cost_unit.setFont(font) self.in_cost_unit.setObjectName("in_cost_unit") self.horizontalLayout_6.addWidget(self.in_cost_unit) self.lf_cost_unit = FloatEdit(self.tab_eco) self.lf_cost_unit.setObjectName("lf_cost_unit") self.horizontalLayout_6.addWidget(self.lf_cost_unit) self.unit_cost_unit = QtWidgets.QLabel(self.tab_eco) self.unit_cost_unit.setObjectName("unit_cost_unit") self.horizontalLayout_6.addWidget(self.unit_cost_unit) self.verticalLayout_6.addLayout(self.horizontalLayout_6) self.nav_phy.addTab(self.tab_eco, "") self.verticalLayout.addWidget(self.nav_phy) self.b_close = QtWidgets.QDialogButtonBox(DMatSetup) self.b_close.setOrientation(QtCore.Qt.Horizontal) self.b_close.setStandardButtons(QtWidgets.QDialogButtonBox.Cancel | QtWidgets.QDialogButtonBox.Save) self.b_close.setObjectName("b_close") self.verticalLayout.addWidget(self.b_close) self.retranslateUi(DMatSetup) self.nav_phy.setCurrentIndex(0) self.nav_mag.setCurrentIndex(0) self.nav_meca.setCurrentIndex(0) self.nav_ther.setCurrentIndex(1) self.b_close.accepted.connect(DMatSetup.accept) self.b_close.rejected.connect(DMatSetup.reject) QtCore.QMetaObject.connectSlotsByName(DMatSetup)
def setupUi(self, PCondType11): PCondType11.setObjectName("PCondType11") PCondType11.resize(1154, 544) self.horizontalLayout = QtWidgets.QHBoxLayout(PCondType11) self.horizontalLayout.setObjectName("horizontalLayout") self.img_cond = QtWidgets.QLabel(PCondType11) self.img_cond.setMinimumSize(QtCore.QSize(0, 0)) self.img_cond.setMaximumSize(QtCore.QSize(16777215, 16777215)) self.img_cond.setText("") self.img_cond.setPixmap( QtGui.QPixmap( ":/images/images/MachineSetup/WindParam/Cond_1_1.PNG")) self.img_cond.setScaledContents(True) self.img_cond.setObjectName("img_cond") self.horizontalLayout.addWidget(self.img_cond) self.verticalLayout_2 = QtWidgets.QVBoxLayout() self.verticalLayout_2.setObjectName("verticalLayout_2") self.gridLayout = QtWidgets.QGridLayout() self.gridLayout.setObjectName("gridLayout") self.si_Nwpc1_tan = QtWidgets.QSpinBox(PCondType11) self.si_Nwpc1_tan.setMinimumSize(QtCore.QSize(70, 0)) self.si_Nwpc1_tan.setProperty("value", 99) self.si_Nwpc1_tan.setObjectName("si_Nwpc1_tan") self.gridLayout.addWidget(self.si_Nwpc1_tan, 0, 1, 1, 1) self.lf_Wwire = FloatEdit(PCondType11) self.lf_Wwire.setMinimumSize(QtCore.QSize(50, 0)) self.lf_Wwire.setMaximumSize(QtCore.QSize(100, 100)) self.lf_Wwire.setObjectName("lf_Wwire") self.gridLayout.addWidget(self.lf_Wwire, 2, 1, 1, 1) self.in_Nwpc1_tan = QtWidgets.QLabel(PCondType11) self.in_Nwpc1_tan.setMinimumSize(QtCore.QSize(60, 0)) self.in_Nwpc1_tan.setObjectName("in_Nwpc1_tan") self.gridLayout.addWidget(self.in_Nwpc1_tan, 0, 0, 1, 1) self.si_Nwpc1_rad = QtWidgets.QSpinBox(PCondType11) self.si_Nwpc1_rad.setProperty("value", 99) self.si_Nwpc1_rad.setObjectName("si_Nwpc1_rad") self.gridLayout.addWidget(self.si_Nwpc1_rad, 1, 1, 1, 1) self.lf_Hwire = FloatEdit(PCondType11) self.lf_Hwire.setMinimumSize(QtCore.QSize(50, 0)) self.lf_Hwire.setMaximumSize(QtCore.QSize(100, 100)) self.lf_Hwire.setObjectName("lf_Hwire") self.gridLayout.addWidget(self.lf_Hwire, 3, 1, 1, 1) self.unit_Wwire = QtWidgets.QLabel(PCondType11) self.unit_Wwire.setMinimumSize(QtCore.QSize(0, 0)) self.unit_Wwire.setObjectName("unit_Wwire") self.gridLayout.addWidget(self.unit_Wwire, 2, 2, 1, 1) self.unit_Wins_wire = QtWidgets.QLabel(PCondType11) self.unit_Wins_wire.setMinimumSize(QtCore.QSize(0, 0)) self.unit_Wins_wire.setObjectName("unit_Wins_wire") self.gridLayout.addWidget(self.unit_Wins_wire, 4, 2, 1, 1) self.unit_Hwire = QtWidgets.QLabel(PCondType11) self.unit_Hwire.setMinimumSize(QtCore.QSize(0, 0)) self.unit_Hwire.setObjectName("unit_Hwire") self.gridLayout.addWidget(self.unit_Hwire, 3, 2, 1, 1) self.in_Wwire = QtWidgets.QLabel(PCondType11) self.in_Wwire.setMinimumSize(QtCore.QSize(40, 0)) self.in_Wwire.setObjectName("in_Wwire") self.gridLayout.addWidget(self.in_Wwire, 2, 0, 1, 1) self.in_Nwpc1_rad = QtWidgets.QLabel(PCondType11) self.in_Nwpc1_rad.setMinimumSize(QtCore.QSize(40, 0)) self.in_Nwpc1_rad.setObjectName("in_Nwpc1_rad") self.gridLayout.addWidget(self.in_Nwpc1_rad, 1, 0, 1, 1) self.lf_Wins_wire = FloatEdit(PCondType11) self.lf_Wins_wire.setMinimumSize(QtCore.QSize(50, 0)) self.lf_Wins_wire.setMaximumSize(QtCore.QSize(100, 100)) self.lf_Wins_wire.setObjectName("lf_Wins_wire") self.gridLayout.addWidget(self.lf_Wins_wire, 4, 1, 1, 1) self.in_Wins_wire = QtWidgets.QLabel(PCondType11) self.in_Wins_wire.setMinimumSize(QtCore.QSize(40, 0)) self.in_Wins_wire.setObjectName("in_Wins_wire") self.gridLayout.addWidget(self.in_Wins_wire, 4, 0, 1, 1) self.in_Hwire = QtWidgets.QLabel(PCondType11) self.in_Hwire.setMinimumSize(QtCore.QSize(40, 0)) self.in_Hwire.setObjectName("in_Hwire") self.gridLayout.addWidget(self.in_Hwire, 3, 0, 1, 1) self.verticalLayout_2.addLayout(self.gridLayout) self.w_out = WCondOut(PCondType11) self.w_out.setObjectName("w_out") self.verticalLayout_2.addWidget(self.w_out) spacerItem = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) self.verticalLayout_2.addItem(spacerItem) self.horizontalLayout.addLayout(self.verticalLayout_2) self.retranslateUi(PCondType11) QtCore.QMetaObject.connectSlotsByName(PCondType11) PCondType11.setTabOrder(self.si_Nwpc1_tan, self.si_Nwpc1_rad) PCondType11.setTabOrder(self.si_Nwpc1_rad, self.lf_Wwire) PCondType11.setTabOrder(self.lf_Wwire, self.lf_Hwire) PCondType11.setTabOrder(self.lf_Hwire, self.lf_Wins_wire)
class Ui_PWSlot60(object): def setupUi(self, PWSlot60): PWSlot60.setObjectName("PWSlot60") PWSlot60.resize(630, 470) PWSlot60.setMinimumSize(QtCore.QSize(630, 470)) PWSlot60.setMaximumSize(QtCore.QSize(16777215, 16777215)) self.horizontalLayout = QtWidgets.QHBoxLayout(PWSlot60) self.horizontalLayout.setObjectName("horizontalLayout") self.verticalLayout_2 = QtWidgets.QVBoxLayout() self.verticalLayout_2.setObjectName("verticalLayout_2") self.img_slot = QtWidgets.QLabel(PWSlot60) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.img_slot.sizePolicy().hasHeightForWidth()) self.img_slot.setSizePolicy(sizePolicy) self.img_slot.setMaximumSize(QtCore.QSize(16777215, 16777215)) self.img_slot.setText("") self.img_slot.setPixmap( QtGui.QPixmap(":/images/images/MachineSetup/WSlot/Slot_60.PNG")) self.img_slot.setScaledContents(True) self.img_slot.setObjectName("img_slot") self.verticalLayout_2.addWidget(self.img_slot) self.txt_constraint = QtWidgets.QTextEdit(PWSlot60) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.txt_constraint.sizePolicy().hasHeightForWidth()) self.txt_constraint.setSizePolicy(sizePolicy) self.txt_constraint.setMaximumSize(QtCore.QSize(16777215, 70)) self.txt_constraint.setVerticalScrollBarPolicy( QtCore.Qt.ScrollBarAlwaysOff) self.txt_constraint.setTextInteractionFlags( QtCore.Qt.TextSelectableByKeyboard | QtCore.Qt.TextSelectableByMouse) self.txt_constraint.setObjectName("txt_constraint") self.verticalLayout_2.addWidget(self.txt_constraint) self.horizontalLayout.addLayout(self.verticalLayout_2) self.verticalLayout = QtWidgets.QVBoxLayout() self.verticalLayout.setObjectName("verticalLayout") self.gridLayout = QtWidgets.QGridLayout() self.gridLayout.setObjectName("gridLayout") self.in_R1 = QtWidgets.QLabel(PWSlot60) self.in_R1.setObjectName("in_R1") self.gridLayout.addWidget(self.in_R1, 0, 0, 1, 1) self.lf_R1 = FloatEdit(PWSlot60) self.lf_R1.setObjectName("lf_R1") self.gridLayout.addWidget(self.lf_R1, 0, 1, 1, 1) self.unit_R1 = QtWidgets.QLabel(PWSlot60) self.unit_R1.setObjectName("unit_R1") self.gridLayout.addWidget(self.unit_R1, 0, 2, 1, 1) self.in_W1 = QtWidgets.QLabel(PWSlot60) self.in_W1.setObjectName("in_W1") self.gridLayout.addWidget(self.in_W1, 1, 0, 1, 1) self.lf_W1 = FloatEdit(PWSlot60) self.lf_W1.setObjectName("lf_W1") self.gridLayout.addWidget(self.lf_W1, 1, 1, 1, 1) self.unit_W1 = QtWidgets.QLabel(PWSlot60) self.unit_W1.setObjectName("unit_W1") self.gridLayout.addWidget(self.unit_W1, 1, 2, 1, 1) self.in_W2 = QtWidgets.QLabel(PWSlot60) self.in_W2.setObjectName("in_W2") self.gridLayout.addWidget(self.in_W2, 2, 0, 1, 1) self.lf_W2 = FloatEdit(PWSlot60) self.lf_W2.setObjectName("lf_W2") self.gridLayout.addWidget(self.lf_W2, 2, 1, 1, 1) self.unit_W2 = QtWidgets.QLabel(PWSlot60) self.unit_W2.setObjectName("unit_W2") self.gridLayout.addWidget(self.unit_W2, 2, 2, 1, 1) self.in_H1 = QtWidgets.QLabel(PWSlot60) self.in_H1.setObjectName("in_H1") self.gridLayout.addWidget(self.in_H1, 3, 0, 1, 1) self.lf_H1 = FloatEdit(PWSlot60) self.lf_H1.setObjectName("lf_H1") self.gridLayout.addWidget(self.lf_H1, 3, 1, 1, 1) self.unit_H1 = QtWidgets.QLabel(PWSlot60) self.unit_H1.setObjectName("unit_H1") self.gridLayout.addWidget(self.unit_H1, 3, 2, 1, 1) self.in_H2 = QtWidgets.QLabel(PWSlot60) self.in_H2.setObjectName("in_H2") self.gridLayout.addWidget(self.in_H2, 4, 0, 1, 1) self.lf_H2 = FloatEdit(PWSlot60) self.lf_H2.setObjectName("lf_H2") self.gridLayout.addWidget(self.lf_H2, 4, 1, 1, 1) self.unit_H2 = QtWidgets.QLabel(PWSlot60) self.unit_H2.setObjectName("unit_H2") self.gridLayout.addWidget(self.unit_H2, 4, 2, 1, 1) self.in_H3 = QtWidgets.QLabel(PWSlot60) self.in_H3.setObjectName("in_H3") self.gridLayout.addWidget(self.in_H3, 5, 0, 1, 1) self.lf_H3 = FloatEdit(PWSlot60) self.lf_H3.setObjectName("lf_H3") self.gridLayout.addWidget(self.lf_H3, 5, 1, 1, 1) self.unit_H3 = QtWidgets.QLabel(PWSlot60) self.unit_H3.setObjectName("unit_H3") self.gridLayout.addWidget(self.unit_H3, 5, 2, 1, 1) self.in_H4 = QtWidgets.QLabel(PWSlot60) self.in_H4.setObjectName("in_H4") self.gridLayout.addWidget(self.in_H4, 6, 0, 1, 1) self.lf_H4 = FloatEdit(PWSlot60) self.lf_H4.setObjectName("lf_H4") self.gridLayout.addWidget(self.lf_H4, 6, 1, 1, 1) self.unit_H4 = QtWidgets.QLabel(PWSlot60) self.unit_H4.setObjectName("unit_H4") self.gridLayout.addWidget(self.unit_H4, 6, 2, 1, 1) self.in_W3 = QtWidgets.QLabel(PWSlot60) self.in_W3.setObjectName("in_W3") self.gridLayout.addWidget(self.in_W3, 7, 0, 1, 1) self.lf_W3 = FloatEdit(PWSlot60) self.lf_W3.setObjectName("lf_W3") self.gridLayout.addWidget(self.lf_W3, 7, 1, 1, 1) self.unit_W3 = QtWidgets.QLabel(PWSlot60) self.unit_W3.setObjectName("unit_W3") self.gridLayout.addWidget(self.unit_W3, 7, 2, 1, 1) self.verticalLayout.addLayout(self.gridLayout) self.g_output = QtWidgets.QGroupBox(PWSlot60) self.g_output.setMinimumSize(QtCore.QSize(200, 0)) self.g_output.setObjectName("g_output") self.verticalLayout_3 = QtWidgets.QVBoxLayout(self.g_output) self.verticalLayout_3.setObjectName("verticalLayout_3") self.out_Wlam = QtWidgets.QLabel(self.g_output) self.out_Wlam.setObjectName("out_Wlam") self.verticalLayout_3.addWidget(self.out_Wlam) self.out_slot_height = QtWidgets.QLabel(self.g_output) self.out_slot_height.setObjectName("out_slot_height") self.verticalLayout_3.addWidget(self.out_slot_height) self.out_yoke_height = QtWidgets.QLabel(self.g_output) self.out_yoke_height.setObjectName("out_yoke_height") self.verticalLayout_3.addWidget(self.out_yoke_height) self.out_wind_surface = QtWidgets.QLabel(self.g_output) self.out_wind_surface.setObjectName("out_wind_surface") self.verticalLayout_3.addWidget(self.out_wind_surface) self.out_tot_surface = QtWidgets.QLabel(self.g_output) self.out_tot_surface.setObjectName("out_tot_surface") self.verticalLayout_3.addWidget(self.out_tot_surface) self.out_op_angle = QtWidgets.QLabel(self.g_output) self.out_op_angle.setObjectName("out_op_angle") self.verticalLayout_3.addWidget(self.out_op_angle) self.out_tooth_width = QtWidgets.QLabel(self.g_output) self.out_tooth_width.setObjectName("out_tooth_width") self.verticalLayout_3.addWidget(self.out_tooth_width) self.verticalLayout.addWidget(self.g_output) self.horizontalLayout.addLayout(self.verticalLayout) self.retranslateUi(PWSlot60) QtCore.QMetaObject.connectSlotsByName(PWSlot60) PWSlot60.setTabOrder(self.lf_R1, self.lf_W1) PWSlot60.setTabOrder(self.lf_W1, self.lf_W2) PWSlot60.setTabOrder(self.lf_W2, self.lf_H1) PWSlot60.setTabOrder(self.lf_H1, self.lf_H2) PWSlot60.setTabOrder(self.lf_H2, self.txt_constraint) def retranslateUi(self, PWSlot60): _translate = QtCore.QCoreApplication.translate PWSlot60.setWindowTitle(_translate("PWSlot60", "Form")) self.txt_constraint.setHtml( _translate( "PWSlot60", '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">\n' '<html><head><meta name="qrichtext" content="1" /><style type="text/css">\n' "p, li { white-space: pre-wrap; }\n" "</style></head><body style=\" font-family:'MS Shell Dlg 2'; font-size:7.8pt; font-weight:400; font-style:normal;\">\n" '<p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:12pt; font-weight:600; text-decoration: underline;">Constraints :</span></p>\n' '<p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:14pt;">R1 < Rbo</span></p>\n' '<p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:14pt;">W2< W1</span></p></body></html>', )) self.in_R1.setText(_translate("PWSlot60", "R1 :")) self.unit_R1.setText(_translate("PWSlot60", "m")) self.in_W1.setText(_translate("PWSlot60", "W1 :")) self.unit_W1.setText(_translate("PWSlot60", "m")) self.in_W2.setText(_translate("PWSlot60", "W2 :")) self.unit_W2.setText(_translate("PWSlot60", "m")) self.in_H1.setText(_translate("PWSlot60", "H1 :")) self.unit_H1.setText(_translate("PWSlot60", "m")) self.in_H2.setText(_translate("PWSlot60", "H2 :")) self.unit_H2.setText(_translate("PWSlot60", "m")) self.in_H3.setText(_translate("PWSlot60", "d_coil_pole_top :")) self.unit_H3.setText(_translate("PWSlot60", "m")) self.in_H4.setText(_translate("PWSlot60", "d_coil_pole_bot :")) self.unit_H4.setText(_translate("PWSlot60", "m")) self.in_W3.setText(_translate("PWSlot60", "d_coil_pole_edg :")) self.unit_W3.setText(_translate("PWSlot60", "m")) self.g_output.setTitle(_translate("PWSlot60", "Output")) self.out_Wlam.setText(_translate("PWSlot60", "Lamination width : ?")) self.out_slot_height.setText(_translate("PWSlot60", "Slot height : ?")) self.out_yoke_height.setText(_translate("PWSlot60", "Yoke height : ?")) self.out_wind_surface.setText( _translate("PWSlot60", "Winding surface : ?")) self.out_tot_surface.setText( _translate("PWSlot60", "Total surface : ?")) self.out_op_angle.setText(_translate("PWSlot60", "Opening angle : ?")) self.out_tooth_width.setText( _translate("PWSlot60", "Tooth average width : ?"))
class Ui_PHoleM52(object): def setupUi(self, PHoleM52): PHoleM52.setObjectName("PHoleM52") PHoleM52.resize(630, 470) PHoleM52.setMinimumSize(QtCore.QSize(630, 470)) PHoleM52.setMaximumSize(QtCore.QSize(16777215, 16777215)) self.horizontalLayout = QtWidgets.QHBoxLayout(PHoleM52) self.horizontalLayout.setObjectName("horizontalLayout") self.verticalLayout_3 = QtWidgets.QVBoxLayout() self.verticalLayout_3.setObjectName("verticalLayout_3") self.img_slot = QtWidgets.QLabel(PHoleM52) sizePolicy = QtWidgets.QSizePolicy( QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding ) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.img_slot.sizePolicy().hasHeightForWidth()) self.img_slot.setSizePolicy(sizePolicy) self.img_slot.setMinimumSize(QtCore.QSize(200, 0)) self.img_slot.setMaximumSize(QtCore.QSize(16777215, 16777215)) self.img_slot.setText("") self.img_slot.setPixmap( QtGui.QPixmap(":/images/images/MachineSetup/WSlot/Slot_52.PNG") ) self.img_slot.setScaledContents(True) self.img_slot.setObjectName("img_slot") self.verticalLayout_3.addWidget(self.img_slot) self.txt_constraint = QtWidgets.QTextEdit(PHoleM52) sizePolicy = QtWidgets.QSizePolicy( QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed ) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.txt_constraint.sizePolicy().hasHeightForWidth() ) self.txt_constraint.setSizePolicy(sizePolicy) self.txt_constraint.setMinimumSize(QtCore.QSize(200, 0)) self.txt_constraint.setMaximumSize(QtCore.QSize(16777215, 60)) self.txt_constraint.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff) self.txt_constraint.setTextInteractionFlags( QtCore.Qt.TextSelectableByKeyboard | QtCore.Qt.TextSelectableByMouse ) self.txt_constraint.setObjectName("txt_constraint") self.verticalLayout_3.addWidget(self.txt_constraint) self.horizontalLayout.addLayout(self.verticalLayout_3) self.verticalLayout_2 = QtWidgets.QVBoxLayout() self.verticalLayout_2.setObjectName("verticalLayout_2") self.gridLayout = QtWidgets.QGridLayout() self.gridLayout.setObjectName("gridLayout") self.in_W3 = QtWidgets.QLabel(PHoleM52) self.in_W3.setObjectName("in_W3") self.gridLayout.addWidget(self.in_W3, 4, 0, 1, 1) self.lf_W3 = FloatEdit(PHoleM52) self.lf_W3.setObjectName("lf_W3") self.gridLayout.addWidget(self.lf_W3, 4, 1, 1, 1) self.unit_W3 = QtWidgets.QLabel(PHoleM52) self.unit_W3.setObjectName("unit_W3") self.gridLayout.addWidget(self.unit_W3, 4, 2, 1, 1) self.lf_H0 = FloatEdit(PHoleM52) self.lf_H0.setObjectName("lf_H0") self.gridLayout.addWidget(self.lf_H0, 0, 1, 1, 1) self.in_H0 = QtWidgets.QLabel(PHoleM52) self.in_H0.setObjectName("in_H0") self.gridLayout.addWidget(self.in_H0, 0, 0, 1, 1) self.unit_H1 = QtWidgets.QLabel(PHoleM52) self.unit_H1.setObjectName("unit_H1") self.gridLayout.addWidget(self.unit_H1, 1, 2, 1, 1) self.lf_H1 = FloatEdit(PHoleM52) self.lf_H1.setObjectName("lf_H1") self.gridLayout.addWidget(self.lf_H1, 1, 1, 1, 1) self.in_H1 = QtWidgets.QLabel(PHoleM52) self.in_H1.setObjectName("in_H1") self.gridLayout.addWidget(self.in_H1, 1, 0, 1, 1) self.unit_H0 = QtWidgets.QLabel(PHoleM52) self.unit_H0.setObjectName("unit_H0") self.gridLayout.addWidget(self.unit_H0, 0, 2, 1, 1) self.in_H2 = QtWidgets.QLabel(PHoleM52) self.in_H2.setObjectName("in_H2") self.gridLayout.addWidget(self.in_H2, 2, 0, 1, 1) self.lf_H2 = FloatEdit(PHoleM52) self.lf_H2.setObjectName("lf_H2") self.gridLayout.addWidget(self.lf_H2, 2, 1, 1, 1) self.unit_H2 = QtWidgets.QLabel(PHoleM52) self.unit_H2.setObjectName("unit_H2") self.gridLayout.addWidget(self.unit_H2, 2, 2, 1, 1) self.in_W0 = QtWidgets.QLabel(PHoleM52) self.in_W0.setObjectName("in_W0") self.gridLayout.addWidget(self.in_W0, 3, 0, 1, 1) self.lf_W0 = FloatEdit(PHoleM52) self.lf_W0.setObjectName("lf_W0") self.gridLayout.addWidget(self.lf_W0, 3, 1, 1, 1) self.unit_W0 = QtWidgets.QLabel(PHoleM52) self.unit_W0.setObjectName("unit_W0") self.gridLayout.addWidget(self.unit_W0, 3, 2, 1, 1) self.verticalLayout_2.addLayout(self.gridLayout) self.g_output = QtWidgets.QGroupBox(PHoleM52) self.g_output.setMinimumSize(QtCore.QSize(200, 0)) self.g_output.setObjectName("g_output") self.verticalLayout = QtWidgets.QVBoxLayout(self.g_output) self.verticalLayout.setObjectName("verticalLayout") self.out_slot_surface = QtWidgets.QLabel(self.g_output) self.out_slot_surface.setObjectName("out_slot_surface") self.verticalLayout.addWidget(self.out_slot_surface) self.out_magnet_surface = QtWidgets.QLabel(self.g_output) self.out_magnet_surface.setObjectName("out_magnet_surface") self.verticalLayout.addWidget(self.out_magnet_surface) self.out_alpha = QtWidgets.QLabel(self.g_output) self.out_alpha.setObjectName("out_alpha") self.verticalLayout.addWidget(self.out_alpha) self.out_W1 = QtWidgets.QLabel(self.g_output) self.out_W1.setObjectName("out_W1") self.verticalLayout.addWidget(self.out_W1) self.verticalLayout_2.addWidget(self.g_output) self.horizontalLayout.addLayout(self.verticalLayout_2) self.retranslateUi(PHoleM52) QtCore.QMetaObject.connectSlotsByName(PHoleM52) PHoleM52.setTabOrder(self.lf_H0, self.lf_H1) PHoleM52.setTabOrder(self.lf_H1, self.lf_H2) PHoleM52.setTabOrder(self.lf_H2, self.lf_W0) PHoleM52.setTabOrder(self.lf_W0, self.lf_W3) PHoleM52.setTabOrder(self.lf_W3, self.txt_constraint) def retranslateUi(self, PHoleM52): _translate = QtCore.QCoreApplication.translate PHoleM52.setWindowTitle(_translate("PHoleM52", "Form")) self.txt_constraint.setHtml( _translate( "PHoleM52", '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">\n' '<html><head><meta name="qrichtext" content="1" /><style type="text/css">\n' "p, li { white-space: pre-wrap; }\n" "</style></head><body style=\" font-family:'MS Shell Dlg 2'; font-size:7.8pt; font-weight:400; font-style:normal;\">\n" '<p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:12pt; font-weight:600; text-decoration: underline;">Constraints :</span></p>\n' '<p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:14pt;">H2 < H1</span></p>\n' '<p align="center" style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-size:8pt;"><br /></p></body></html>', ) ) self.in_W3.setText(_translate("PHoleM52", "W3 :")) self.unit_W3.setText(_translate("PHoleM52", "m")) self.in_H0.setText(_translate("PHoleM52", "H0 :")) self.unit_H1.setText(_translate("PHoleM52", "m")) self.in_H1.setText(_translate("PHoleM52", "H1 :")) self.unit_H0.setText(_translate("PHoleM52", "m")) self.in_H2.setText(_translate("PHoleM52", "H2 :")) self.unit_H2.setText(_translate("PHoleM52", "m")) self.in_W0.setText(_translate("PHoleM52", "W0 :")) self.unit_W0.setText(_translate("PHoleM52", "m")) self.g_output.setTitle(_translate("PHoleM52", "Output")) self.out_slot_surface.setText(_translate("PHoleM52", "Slot suface : ?")) self.out_magnet_surface.setText(_translate("PHoleM52", "Magnet surface : ?")) self.out_alpha.setText(_translate("PHoleM52", "Alpha : ?")) self.out_W1.setText(_translate("PHoleM52", "W1 : ?"))
def setupUi(self, PWSlot60): PWSlot60.setObjectName("PWSlot60") PWSlot60.resize(630, 470) PWSlot60.setMinimumSize(QtCore.QSize(630, 470)) PWSlot60.setMaximumSize(QtCore.QSize(16777215, 16777215)) self.horizontalLayout = QtWidgets.QHBoxLayout(PWSlot60) self.horizontalLayout.setObjectName("horizontalLayout") self.verticalLayout_2 = QtWidgets.QVBoxLayout() self.verticalLayout_2.setObjectName("verticalLayout_2") self.img_slot = QtWidgets.QLabel(PWSlot60) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.img_slot.sizePolicy().hasHeightForWidth()) self.img_slot.setSizePolicy(sizePolicy) self.img_slot.setMaximumSize(QtCore.QSize(16777215, 16777215)) self.img_slot.setText("") self.img_slot.setPixmap( QtGui.QPixmap(":/images/images/MachineSetup/WSlot/Slot_60.PNG")) self.img_slot.setScaledContents(True) self.img_slot.setObjectName("img_slot") self.verticalLayout_2.addWidget(self.img_slot) self.txt_constraint = QtWidgets.QTextEdit(PWSlot60) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.txt_constraint.sizePolicy().hasHeightForWidth()) self.txt_constraint.setSizePolicy(sizePolicy) self.txt_constraint.setMaximumSize(QtCore.QSize(16777215, 70)) self.txt_constraint.setVerticalScrollBarPolicy( QtCore.Qt.ScrollBarAlwaysOff) self.txt_constraint.setTextInteractionFlags( QtCore.Qt.TextSelectableByKeyboard | QtCore.Qt.TextSelectableByMouse) self.txt_constraint.setObjectName("txt_constraint") self.verticalLayout_2.addWidget(self.txt_constraint) self.horizontalLayout.addLayout(self.verticalLayout_2) self.verticalLayout = QtWidgets.QVBoxLayout() self.verticalLayout.setObjectName("verticalLayout") self.gridLayout = QtWidgets.QGridLayout() self.gridLayout.setObjectName("gridLayout") self.in_R1 = QtWidgets.QLabel(PWSlot60) self.in_R1.setObjectName("in_R1") self.gridLayout.addWidget(self.in_R1, 0, 0, 1, 1) self.lf_R1 = FloatEdit(PWSlot60) self.lf_R1.setObjectName("lf_R1") self.gridLayout.addWidget(self.lf_R1, 0, 1, 1, 1) self.unit_R1 = QtWidgets.QLabel(PWSlot60) self.unit_R1.setObjectName("unit_R1") self.gridLayout.addWidget(self.unit_R1, 0, 2, 1, 1) self.in_W1 = QtWidgets.QLabel(PWSlot60) self.in_W1.setObjectName("in_W1") self.gridLayout.addWidget(self.in_W1, 1, 0, 1, 1) self.lf_W1 = FloatEdit(PWSlot60) self.lf_W1.setObjectName("lf_W1") self.gridLayout.addWidget(self.lf_W1, 1, 1, 1, 1) self.unit_W1 = QtWidgets.QLabel(PWSlot60) self.unit_W1.setObjectName("unit_W1") self.gridLayout.addWidget(self.unit_W1, 1, 2, 1, 1) self.in_W2 = QtWidgets.QLabel(PWSlot60) self.in_W2.setObjectName("in_W2") self.gridLayout.addWidget(self.in_W2, 2, 0, 1, 1) self.lf_W2 = FloatEdit(PWSlot60) self.lf_W2.setObjectName("lf_W2") self.gridLayout.addWidget(self.lf_W2, 2, 1, 1, 1) self.unit_W2 = QtWidgets.QLabel(PWSlot60) self.unit_W2.setObjectName("unit_W2") self.gridLayout.addWidget(self.unit_W2, 2, 2, 1, 1) self.in_H1 = QtWidgets.QLabel(PWSlot60) self.in_H1.setObjectName("in_H1") self.gridLayout.addWidget(self.in_H1, 3, 0, 1, 1) self.lf_H1 = FloatEdit(PWSlot60) self.lf_H1.setObjectName("lf_H1") self.gridLayout.addWidget(self.lf_H1, 3, 1, 1, 1) self.unit_H1 = QtWidgets.QLabel(PWSlot60) self.unit_H1.setObjectName("unit_H1") self.gridLayout.addWidget(self.unit_H1, 3, 2, 1, 1) self.in_H2 = QtWidgets.QLabel(PWSlot60) self.in_H2.setObjectName("in_H2") self.gridLayout.addWidget(self.in_H2, 4, 0, 1, 1) self.lf_H2 = FloatEdit(PWSlot60) self.lf_H2.setObjectName("lf_H2") self.gridLayout.addWidget(self.lf_H2, 4, 1, 1, 1) self.unit_H2 = QtWidgets.QLabel(PWSlot60) self.unit_H2.setObjectName("unit_H2") self.gridLayout.addWidget(self.unit_H2, 4, 2, 1, 1) self.in_H3 = QtWidgets.QLabel(PWSlot60) self.in_H3.setObjectName("in_H3") self.gridLayout.addWidget(self.in_H3, 5, 0, 1, 1) self.lf_H3 = FloatEdit(PWSlot60) self.lf_H3.setObjectName("lf_H3") self.gridLayout.addWidget(self.lf_H3, 5, 1, 1, 1) self.unit_H3 = QtWidgets.QLabel(PWSlot60) self.unit_H3.setObjectName("unit_H3") self.gridLayout.addWidget(self.unit_H3, 5, 2, 1, 1) self.in_H4 = QtWidgets.QLabel(PWSlot60) self.in_H4.setObjectName("in_H4") self.gridLayout.addWidget(self.in_H4, 6, 0, 1, 1) self.lf_H4 = FloatEdit(PWSlot60) self.lf_H4.setObjectName("lf_H4") self.gridLayout.addWidget(self.lf_H4, 6, 1, 1, 1) self.unit_H4 = QtWidgets.QLabel(PWSlot60) self.unit_H4.setObjectName("unit_H4") self.gridLayout.addWidget(self.unit_H4, 6, 2, 1, 1) self.in_W3 = QtWidgets.QLabel(PWSlot60) self.in_W3.setObjectName("in_W3") self.gridLayout.addWidget(self.in_W3, 7, 0, 1, 1) self.lf_W3 = FloatEdit(PWSlot60) self.lf_W3.setObjectName("lf_W3") self.gridLayout.addWidget(self.lf_W3, 7, 1, 1, 1) self.unit_W3 = QtWidgets.QLabel(PWSlot60) self.unit_W3.setObjectName("unit_W3") self.gridLayout.addWidget(self.unit_W3, 7, 2, 1, 1) self.verticalLayout.addLayout(self.gridLayout) self.g_output = QtWidgets.QGroupBox(PWSlot60) self.g_output.setMinimumSize(QtCore.QSize(200, 0)) self.g_output.setObjectName("g_output") self.verticalLayout_3 = QtWidgets.QVBoxLayout(self.g_output) self.verticalLayout_3.setObjectName("verticalLayout_3") self.out_Wlam = QtWidgets.QLabel(self.g_output) self.out_Wlam.setObjectName("out_Wlam") self.verticalLayout_3.addWidget(self.out_Wlam) self.out_slot_height = QtWidgets.QLabel(self.g_output) self.out_slot_height.setObjectName("out_slot_height") self.verticalLayout_3.addWidget(self.out_slot_height) self.out_yoke_height = QtWidgets.QLabel(self.g_output) self.out_yoke_height.setObjectName("out_yoke_height") self.verticalLayout_3.addWidget(self.out_yoke_height) self.out_wind_surface = QtWidgets.QLabel(self.g_output) self.out_wind_surface.setObjectName("out_wind_surface") self.verticalLayout_3.addWidget(self.out_wind_surface) self.out_tot_surface = QtWidgets.QLabel(self.g_output) self.out_tot_surface.setObjectName("out_tot_surface") self.verticalLayout_3.addWidget(self.out_tot_surface) self.out_op_angle = QtWidgets.QLabel(self.g_output) self.out_op_angle.setObjectName("out_op_angle") self.verticalLayout_3.addWidget(self.out_op_angle) self.out_tooth_width = QtWidgets.QLabel(self.g_output) self.out_tooth_width.setObjectName("out_tooth_width") self.verticalLayout_3.addWidget(self.out_tooth_width) self.verticalLayout.addWidget(self.g_output) self.horizontalLayout.addLayout(self.verticalLayout) self.retranslateUi(PWSlot60) QtCore.QMetaObject.connectSlotsByName(PWSlot60) PWSlot60.setTabOrder(self.lf_R1, self.lf_W1) PWSlot60.setTabOrder(self.lf_W1, self.lf_W2) PWSlot60.setTabOrder(self.lf_W2, self.lf_H1) PWSlot60.setTabOrder(self.lf_H1, self.lf_H2) PWSlot60.setTabOrder(self.lf_H2, self.txt_constraint)
def setupUi(self, PMagnet10): PMagnet10.setObjectName("PMagnet10") PMagnet10.resize(531, 222) PMagnet10.setMinimumSize(QtCore.QSize(0, 0)) self.horizontalLayout = QtWidgets.QHBoxLayout(PMagnet10) self.horizontalLayout.setObjectName("horizontalLayout") self.img_magnet = QtWidgets.QLabel(PMagnet10) self.img_magnet.setMinimumSize(QtCore.QSize(300, 200)) self.img_magnet.setMaximumSize(QtCore.QSize(550, 350)) self.img_magnet.setText("") self.img_magnet.setPixmap( QtGui.QPixmap( ":/images/images/MachineSetup/P_Magnet/Surface Magnet type 10.PNG" ) ) self.img_magnet.setScaledContents(True) self.img_magnet.setObjectName("img_magnet") self.horizontalLayout.addWidget(self.img_magnet) self.verticalLayout = QtWidgets.QVBoxLayout() self.verticalLayout.setObjectName("verticalLayout") self.gridLayout = QtWidgets.QGridLayout() self.gridLayout.setObjectName("gridLayout") self.lf_Wmag = FloatEdit(PMagnet10) self.lf_Wmag.setMinimumSize(QtCore.QSize(100, 0)) self.lf_Wmag.setMaximumSize(QtCore.QSize(100, 16777215)) self.lf_Wmag.setObjectName("lf_Wmag") self.gridLayout.addWidget(self.lf_Wmag, 0, 1, 1, 1) self.in_H0 = QtWidgets.QLabel(PMagnet10) self.in_H0.setObjectName("in_H0") self.gridLayout.addWidget(self.in_H0, 2, 0, 1, 1) self.unit_Hmag = QtWidgets.QLabel(PMagnet10) self.unit_Hmag.setObjectName("unit_Hmag") self.gridLayout.addWidget(self.unit_Hmag, 1, 2, 1, 1) self.lf_Hmag = FloatEdit(PMagnet10) self.lf_Hmag.setMinimumSize(QtCore.QSize(100, 0)) self.lf_Hmag.setMaximumSize(QtCore.QSize(100, 16777215)) self.lf_Hmag.setObjectName("lf_Hmag") self.gridLayout.addWidget(self.lf_Hmag, 1, 1, 1, 1) self.unit_Wmag = QtWidgets.QLabel(PMagnet10) self.unit_Wmag.setObjectName("unit_Wmag") self.gridLayout.addWidget(self.unit_Wmag, 0, 2, 1, 1) self.lf_H0 = FloatEdit(PMagnet10) self.lf_H0.setMinimumSize(QtCore.QSize(100, 0)) self.lf_H0.setMaximumSize(QtCore.QSize(100, 16777215)) self.lf_H0.setObjectName("lf_H0") self.gridLayout.addWidget(self.lf_H0, 2, 1, 1, 1) self.in_Hmag = QtWidgets.QLabel(PMagnet10) self.in_Hmag.setObjectName("in_Hmag") self.gridLayout.addWidget(self.in_Hmag, 1, 0, 1, 1) self.unit_H0 = QtWidgets.QLabel(PMagnet10) self.unit_H0.setObjectName("unit_H0") self.gridLayout.addWidget(self.unit_H0, 2, 2, 1, 1) self.in_Wmag = QtWidgets.QLabel(PMagnet10) self.in_Wmag.setObjectName("in_Wmag") self.gridLayout.addWidget(self.in_Wmag, 0, 0, 1, 1) self.verticalLayout.addLayout(self.gridLayout) self.w_out = WMagnetOut(PMagnet10) self.w_out.setObjectName("w_out") self.verticalLayout.addWidget(self.w_out) spacerItem = QtWidgets.QSpacerItem( 17, 18, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding ) self.verticalLayout.addItem(spacerItem) self.horizontalLayout.addLayout(self.verticalLayout) self.retranslateUi(PMagnet10) QtCore.QMetaObject.connectSlotsByName(PMagnet10) PMagnet10.setTabOrder(self.lf_Wmag, self.lf_Hmag) PMagnet10.setTabOrder(self.lf_Hmag, self.lf_H0)
def setupUi(self, PHoleM53): PHoleM53.setObjectName("PHoleM53") PHoleM53.resize(740, 440) PHoleM53.setMinimumSize(QtCore.QSize(740, 440)) PHoleM53.setMaximumSize(QtCore.QSize(16777215, 16777215)) self.horizontalLayout = QtWidgets.QHBoxLayout(PHoleM53) self.horizontalLayout.setObjectName("horizontalLayout") self.verticalLayout_3 = QtWidgets.QVBoxLayout() self.verticalLayout_3.setObjectName("verticalLayout_3") self.img_slot = QtWidgets.QLabel(PHoleM53) sizePolicy = QtWidgets.QSizePolicy( QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed ) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.img_slot.sizePolicy().hasHeightForWidth()) self.img_slot.setSizePolicy(sizePolicy) self.img_slot.setMinimumSize(QtCore.QSize(500, 191)) self.img_slot.setMaximumSize(QtCore.QSize(500, 191)) self.img_slot.setText("") self.img_slot.setPixmap( QtGui.QPixmap(":/images/images/MachineSetup/WSlot/Slot_53.PNG") ) self.img_slot.setScaledContents(True) self.img_slot.setObjectName("img_slot") self.verticalLayout_3.addWidget(self.img_slot) self.txt_constraint = QtWidgets.QTextEdit(PHoleM53) sizePolicy = QtWidgets.QSizePolicy( QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed ) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.txt_constraint.sizePolicy().hasHeightForWidth() ) self.txt_constraint.setSizePolicy(sizePolicy) self.txt_constraint.setMinimumSize(QtCore.QSize(200, 0)) self.txt_constraint.setMaximumSize(QtCore.QSize(16777215, 100)) self.txt_constraint.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff) self.txt_constraint.setTextInteractionFlags( QtCore.Qt.TextSelectableByKeyboard | QtCore.Qt.TextSelectableByMouse ) self.txt_constraint.setObjectName("txt_constraint") self.verticalLayout_3.addWidget(self.txt_constraint) spacerItem = QtWidgets.QSpacerItem( 20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding ) self.verticalLayout_3.addItem(spacerItem) self.horizontalLayout.addLayout(self.verticalLayout_3) self.verticalLayout_2 = QtWidgets.QVBoxLayout() self.verticalLayout_2.setObjectName("verticalLayout_2") self.gridLayout = QtWidgets.QGridLayout() self.gridLayout.setObjectName("gridLayout") self.in_H0 = QtWidgets.QLabel(PHoleM53) self.in_H0.setObjectName("in_H0") self.gridLayout.addWidget(self.in_H0, 0, 0, 1, 1) self.lf_H0 = FloatEdit(PHoleM53) self.lf_H0.setObjectName("lf_H0") self.gridLayout.addWidget(self.lf_H0, 0, 1, 1, 1) self.unit_H0 = QtWidgets.QLabel(PHoleM53) self.unit_H0.setObjectName("unit_H0") self.gridLayout.addWidget(self.unit_H0, 0, 2, 1, 1) self.in_H1 = QtWidgets.QLabel(PHoleM53) self.in_H1.setObjectName("in_H1") self.gridLayout.addWidget(self.in_H1, 1, 0, 1, 1) self.lf_H1 = FloatEdit(PHoleM53) self.lf_H1.setObjectName("lf_H1") self.gridLayout.addWidget(self.lf_H1, 1, 1, 1, 1) self.unit_H1 = QtWidgets.QLabel(PHoleM53) self.unit_H1.setObjectName("unit_H1") self.gridLayout.addWidget(self.unit_H1, 1, 2, 1, 1) self.in_H2 = QtWidgets.QLabel(PHoleM53) self.in_H2.setObjectName("in_H2") self.gridLayout.addWidget(self.in_H2, 2, 0, 1, 1) self.lf_H2 = FloatEdit(PHoleM53) self.lf_H2.setObjectName("lf_H2") self.gridLayout.addWidget(self.lf_H2, 2, 1, 1, 1) self.unit_H2 = QtWidgets.QLabel(PHoleM53) self.unit_H2.setObjectName("unit_H2") self.gridLayout.addWidget(self.unit_H2, 2, 2, 1, 1) self.in_H3 = QtWidgets.QLabel(PHoleM53) self.in_H3.setObjectName("in_H3") self.gridLayout.addWidget(self.in_H3, 3, 0, 1, 1) self.lf_H3 = FloatEdit(PHoleM53) self.lf_H3.setObjectName("lf_H3") self.gridLayout.addWidget(self.lf_H3, 3, 1, 1, 1) self.unit_H3 = QtWidgets.QLabel(PHoleM53) self.unit_H3.setObjectName("unit_H3") self.gridLayout.addWidget(self.unit_H3, 3, 2, 1, 1) self.in_W1 = QtWidgets.QLabel(PHoleM53) self.in_W1.setObjectName("in_W1") self.gridLayout.addWidget(self.in_W1, 4, 0, 1, 1) self.lf_W1 = FloatEdit(PHoleM53) self.lf_W1.setObjectName("lf_W1") self.gridLayout.addWidget(self.lf_W1, 4, 1, 1, 1) self.unit_W1 = QtWidgets.QLabel(PHoleM53) self.unit_W1.setObjectName("unit_W1") self.gridLayout.addWidget(self.unit_W1, 4, 2, 1, 1) self.in_W2 = QtWidgets.QLabel(PHoleM53) self.in_W2.setObjectName("in_W2") self.gridLayout.addWidget(self.in_W2, 5, 0, 1, 1) self.lf_W2 = FloatEdit(PHoleM53) self.lf_W2.setObjectName("lf_W2") self.gridLayout.addWidget(self.lf_W2, 5, 1, 1, 1) self.unit_W2 = QtWidgets.QLabel(PHoleM53) self.unit_W2.setObjectName("unit_W2") self.gridLayout.addWidget(self.unit_W2, 5, 2, 1, 1) self.in_W3 = QtWidgets.QLabel(PHoleM53) self.in_W3.setObjectName("in_W3") self.gridLayout.addWidget(self.in_W3, 6, 0, 1, 1) self.lf_W3 = FloatEdit(PHoleM53) self.lf_W3.setObjectName("lf_W3") self.gridLayout.addWidget(self.lf_W3, 6, 1, 1, 1) self.unit_W3 = QtWidgets.QLabel(PHoleM53) self.unit_W3.setObjectName("unit_W3") self.gridLayout.addWidget(self.unit_W3, 6, 2, 1, 1) self.in_W4 = QtWidgets.QLabel(PHoleM53) self.in_W4.setObjectName("in_W4") self.gridLayout.addWidget(self.in_W4, 7, 0, 1, 1) self.lf_W4 = FloatEdit(PHoleM53) self.lf_W4.setText("") self.lf_W4.setObjectName("lf_W4") self.gridLayout.addWidget(self.lf_W4, 7, 1, 1, 1) self.unit_W4 = QtWidgets.QLabel(PHoleM53) self.unit_W4.setObjectName("unit_W4") self.gridLayout.addWidget(self.unit_W4, 7, 2, 1, 1) self.verticalLayout_2.addLayout(self.gridLayout) self.w_mat_0 = WMatSelect(PHoleM53) self.w_mat_0.setMinimumSize(QtCore.QSize(100, 0)) self.w_mat_0.setObjectName("w_mat_0") self.verticalLayout_2.addWidget(self.w_mat_0) self.w_mat_1 = WMatSelect(PHoleM53) self.w_mat_1.setMinimumSize(QtCore.QSize(100, 0)) self.w_mat_1.setObjectName("w_mat_1") self.verticalLayout_2.addWidget(self.w_mat_1) self.g_output = QtWidgets.QGroupBox(PHoleM53) self.g_output.setMinimumSize(QtCore.QSize(200, 0)) self.g_output.setObjectName("g_output") self.verticalLayout = QtWidgets.QVBoxLayout(self.g_output) self.verticalLayout.setObjectName("verticalLayout") self.out_slot_surface = QtWidgets.QLabel(self.g_output) self.out_slot_surface.setObjectName("out_slot_surface") self.verticalLayout.addWidget(self.out_slot_surface) self.out_magnet_surface = QtWidgets.QLabel(self.g_output) self.out_magnet_surface.setObjectName("out_magnet_surface") self.verticalLayout.addWidget(self.out_magnet_surface) self.out_W5 = QtWidgets.QLabel(self.g_output) self.out_W5.setObjectName("out_W5") self.verticalLayout.addWidget(self.out_W5) spacerItem1 = QtWidgets.QSpacerItem( 20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding ) self.verticalLayout.addItem(spacerItem1) self.verticalLayout_2.addWidget(self.g_output) self.horizontalLayout.addLayout(self.verticalLayout_2) self.retranslateUi(PHoleM53) QtCore.QMetaObject.connectSlotsByName(PHoleM53) PHoleM53.setTabOrder(self.lf_H0, self.lf_H1) PHoleM53.setTabOrder(self.lf_H1, self.lf_H2) PHoleM53.setTabOrder(self.lf_H2, self.lf_H3) PHoleM53.setTabOrder(self.lf_H3, self.lf_W1) PHoleM53.setTabOrder(self.lf_W1, self.lf_W2) PHoleM53.setTabOrder(self.lf_W2, self.lf_W3) PHoleM53.setTabOrder(self.lf_W3, self.lf_W4) PHoleM53.setTabOrder(self.lf_W4, self.txt_constraint)
def setupUi(self, PWSlot12): PWSlot12.setObjectName("PWSlot12") PWSlot12.resize(630, 470) PWSlot12.setMinimumSize(QtCore.QSize(630, 470)) PWSlot12.setMaximumSize(QtCore.QSize(16777215, 16777215)) self.horizontalLayout = QtWidgets.QHBoxLayout(PWSlot12) self.horizontalLayout.setObjectName("horizontalLayout") self.verticalLayout_2 = QtWidgets.QVBoxLayout() self.verticalLayout_2.setObjectName("verticalLayout_2") self.img_slot = QtWidgets.QLabel(PWSlot12) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.img_slot.sizePolicy().hasHeightForWidth()) self.img_slot.setSizePolicy(sizePolicy) self.img_slot.setMaximumSize(QtCore.QSize(16777215, 16777215)) self.img_slot.setText("") self.img_slot.setPixmap( QtGui.QPixmap(":/images/images/MachineSetup/WSlot/Slot 12.PNG")) self.img_slot.setScaledContents(True) self.img_slot.setObjectName("img_slot") self.verticalLayout_2.addWidget(self.img_slot) self.horizontalLayout.addLayout(self.verticalLayout_2) self.verticalLayout = QtWidgets.QVBoxLayout() self.verticalLayout.setObjectName("verticalLayout") self.gridLayout = QtWidgets.QGridLayout() self.gridLayout.setObjectName("gridLayout") self.in_R1 = QtWidgets.QLabel(PWSlot12) self.in_R1.setObjectName("in_R1") self.gridLayout.addWidget(self.in_R1, 0, 0, 1, 1) self.lf_R1 = FloatEdit(PWSlot12) self.lf_R1.setObjectName("lf_R1") self.gridLayout.addWidget(self.lf_R1, 0, 1, 1, 1) self.unit_R1 = QtWidgets.QLabel(PWSlot12) self.unit_R1.setObjectName("unit_R1") self.gridLayout.addWidget(self.unit_R1, 0, 2, 1, 1) self.in_R2 = QtWidgets.QLabel(PWSlot12) self.in_R2.setObjectName("in_R2") self.gridLayout.addWidget(self.in_R2, 1, 0, 1, 1) self.lf_R2 = FloatEdit(PWSlot12) self.lf_R2.setObjectName("lf_R2") self.gridLayout.addWidget(self.lf_R2, 1, 1, 1, 1) self.unit_R2 = QtWidgets.QLabel(PWSlot12) self.unit_R2.setObjectName("unit_R2") self.gridLayout.addWidget(self.unit_R2, 1, 2, 1, 1) self.in_H0 = QtWidgets.QLabel(PWSlot12) self.in_H0.setObjectName("in_H0") self.gridLayout.addWidget(self.in_H0, 2, 0, 1, 1) self.lf_H0 = FloatEdit(PWSlot12) self.lf_H0.setObjectName("lf_H0") self.gridLayout.addWidget(self.lf_H0, 2, 1, 1, 1) self.unit_H0 = QtWidgets.QLabel(PWSlot12) self.unit_H0.setObjectName("unit_H0") self.gridLayout.addWidget(self.unit_H0, 2, 2, 1, 1) self.in_H1 = QtWidgets.QLabel(PWSlot12) self.in_H1.setObjectName("in_H1") self.gridLayout.addWidget(self.in_H1, 3, 0, 1, 1) self.lf_H1 = FloatEdit(PWSlot12) self.lf_H1.setObjectName("lf_H1") self.gridLayout.addWidget(self.lf_H1, 3, 1, 1, 1) self.unit_H1 = QtWidgets.QLabel(PWSlot12) self.unit_H1.setObjectName("unit_H1") self.gridLayout.addWidget(self.unit_H1, 3, 2, 1, 1) self.verticalLayout.addLayout(self.gridLayout) self.w_out = WWSlotOut(PWSlot12) self.w_out.setObjectName("w_out") self.verticalLayout.addWidget(self.w_out) self.horizontalLayout.addLayout(self.verticalLayout) self.retranslateUi(PWSlot12) QtCore.QMetaObject.connectSlotsByName(PWSlot12) PWSlot12.setTabOrder(self.lf_R1, self.lf_R2) PWSlot12.setTabOrder(self.lf_R2, self.lf_H0) PWSlot12.setTabOrder(self.lf_H0, self.lf_H1)
def setupUi(self, DMatSetup): DMatSetup.setObjectName("DMatSetup") DMatSetup.resize(388, 451) self.verticalLayout = QtWidgets.QVBoxLayout(DMatSetup) self.verticalLayout.setObjectName("verticalLayout") self.horizontalLayout = QtWidgets.QHBoxLayout() self.horizontalLayout.setObjectName("horizontalLayout") self.in_name = QtWidgets.QLabel(DMatSetup) self.in_name.setObjectName("in_name") self.horizontalLayout.addWidget(self.in_name) self.le_name = QtWidgets.QLineEdit(DMatSetup) self.le_name.setText("") self.le_name.setObjectName("le_name") self.horizontalLayout.addWidget(self.le_name) self.verticalLayout.addLayout(self.horizontalLayout) self.is_isotropic = QtWidgets.QCheckBox(DMatSetup) self.is_isotropic.setObjectName("is_isotropic") self.verticalLayout.addWidget(self.is_isotropic) self.nav_phy = QtWidgets.QTabWidget(DMatSetup) self.nav_phy.setMinimumSize(QtCore.QSize(370, 0)) self.nav_phy.setObjectName("nav_phy") self.tab_elec = QtWidgets.QWidget() self.tab_elec.setObjectName("tab_elec") self.gridLayout_2 = QtWidgets.QGridLayout(self.tab_elec) self.gridLayout_2.setObjectName("gridLayout_2") self.lf_rho_elec = FloatEdit(self.tab_elec) self.lf_rho_elec.setObjectName("lf_rho_elec") self.gridLayout_2.addWidget(self.lf_rho_elec, 0, 1, 1, 1) self.lf_epsr = FloatEdit(self.tab_elec) self.lf_epsr.setObjectName("lf_epsr") self.gridLayout_2.addWidget(self.lf_epsr, 1, 1, 1, 1) self.unit_rho_elec = QtWidgets.QLabel(self.tab_elec) font = QtGui.QFont() font.setPointSize(8) font.setBold(False) font.setWeight(50) self.unit_rho_elec.setFont(font) self.unit_rho_elec.setObjectName("unit_rho_elec") self.gridLayout_2.addWidget(self.unit_rho_elec, 0, 2, 1, 1) self.in_epsr = QtWidgets.QLabel(self.tab_elec) font = QtGui.QFont() font.setPointSize(8) font.setBold(False) font.setWeight(50) self.in_epsr.setFont(font) self.in_epsr.setObjectName("in_epsr") self.gridLayout_2.addWidget(self.in_epsr, 1, 0, 1, 1) self.in_rho_elec = QtWidgets.QLabel(self.tab_elec) font = QtGui.QFont() font.setPointSize(8) font.setBold(False) font.setWeight(50) self.in_rho_elec.setFont(font) self.in_rho_elec.setObjectName("in_rho_elec") self.gridLayout_2.addWidget(self.in_rho_elec, 0, 0, 1, 1) spacerItem = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) self.gridLayout_2.addItem(spacerItem, 2, 1, 1, 1) self.nav_phy.addTab(self.tab_elec, "") self.tab_mag = QtWidgets.QWidget() self.tab_mag.setObjectName("tab_mag") self.gridLayout = QtWidgets.QGridLayout(self.tab_mag) self.gridLayout.setObjectName("gridLayout") self.unit_Brm20 = QtWidgets.QLabel(self.tab_mag) font = QtGui.QFont() font.setPointSize(8) font.setBold(False) font.setWeight(50) self.unit_Brm20.setFont(font) self.unit_Brm20.setObjectName("unit_Brm20") self.gridLayout.addWidget(self.unit_Brm20, 1, 2, 1, 1) self.lf_alpha_Br = FloatEdit(self.tab_mag) self.lf_alpha_Br.setObjectName("lf_alpha_Br") self.gridLayout.addWidget(self.lf_alpha_Br, 2, 1, 1, 1) spacerItem1 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) self.gridLayout.addItem(spacerItem1, 5, 1, 1, 1) self.in_Wlam = QtWidgets.QLabel(self.tab_mag) font = QtGui.QFont() font.setPointSize(8) font.setBold(False) font.setWeight(50) self.in_Wlam.setFont(font) self.in_Wlam.setObjectName("in_Wlam") self.gridLayout.addWidget(self.in_Wlam, 3, 0, 1, 1) self.lf_Brm20 = FloatEdit(self.tab_mag) self.lf_Brm20.setObjectName("lf_Brm20") self.gridLayout.addWidget(self.lf_Brm20, 1, 1, 1, 1) self.in_mur_lin = QtWidgets.QLabel(self.tab_mag) font = QtGui.QFont() font.setPointSize(8) font.setBold(False) font.setWeight(50) self.in_mur_lin.setFont(font) self.in_mur_lin.setObjectName("in_mur_lin") self.gridLayout.addWidget(self.in_mur_lin, 0, 0, 1, 1) self.lf_mur_lin = FloatEdit(self.tab_mag) self.lf_mur_lin.setObjectName("lf_mur_lin") self.gridLayout.addWidget(self.lf_mur_lin, 0, 1, 1, 1) self.in_alpha_Br = QtWidgets.QLabel(self.tab_mag) font = QtGui.QFont() font.setPointSize(8) font.setBold(False) font.setWeight(50) self.in_alpha_Br.setFont(font) self.in_alpha_Br.setObjectName("in_alpha_Br") self.gridLayout.addWidget(self.in_alpha_Br, 2, 0, 1, 1) self.lf_Wlam = FloatEdit(self.tab_mag) self.lf_Wlam.setObjectName("lf_Wlam") self.gridLayout.addWidget(self.lf_Wlam, 3, 1, 1, 1) self.unit_Wlam = QtWidgets.QLabel(self.tab_mag) font = QtGui.QFont() font.setPointSize(8) font.setBold(False) font.setWeight(50) self.unit_Wlam.setFont(font) self.unit_Wlam.setObjectName("unit_Wlam") self.gridLayout.addWidget(self.unit_Wlam, 3, 2, 1, 1) self.in_Brm20 = QtWidgets.QLabel(self.tab_mag) font = QtGui.QFont() font.setPointSize(8) font.setBold(False) font.setWeight(50) self.in_Brm20.setFont(font) self.in_Brm20.setObjectName("in_Brm20") self.gridLayout.addWidget(self.in_Brm20, 1, 0, 1, 1) self.group_BH = QtWidgets.QGroupBox(self.tab_mag) self.group_BH.setObjectName("group_BH") self.gridLayout_4 = QtWidgets.QGridLayout(self.group_BH) self.gridLayout_4.setContentsMargins(4, 4, 4, 4) self.gridLayout_4.setObjectName("gridLayout_4") self.in_BH_file = QtWidgets.QLabel(self.group_BH) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.in_BH_file.sizePolicy().hasHeightForWidth()) self.in_BH_file.setSizePolicy(sizePolicy) self.in_BH_file.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.in_BH_file.setObjectName("in_BH_file") self.gridLayout_4.addWidget(self.in_BH_file, 0, 1, 1, 1) self.in_file = QtWidgets.QLabel(self.group_BH) self.in_file.setObjectName("in_file") self.gridLayout_4.addWidget(self.in_file, 0, 0, 1, 1) self.horizontalLayout_8 = QtWidgets.QHBoxLayout() self.horizontalLayout_8.setContentsMargins(0, -1, 0, -1) self.horizontalLayout_8.setSpacing(1) self.horizontalLayout_8.setObjectName("horizontalLayout_8") spacerItem2 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_8.addItem(spacerItem2) self.b_new = QtWidgets.QPushButton(self.group_BH) self.b_new.setEnabled(False) self.b_new.setObjectName("b_new") self.horizontalLayout_8.addWidget(self.b_new) self.b_edit = QtWidgets.QPushButton(self.group_BH) self.b_edit.setEnabled(False) self.b_edit.setObjectName("b_edit") self.horizontalLayout_8.addWidget(self.b_edit) self.b_plot = QtWidgets.QPushButton(self.group_BH) self.b_plot.setEnabled(False) self.b_plot.setObjectName("b_plot") self.horizontalLayout_8.addWidget(self.b_plot) self.b_xls = QtWidgets.QPushButton(self.group_BH) self.b_xls.setObjectName("b_xls") self.horizontalLayout_8.addWidget(self.b_xls) self.b_csv = QtWidgets.QPushButton(self.group_BH) self.b_csv.setEnabled(False) self.b_csv.setObjectName("b_csv") self.horizontalLayout_8.addWidget(self.b_csv) self.gridLayout_4.addLayout(self.horizontalLayout_8, 3, 0, 1, 2) self.gridLayout.addWidget(self.group_BH, 4, 0, 1, 3) self.nav_phy.addTab(self.tab_mag, "") self.tab_mec = QtWidgets.QWidget() self.tab_mec.setObjectName("tab_mec") self.verticalLayout_12 = QtWidgets.QVBoxLayout(self.tab_mec) self.verticalLayout_12.setObjectName("verticalLayout_12") self.horizontalLayout_41 = QtWidgets.QHBoxLayout() self.horizontalLayout_41.setObjectName("horizontalLayout_41") self.in_rho_meca = QtWidgets.QLabel(self.tab_mec) font = QtGui.QFont() font.setPointSize(8) font.setBold(False) font.setWeight(50) self.in_rho_meca.setFont(font) self.in_rho_meca.setObjectName("in_rho_meca") self.horizontalLayout_41.addWidget(self.in_rho_meca) self.lf_rho_meca = FloatEdit(self.tab_mec) self.lf_rho_meca.setObjectName("lf_rho_meca") self.horizontalLayout_41.addWidget(self.lf_rho_meca) self.unit_rho_meca = QtWidgets.QLabel(self.tab_mec) font = QtGui.QFont() font.setPointSize(8) font.setBold(False) font.setWeight(50) self.unit_rho_meca.setFont(font) self.unit_rho_meca.setObjectName("unit_rho_meca") self.horizontalLayout_41.addWidget(self.unit_rho_meca) self.verticalLayout_12.addLayout(self.horizontalLayout_41) self.nav_meca = QtWidgets.QStackedWidget(self.tab_mec) self.nav_meca.setObjectName("nav_meca") self.page_niso_mec = QtWidgets.QWidget() self.page_niso_mec.setObjectName("page_niso_mec") self.verticalLayout_4 = QtWidgets.QVBoxLayout(self.page_niso_mec) self.verticalLayout_4.setObjectName("verticalLayout_4") self.g_young = QtWidgets.QGroupBox(self.page_niso_mec) self.g_young.setObjectName("g_young") self.horizontalLayout_2 = QtWidgets.QHBoxLayout(self.g_young) self.horizontalLayout_2.setObjectName("horizontalLayout_2") self.in_Ex = QtWidgets.QLabel(self.g_young) font = QtGui.QFont() font.setPointSize(8) font.setBold(False) font.setWeight(50) self.in_Ex.setFont(font) self.in_Ex.setObjectName("in_Ex") self.horizontalLayout_2.addWidget(self.in_Ex) self.lf_Ex = FloatEdit(self.g_young) self.lf_Ex.setObjectName("lf_Ex") self.horizontalLayout_2.addWidget(self.lf_Ex) self.in_Ey = QtWidgets.QLabel(self.g_young) font = QtGui.QFont() font.setPointSize(8) font.setBold(False) font.setWeight(50) self.in_Ey.setFont(font) self.in_Ey.setObjectName("in_Ey") self.horizontalLayout_2.addWidget(self.in_Ey) self.lf_Ey = FloatEdit(self.g_young) self.lf_Ey.setObjectName("lf_Ey") self.horizontalLayout_2.addWidget(self.lf_Ey) self.in_Ez = QtWidgets.QLabel(self.g_young) font = QtGui.QFont() font.setPointSize(8) font.setBold(False) font.setWeight(50) self.in_Ez.setFont(font) self.in_Ez.setObjectName("in_Ez") self.horizontalLayout_2.addWidget(self.in_Ez) self.lf_Ez = FloatEdit(self.g_young) self.lf_Ez.setObjectName("lf_Ez") self.horizontalLayout_2.addWidget(self.lf_Ez) self.verticalLayout_4.addWidget(self.g_young) self.g_poisson = QtWidgets.QGroupBox(self.page_niso_mec) self.g_poisson.setObjectName("g_poisson") self.horizontalLayout_3 = QtWidgets.QHBoxLayout(self.g_poisson) self.horizontalLayout_3.setObjectName("horizontalLayout_3") self.in_nu_xy = QtWidgets.QLabel(self.g_poisson) font = QtGui.QFont() font.setPointSize(8) font.setBold(False) font.setWeight(50) self.in_nu_xy.setFont(font) self.in_nu_xy.setObjectName("in_nu_xy") self.horizontalLayout_3.addWidget(self.in_nu_xy) self.lf_nu_xy = FloatEdit(self.g_poisson) self.lf_nu_xy.setObjectName("lf_nu_xy") self.horizontalLayout_3.addWidget(self.lf_nu_xy) self.in_nu_xz = QtWidgets.QLabel(self.g_poisson) font = QtGui.QFont() font.setPointSize(8) font.setBold(False) font.setWeight(50) self.in_nu_xz.setFont(font) self.in_nu_xz.setObjectName("in_nu_xz") self.horizontalLayout_3.addWidget(self.in_nu_xz) self.lf_nu_xz = FloatEdit(self.g_poisson) self.lf_nu_xz.setObjectName("lf_nu_xz") self.horizontalLayout_3.addWidget(self.lf_nu_xz) self.in_nu_yz = QtWidgets.QLabel(self.g_poisson) font = QtGui.QFont() font.setPointSize(8) font.setBold(False) font.setWeight(50) self.in_nu_yz.setFont(font) self.in_nu_yz.setObjectName("in_nu_yz") self.horizontalLayout_3.addWidget(self.in_nu_yz) self.lf_nu_yz = FloatEdit(self.g_poisson) self.lf_nu_yz.setObjectName("lf_nu_yz") self.horizontalLayout_3.addWidget(self.lf_nu_yz) self.verticalLayout_4.addWidget(self.g_poisson) self.g_shear = QtWidgets.QGroupBox(self.page_niso_mec) self.g_shear.setObjectName("g_shear") self.horizontalLayout_4 = QtWidgets.QHBoxLayout(self.g_shear) self.horizontalLayout_4.setObjectName("horizontalLayout_4") self.in_Gxy = QtWidgets.QLabel(self.g_shear) font = QtGui.QFont() font.setPointSize(8) font.setBold(False) font.setWeight(50) self.in_Gxy.setFont(font) self.in_Gxy.setObjectName("in_Gxy") self.horizontalLayout_4.addWidget(self.in_Gxy) self.lf_Gxy = FloatEdit(self.g_shear) self.lf_Gxy.setObjectName("lf_Gxy") self.horizontalLayout_4.addWidget(self.lf_Gxy) self.in_Gxz = QtWidgets.QLabel(self.g_shear) font = QtGui.QFont() font.setPointSize(8) font.setBold(False) font.setWeight(50) self.in_Gxz.setFont(font) self.in_Gxz.setObjectName("in_Gxz") self.horizontalLayout_4.addWidget(self.in_Gxz) self.lf_Gxz = FloatEdit(self.g_shear) self.lf_Gxz.setObjectName("lf_Gxz") self.horizontalLayout_4.addWidget(self.lf_Gxz) self.in_Gyz = QtWidgets.QLabel(self.g_shear) font = QtGui.QFont() font.setPointSize(8) font.setBold(False) font.setWeight(50) self.in_Gyz.setFont(font) self.in_Gyz.setObjectName("in_Gyz") self.horizontalLayout_4.addWidget(self.in_Gyz) self.lf_Gyz = FloatEdit(self.g_shear) self.lf_Gyz.setObjectName("lf_Gyz") self.horizontalLayout_4.addWidget(self.lf_Gyz) self.verticalLayout_4.addWidget(self.g_shear) spacerItem3 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) self.verticalLayout_4.addItem(spacerItem3) self.nav_meca.addWidget(self.page_niso_mec) self.page_iso_mec = QtWidgets.QWidget() self.page_iso_mec.setObjectName("page_iso_mec") self.gridLayout_6 = QtWidgets.QGridLayout(self.page_iso_mec) self.gridLayout_6.setObjectName("gridLayout_6") self.in_E = QtWidgets.QLabel(self.page_iso_mec) font = QtGui.QFont() font.setPointSize(8) font.setBold(False) font.setWeight(50) self.in_E.setFont(font) self.in_E.setObjectName("in_E") self.gridLayout_6.addWidget(self.in_E, 0, 0, 1, 1) self.lf_G = FloatEdit(self.page_iso_mec) self.lf_G.setObjectName("lf_G") self.gridLayout_6.addWidget(self.lf_G, 2, 2, 1, 2) spacerItem4 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) self.gridLayout_6.addItem(spacerItem4, 4, 3, 1, 1) self.unit_G = QtWidgets.QLabel(self.page_iso_mec) self.unit_G.setObjectName("unit_G") self.gridLayout_6.addWidget(self.unit_G, 2, 4, 1, 1) self.lf_E = FloatEdit(self.page_iso_mec) self.lf_E.setObjectName("lf_E") self.gridLayout_6.addWidget(self.lf_E, 0, 1, 1, 3) self.in_G = QtWidgets.QLabel(self.page_iso_mec) font = QtGui.QFont() font.setPointSize(8) font.setBold(False) font.setWeight(50) self.in_G.setFont(font) self.in_G.setObjectName("in_G") self.gridLayout_6.addWidget(self.in_G, 2, 0, 1, 2) self.in_nu = QtWidgets.QLabel(self.page_iso_mec) font = QtGui.QFont() font.setPointSize(8) font.setBold(False) font.setWeight(50) self.in_nu.setFont(font) self.in_nu.setObjectName("in_nu") self.gridLayout_6.addWidget(self.in_nu, 1, 0, 1, 3) self.lf_nu = FloatEdit(self.page_iso_mec) self.lf_nu.setObjectName("lf_nu") self.gridLayout_6.addWidget(self.lf_nu, 1, 3, 1, 1) self.unit_E = QtWidgets.QLabel(self.page_iso_mec) self.unit_E.setObjectName("unit_E") self.gridLayout_6.addWidget(self.unit_E, 0, 4, 1, 1) self.nav_meca.addWidget(self.page_iso_mec) self.verticalLayout_12.addWidget(self.nav_meca) self.nav_phy.addTab(self.tab_mec, "") self.tab_ther = QtWidgets.QWidget() self.tab_ther.setObjectName("tab_ther") self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.tab_ther) self.verticalLayout_2.setObjectName("verticalLayout_2") self.g_lambda = QtWidgets.QGroupBox(self.tab_ther) self.g_lambda.setMaximumSize(QtCore.QSize(16777215, 80)) self.g_lambda.setObjectName("g_lambda") self.verticalLayout_11 = QtWidgets.QVBoxLayout(self.g_lambda) self.verticalLayout_11.setObjectName("verticalLayout_11") self.nav_ther = QtWidgets.QStackedWidget(self.g_lambda) self.nav_ther.setObjectName("nav_ther") self.page_niso_ther = QtWidgets.QWidget() self.page_niso_ther.setObjectName("page_niso_ther") self.horizontalLayout_5 = QtWidgets.QHBoxLayout(self.page_niso_ther) self.horizontalLayout_5.setObjectName("horizontalLayout_5") self.in_Lx = QtWidgets.QLabel(self.page_niso_ther) font = QtGui.QFont() font.setPointSize(8) font.setBold(False) font.setWeight(50) self.in_Lx.setFont(font) self.in_Lx.setObjectName("in_Lx") self.horizontalLayout_5.addWidget(self.in_Lx) self.lf_Lx = FloatEdit(self.page_niso_ther) self.lf_Lx.setObjectName("lf_Lx") self.horizontalLayout_5.addWidget(self.lf_Lx) self.in_Ly = QtWidgets.QLabel(self.page_niso_ther) font = QtGui.QFont() font.setPointSize(8) font.setBold(False) font.setWeight(50) self.in_Ly.setFont(font) self.in_Ly.setObjectName("in_Ly") self.horizontalLayout_5.addWidget(self.in_Ly) self.lf_Ly = FloatEdit(self.page_niso_ther) self.lf_Ly.setObjectName("lf_Ly") self.horizontalLayout_5.addWidget(self.lf_Ly) self.in_Lz = QtWidgets.QLabel(self.page_niso_ther) font = QtGui.QFont() font.setPointSize(8) font.setBold(False) font.setWeight(50) self.in_Lz.setFont(font) self.in_Lz.setObjectName("in_Lz") self.horizontalLayout_5.addWidget(self.in_Lz) self.lf_Lz = FloatEdit(self.page_niso_ther) self.lf_Lz.setObjectName("lf_Lz") self.horizontalLayout_5.addWidget(self.lf_Lz) self.nav_ther.addWidget(self.page_niso_ther) self.page_iso_ther = QtWidgets.QWidget() self.page_iso_ther.setObjectName("page_iso_ther") self.horizontalLayout_7 = QtWidgets.QHBoxLayout(self.page_iso_ther) self.horizontalLayout_7.setObjectName("horizontalLayout_7") self.in_L = QtWidgets.QLabel(self.page_iso_ther) font = QtGui.QFont() font.setPointSize(8) font.setBold(False) font.setWeight(50) self.in_L.setFont(font) self.in_L.setObjectName("in_L") self.horizontalLayout_7.addWidget(self.in_L) self.lf_L = FloatEdit(self.page_iso_ther) self.lf_L.setObjectName("lf_L") self.horizontalLayout_7.addWidget(self.lf_L) self.unit_L = QtWidgets.QLabel(self.page_iso_ther) self.unit_L.setObjectName("unit_L") self.horizontalLayout_7.addWidget(self.unit_L) self.nav_ther.addWidget(self.page_iso_ther) self.verticalLayout_11.addWidget(self.nav_ther) self.verticalLayout_2.addWidget(self.g_lambda) self.gridLayout_3 = QtWidgets.QGridLayout() self.gridLayout_3.setObjectName("gridLayout_3") self.in_alpha = QtWidgets.QLabel(self.tab_ther) font = QtGui.QFont() font.setPointSize(8) font.setBold(False) font.setWeight(50) self.in_alpha.setFont(font) self.in_alpha.setObjectName("in_alpha") self.gridLayout_3.addWidget(self.in_alpha, 1, 0, 1, 1) self.in_Cp = QtWidgets.QLabel(self.tab_ther) font = QtGui.QFont() font.setPointSize(8) font.setBold(False) font.setWeight(50) self.in_Cp.setFont(font) self.in_Cp.setObjectName("in_Cp") self.gridLayout_3.addWidget(self.in_Cp, 0, 0, 1, 1) self.lf_alpha = FloatEdit(self.tab_ther) self.lf_alpha.setObjectName("lf_alpha") self.gridLayout_3.addWidget(self.lf_alpha, 1, 1, 1, 1) self.unit_Cp = QtWidgets.QLabel(self.tab_ther) font = QtGui.QFont() font.setPointSize(8) font.setBold(False) font.setWeight(50) self.unit_Cp.setFont(font) self.unit_Cp.setObjectName("unit_Cp") self.gridLayout_3.addWidget(self.unit_Cp, 0, 2, 1, 1) self.lf_Cp = FloatEdit(self.tab_ther) self.lf_Cp.setObjectName("lf_Cp") self.gridLayout_3.addWidget(self.lf_Cp, 0, 1, 1, 1) self.verticalLayout_2.addLayout(self.gridLayout_3) spacerItem5 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) self.verticalLayout_2.addItem(spacerItem5) self.nav_phy.addTab(self.tab_ther, "") self.tab_eco = QtWidgets.QWidget() self.tab_eco.setObjectName("tab_eco") self.verticalLayout_6 = QtWidgets.QVBoxLayout(self.tab_eco) self.verticalLayout_6.setObjectName("verticalLayout_6") self.horizontalLayout_6 = QtWidgets.QHBoxLayout() self.horizontalLayout_6.setObjectName("horizontalLayout_6") self.in_cost_unit = QtWidgets.QLabel(self.tab_eco) font = QtGui.QFont() font.setPointSize(8) font.setBold(False) font.setWeight(50) self.in_cost_unit.setFont(font) self.in_cost_unit.setObjectName("in_cost_unit") self.horizontalLayout_6.addWidget(self.in_cost_unit) self.lf_cost_unit = FloatEdit(self.tab_eco) self.lf_cost_unit.setObjectName("lf_cost_unit") self.horizontalLayout_6.addWidget(self.lf_cost_unit) self.unit_cost_unit = QtWidgets.QLabel(self.tab_eco) self.unit_cost_unit.setObjectName("unit_cost_unit") self.horizontalLayout_6.addWidget(self.unit_cost_unit) self.verticalLayout_6.addLayout(self.horizontalLayout_6) spacerItem6 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) self.verticalLayout_6.addItem(spacerItem6) self.nav_phy.addTab(self.tab_eco, "") self.verticalLayout.addWidget(self.nav_phy) self.b_close = QtWidgets.QDialogButtonBox(DMatSetup) self.b_close.setOrientation(QtCore.Qt.Horizontal) self.b_close.setStandardButtons(QtWidgets.QDialogButtonBox.Cancel | QtWidgets.QDialogButtonBox.Save) self.b_close.setObjectName("b_close") self.verticalLayout.addWidget(self.b_close) self.retranslateUi(DMatSetup) self.nav_phy.setCurrentIndex(1) self.nav_meca.setCurrentIndex(1) self.nav_ther.setCurrentIndex(1) self.b_close.accepted.connect(DMatSetup.accept) self.b_close.rejected.connect(DMatSetup.reject) QtCore.QMetaObject.connectSlotsByName(DMatSetup)