Esempio n. 1
0
class Ui_SWindCond(object):
    def setupUi(self, SWindCond):
        SWindCond.setObjectName("SWindCond")
        SWindCond.resize(650, 550)
        SWindCond.setMinimumSize(QtCore.QSize(650, 550))
        self.main_layout = QtWidgets.QVBoxLayout(SWindCond)
        self.main_layout.setObjectName("main_layout")
        self.horizontalLayout = QtWidgets.QHBoxLayout()
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.in_cond_type = QtWidgets.QLabel(SWindCond)
        self.in_cond_type.setObjectName("in_cond_type")
        self.horizontalLayout.addWidget(self.in_cond_type)
        self.c_cond_type = QtWidgets.QComboBox(SWindCond)
        self.c_cond_type.setMinimumSize(QtCore.QSize(150, 0))
        self.c_cond_type.setObjectName("c_cond_type")
        self.c_cond_type.addItem("")
        self.c_cond_type.addItem("")
        self.horizontalLayout.addWidget(self.c_cond_type)
        self.w_mat = WMatSelect(SWindCond)
        self.w_mat.setMinimumSize(QtCore.QSize(100, 0))
        self.w_mat.setObjectName("w_mat")
        self.horizontalLayout.addWidget(self.w_mat)
        spacerItem = QtWidgets.QSpacerItem(40, 20,
                                           QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout.addItem(spacerItem)
        self.main_layout.addLayout(self.horizontalLayout)
        self.w_cond = QtWidgets.QWidget(SWindCond)
        self.w_cond.setObjectName("w_cond")
        self.main_layout.addWidget(self.w_cond)
        self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        spacerItem1 = QtWidgets.QSpacerItem(40, 20,
                                            QtWidgets.QSizePolicy.Expanding,
                                            QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_2.addItem(spacerItem1)
        self.b_previous = QtWidgets.QPushButton(SWindCond)
        self.b_previous.setObjectName("b_previous")
        self.horizontalLayout_2.addWidget(self.b_previous)
        self.b_next = QtWidgets.QPushButton(SWindCond)
        self.b_next.setObjectName("b_next")
        self.horizontalLayout_2.addWidget(self.b_next)
        self.main_layout.addLayout(self.horizontalLayout_2)

        self.retranslateUi(SWindCond)
        QtCore.QMetaObject.connectSlotsByName(SWindCond)

    def retranslateUi(self, SWindCond):
        _translate = QtCore.QCoreApplication.translate
        SWindCond.setWindowTitle(_translate("SWindCond", "Form"))
        self.in_cond_type.setText(_translate("SWindCond", "Conductor type :"))
        self.c_cond_type.setItemText(
            0, _translate("SWindCond", "Preformed Rectangular"))
        self.c_cond_type.setItemText(
            1, _translate("SWindCond", "Random Round Wire"))
        self.b_previous.setText(_translate("SWindCond", "Previous"))
        self.b_next.setText(_translate("SWindCond", "Next"))
Esempio n. 2
0
class Ui_PHoleM52(object):
    def setupUi(self, PHoleM52):
        PHoleM52.setObjectName("PHoleM52")
        PHoleM52.resize(740, 440)
        PHoleM52.setMinimumSize(QtCore.QSize(740, 440))
        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.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, 213))
        self.img_slot.setMaximumSize(QtCore.QSize(500, 213))
        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.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.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.w_mat_0 = WMatSelect(PHoleM52)
        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.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)
        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(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-family:\'MS Shell Dlg 2\'; 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-family:\'MS Shell Dlg 2\'; font-size:14pt;">H2 &lt; 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-family:\'MS Shell Dlg 2\'; 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 : ?"))
Esempio n. 3
0
class Ui_SLamParam(object):
    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)

    def retranslateUi(self, SLamParam):
        _translate = QtCore.QCoreApplication.translate
        SLamParam.setWindowTitle(_translate("SLamParam", "Form"))
        self.in_L1.setText(_translate("SLamParam", "L1 :"))
        self.unit_L1.setText(_translate("SLamParam", "m"))
        self.in_Kf1.setText(_translate("SLamParam", "Kf1 :"))
        self.g_ax_vent.setTitle(
            _translate("SLamParam", "Axial Ventilation Ducts"))
        self.out_axial_duct.setText(
            _translate("SLamParam", "Axial : 0 set (0 ducts)"))
        self.b_axial_duct.setText(_translate("SLamParam", "set axial ducts"))
        self.g_rad_vent.setTitle(
            _translate("SLamParam", "Radial Ventilation Ducts"))
        self.in_Nrvd.setText(_translate("SLamParam", "Nrvd :"))
        self.in_Wrvd.setText(_translate("SLamParam", "Wrvd :"))
        self.unit_Wrvd.setText(_translate("SLamParam", "m"))
        self.out_length.setText(
            _translate("SLamParam",
                       "stator total length = L1 + Nrvd * Wrvd = ?"))
        self.b_plot.setText(_translate("SLamParam", "Preview"))
        self.b_previous.setText(_translate("SLamParam", "Previous"))
        self.b_next.setText(_translate("SLamParam", "Next"))
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_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 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.lf_Lfra.setToolTip(_translate("SMachineDimension",
                                           "Frame length"))
        self.lf_Lfra.setWhatsThis(
            _translate("SMachineDimension", "Frame length"))
        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_Wfra.setToolTip(_translate("SMachineDimension", "Frame width"))
        self.lf_Wfra.setWhatsThis(
            _translate("SMachineDimension", "Frame width"))
        self.in_Wfra.setToolTip(_translate("SMachineDimension", "Frame width"))
        self.in_Wfra.setWhatsThis(
            _translate("SMachineDimension", "Frame width"))
        self.in_Wfra.setText(_translate("SMachineDimension", "Wfra:"))
        self.unit_Lfra.setToolTip(
            _translate("SMachineDimension", "Frame length"))
        self.unit_Lfra.setWhatsThis(
            _translate("SMachineDimension", "Frame length"))
        self.unit_Lfra.setText(_translate("SMachineDimension", "m"))
        self.unit_Wfra.setToolTip(
            _translate("SMachineDimension", "Frame width"))
        self.unit_Wfra.setWhatsThis(
            _translate("SMachineDimension", "Frame width"))
        self.unit_Wfra.setText(_translate("SMachineDimension", "m"))
        self.b_previous.setText(_translate("SMachineDimension", "Previous"))
        self.b_next.setText(_translate("SMachineDimension", "Next"))
Esempio n. 5
0
class Ui_SMHoleMag(object):
    def setupUi(self, SMHoleMag):
        SMHoleMag.setObjectName("SMHoleMag")
        SMHoleMag.resize(650, 610)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            SMHoleMag.sizePolicy().hasHeightForWidth())
        SMHoleMag.setSizePolicy(sizePolicy)
        SMHoleMag.setMinimumSize(QtCore.QSize(650, 610))
        self.verticalLayout = QtWidgets.QVBoxLayout(SMHoleMag)
        self.verticalLayout.setObjectName("verticalLayout")
        self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.b_help = HelpButton(SMHoleMag)
        self.b_help.setText("")
        self.b_help.setPixmap(
            QtGui.QPixmap(":/images/images/icon/help_16.png"))
        self.b_help.setObjectName("b_help")
        self.horizontalLayout_2.addWidget(self.b_help)
        self.out_hole_pitch = QtWidgets.QLabel(SMHoleMag)
        self.out_hole_pitch.setObjectName("out_hole_pitch")
        self.horizontalLayout_2.addWidget(self.out_hole_pitch)
        spacerItem = QtWidgets.QSpacerItem(40, 20,
                                           QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_2.addItem(spacerItem)
        self.w_mat = WMatSelect(SMHoleMag)
        self.w_mat.setMinimumSize(QtCore.QSize(100, 0))
        self.w_mat.setObjectName("w_mat")
        self.horizontalLayout_2.addWidget(self.w_mat)
        self.verticalLayout.addLayout(self.horizontalLayout_2)
        self.horizontalLayout_3 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_3.setObjectName("horizontalLayout_3")
        self.b_add = QtWidgets.QPushButton(SMHoleMag)
        self.b_add.setObjectName("b_add")
        self.horizontalLayout_3.addWidget(self.b_add)
        self.b_remove = QtWidgets.QPushButton(SMHoleMag)
        self.b_remove.setObjectName("b_remove")
        self.horizontalLayout_3.addWidget(self.b_remove)
        spacerItem1 = QtWidgets.QSpacerItem(40, 20,
                                            QtWidgets.QSizePolicy.Expanding,
                                            QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_3.addItem(spacerItem1)
        self.verticalLayout.addLayout(self.horizontalLayout_3)
        self.tab_hole = QtWidgets.QTabWidget(SMHoleMag)
        self.tab_hole.setMinimumSize(QtCore.QSize(630, 500))
        self.tab_hole.setObjectName("tab_hole")
        self.verticalLayout.addWidget(self.tab_hole)
        self.horizontalLayout = QtWidgets.QHBoxLayout()
        self.horizontalLayout.setObjectName("horizontalLayout")
        spacerItem2 = QtWidgets.QSpacerItem(40, 20,
                                            QtWidgets.QSizePolicy.Expanding,
                                            QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout.addItem(spacerItem2)
        self.b_plot = QtWidgets.QPushButton(SMHoleMag)
        self.b_plot.setObjectName("b_plot")
        self.horizontalLayout.addWidget(self.b_plot)
        self.b_previous = QtWidgets.QPushButton(SMHoleMag)
        self.b_previous.setObjectName("b_previous")
        self.horizontalLayout.addWidget(self.b_previous)
        self.b_next = QtWidgets.QPushButton(SMHoleMag)
        self.b_next.setEnabled(True)
        self.b_next.setObjectName("b_next")
        self.horizontalLayout.addWidget(self.b_next)
        self.verticalLayout.addLayout(self.horizontalLayout)

        self.retranslateUi(SMHoleMag)
        self.tab_hole.setCurrentIndex(-1)
        QtCore.QMetaObject.connectSlotsByName(SMHoleMag)

    def retranslateUi(self, SMHoleMag):
        _translate = QtCore.QCoreApplication.translate
        SMHoleMag.setWindowTitle(_translate("SMHoleMag", "Form"))
        self.out_hole_pitch.setText(
            _translate("SMHoleMag", "Slot pitch = 2*Pi / Zs = "))
        self.b_add.setText(_translate("SMHoleMag", "Add new slots"))
        self.b_remove.setText(_translate("SMHoleMag", "Remove last slot"))
        self.b_plot.setText(_translate("SMHoleMag", "Preview"))
        self.b_previous.setText(_translate("SMHoleMag", "Previous"))
        self.b_next.setText(_translate("SMHoleMag", "Save"))
Esempio n. 6
0
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 &lt; 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))
Esempio n. 7
0
class Ui_PHoleM57(object):
    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 retranslateUi(self, PHoleM57):
        _translate = QtCore.QCoreApplication.translate
        PHoleM57.setWindowTitle(_translate("PHoleM57", "Form"))
        self.in_W1.setText(_translate("PHoleM57", "W1 :"))
        self.unit_W1.setText(_translate("PHoleM57", "m"))
        self.unit_W2.setText(_translate("PHoleM57", "m"))
        self.in_W3.setText(_translate("PHoleM57", "W3 :"))
        self.unit_W4.setText(_translate("PHoleM57", "m"))
        self.unit_W0.setText(_translate("PHoleM57", "rad"))
        self.in_W2.setText(_translate("PHoleM57", "W2 :"))
        self.in_W0.setText(_translate("PHoleM57", "W0 :"))
        self.in_W4.setText(_translate("PHoleM57", "W4 :"))
        self.unit_H1.setText(_translate("PHoleM57", "m"))
        self.in_H2.setText(_translate("PHoleM57", "H2 :"))
        self.in_H1.setText(_translate("PHoleM57", "H1 :"))
        self.unit_W3.setText(_translate("PHoleM57", "m"))
        self.unit_H2.setText(_translate("PHoleM57", "m"))
        self.g_output.setTitle(_translate("PHoleM57", "Output"))
        self.out_slot_surface.setText(
            _translate("PHoleM57", "Slot suface (2 part) : ?"))
        self.out_magnet_surface.setText(
            _translate("PHoleM57", "Single Magnet surface : ?"))