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)
class Ui_DAVDuct(object): def setupUi(self, DAVDuct): DAVDuct.setObjectName("DAVDuct") DAVDuct.resize(767, 630) self.verticalLayout = QtWidgets.QVBoxLayout(DAVDuct) self.verticalLayout.setObjectName("verticalLayout") self.horizontalLayout_2 = QtWidgets.QHBoxLayout() self.horizontalLayout_2.setObjectName("horizontalLayout_2") spacerItem = QtWidgets.QSpacerItem( 40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum ) self.horizontalLayout_2.addItem(spacerItem) self.b_new = QtWidgets.QPushButton(DAVDuct) self.b_new.setObjectName("b_new") self.horizontalLayout_2.addWidget(self.b_new) self.b_remove = QtWidgets.QPushButton(DAVDuct) self.b_remove.setObjectName("b_remove") self.horizontalLayout_2.addWidget(self.b_remove) self.b_help = HelpButton(DAVDuct) 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) spacerItem1 = QtWidgets.QSpacerItem( 40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum ) self.horizontalLayout_2.addItem(spacerItem1) self.verticalLayout.addLayout(self.horizontalLayout_2) self.tab_vent = QtWidgets.QTabWidget(DAVDuct) self.tab_vent.setObjectName("tab_vent") self.tab = QtWidgets.QWidget() self.tab.setObjectName("tab") self.tab_vent.addTab(self.tab, "") self.tab_2 = QtWidgets.QWidget() self.tab_2.setObjectName("tab_2") self.tab_vent.addTab(self.tab_2, "") self.verticalLayout.addWidget(self.tab_vent) self.horizontalLayout_4 = QtWidgets.QHBoxLayout() self.horizontalLayout_4.setObjectName("horizontalLayout_4") spacerItem2 = QtWidgets.QSpacerItem( 218, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum ) self.horizontalLayout_4.addItem(spacerItem2) self.b_plot = QtWidgets.QPushButton(DAVDuct) self.b_plot.setObjectName("b_plot") self.horizontalLayout_4.addWidget(self.b_plot) self.b_cancel = QtWidgets.QPushButton(DAVDuct) self.b_cancel.setObjectName("b_cancel") self.horizontalLayout_4.addWidget(self.b_cancel) self.b_ok = QtWidgets.QPushButton(DAVDuct) self.b_ok.setObjectName("b_ok") self.horizontalLayout_4.addWidget(self.b_ok) self.verticalLayout.addLayout(self.horizontalLayout_4) self.retranslateUi(DAVDuct) QtCore.QMetaObject.connectSlotsByName(DAVDuct) def retranslateUi(self, DAVDuct): _translate = QtCore.QCoreApplication.translate DAVDuct.setWindowTitle(_translate("DAVDuct", "Set axial ventilation duct")) self.b_new.setText(_translate("DAVDuct", "Add New Set")) self.b_remove.setText(_translate("DAVDuct", "Remove Last Set")) self.tab_vent.setTabText( self.tab_vent.indexOf(self.tab), _translate("DAVDuct", "Tab 1") ) self.tab_vent.setTabText( self.tab_vent.indexOf(self.tab_2), _translate("DAVDuct", "Tab 2") ) self.b_plot.setText(_translate("DAVDuct", "Preview")) self.b_cancel.setText(_translate("DAVDuct", "Cancel")) self.b_ok.setText(_translate("DAVDuct", "Ok"))
def setupUi(self, SWSlot): SWSlot.setObjectName("SWSlot") SWSlot.resize(650, 550) SWSlot.setMinimumSize(QtCore.QSize(650, 550)) self.main_layout = QtWidgets.QVBoxLayout(SWSlot) self.main_layout.setObjectName("main_layout") self.horizontalLayout_2 = QtWidgets.QHBoxLayout() self.horizontalLayout_2.setObjectName("horizontalLayout_2") self.b_help = HelpButton(SWSlot) 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.c_slot_type = QtWidgets.QComboBox(SWSlot) self.c_slot_type.setObjectName("c_slot_type") self.c_slot_type.addItem("") self.c_slot_type.addItem("") self.c_slot_type.addItem("") self.horizontalLayout_2.addWidget(self.c_slot_type) self.in_Zs = QtWidgets.QLabel(SWSlot) self.in_Zs.setObjectName("in_Zs") self.horizontalLayout_2.addWidget(self.in_Zs) self.si_Zs = QtWidgets.QSpinBox(SWSlot) self.si_Zs.setMaximum(20) self.si_Zs.setObjectName("si_Zs") self.horizontalLayout_2.addWidget(self.si_Zs) self.out_Slot_pitch = QtWidgets.QLabel(SWSlot) self.out_Slot_pitch.setObjectName("out_Slot_pitch") self.horizontalLayout_2.addWidget(self.out_Slot_pitch) spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_2.addItem(spacerItem) self.main_layout.addLayout(self.horizontalLayout_2) self.w_slot = QtWidgets.QWidget(SWSlot) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.w_slot.sizePolicy().hasHeightForWidth()) self.w_slot.setSizePolicy(sizePolicy) self.w_slot.setObjectName("w_slot") self.main_layout.addWidget(self.w_slot) 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_plot = QtWidgets.QPushButton(SWSlot) self.b_plot.setObjectName("b_plot") self.horizontalLayout.addWidget(self.b_plot) self.b_previous = QtWidgets.QPushButton(SWSlot) self.b_previous.setObjectName("b_previous") self.horizontalLayout.addWidget(self.b_previous) self.b_next = QtWidgets.QPushButton(SWSlot) self.b_next.setObjectName("b_next") self.horizontalLayout.addWidget(self.b_next) self.main_layout.addLayout(self.horizontalLayout) self.retranslateUi(SWSlot) QtCore.QMetaObject.connectSlotsByName(SWSlot)
def setupUi(self, SMagnet): SMagnet.setObjectName("SMagnet") SMagnet.resize(650, 550) SMagnet.setMinimumSize(QtCore.QSize(650, 550)) self.main_layout = QtWidgets.QVBoxLayout(SMagnet) self.main_layout.setObjectName("main_layout") self.horizontalLayout_3 = QtWidgets.QHBoxLayout() self.horizontalLayout_3.setObjectName("horizontalLayout_3") self.b_help = HelpButton(SMagnet) self.b_help.setText("") self.b_help.setPixmap(QtGui.QPixmap(":/images/images/icon/help_16.png")) self.b_help.setObjectName("b_help") self.horizontalLayout_3.addWidget(self.b_help) self.c_type = QtWidgets.QComboBox(SMagnet) self.c_type.setMinimumSize(QtCore.QSize(100, 0)) self.c_type.setAutoFillBackground(False) self.c_type.setObjectName("c_type") self.c_type.addItem("") self.c_type.addItem("") self.c_type.addItem("") self.c_type.addItem("") self.c_type.addItem("") self.horizontalLayout_3.addWidget(self.c_type) self.out_Nmag = QtWidgets.QLabel(SMagnet) self.out_Nmag.setObjectName("out_Nmag") self.horizontalLayout_3.addWidget(self.out_Nmag) spacerItem = QtWidgets.QSpacerItem( 40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum ) self.horizontalLayout_3.addItem(spacerItem) self.main_layout.addLayout(self.horizontalLayout_3) self.horizontalLayout = QtWidgets.QHBoxLayout() self.horizontalLayout.setObjectName("horizontalLayout") self.w_mat = WMatSelect(SMagnet) self.w_mat.setObjectName("w_mat") self.horizontalLayout.addWidget(self.w_mat) self.in_type_magnetization = QtWidgets.QLabel(SMagnet) self.in_type_magnetization.setObjectName("in_type_magnetization") self.horizontalLayout.addWidget(self.in_type_magnetization) self.c_type_magnetization = QtWidgets.QComboBox(SMagnet) self.c_type_magnetization.setObjectName("c_type_magnetization") self.c_type_magnetization.addItem("") self.c_type_magnetization.addItem("") self.c_type_magnetization.addItem("") self.horizontalLayout.addWidget(self.c_type_magnetization) self.main_layout.addLayout(self.horizontalLayout) self.w_mag = QtWidgets.QWidget(SMagnet) self.w_mag.setObjectName("w_mag") self.main_layout.addWidget(self.w_mag) 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_plot = QtWidgets.QPushButton(SMagnet) self.b_plot.setObjectName("b_plot") self.horizontalLayout_2.addWidget(self.b_plot) self.b_previous = QtWidgets.QPushButton(SMagnet) self.b_previous.setObjectName("b_previous") self.horizontalLayout_2.addWidget(self.b_previous) self.b_next = QtWidgets.QPushButton(SMagnet) self.b_next.setEnabled(True) self.b_next.setObjectName("b_next") self.horizontalLayout_2.addWidget(self.b_next) self.main_layout.addLayout(self.horizontalLayout_2) self.retranslateUi(SMagnet) QtCore.QMetaObject.connectSlotsByName(SMagnet)
class Ui_SWSlot(object): def setupUi(self, SWSlot): if not SWSlot.objectName(): SWSlot.setObjectName(u"SWSlot") SWSlot.resize(650, 550) SWSlot.setMinimumSize(QSize(650, 550)) self.main_layout = QVBoxLayout(SWSlot) self.main_layout.setObjectName(u"main_layout") self.horizontalLayout_2 = QHBoxLayout() self.horizontalLayout_2.setObjectName(u"horizontalLayout_2") self.b_help = HelpButton(SWSlot) self.b_help.setObjectName(u"b_help") self.b_help.setPixmap(QPixmap(u":/images/images/icon/help_16.png")) self.horizontalLayout_2.addWidget(self.b_help) self.c_slot_type = QComboBox(SWSlot) self.c_slot_type.addItem("") self.c_slot_type.addItem("") self.c_slot_type.addItem("") self.c_slot_type.setObjectName(u"c_slot_type") self.horizontalLayout_2.addWidget(self.c_slot_type) self.in_Zs = QLabel(SWSlot) self.in_Zs.setObjectName(u"in_Zs") self.horizontalLayout_2.addWidget(self.in_Zs) self.si_Zs = QSpinBox(SWSlot) self.si_Zs.setObjectName(u"si_Zs") self.si_Zs.setMaximum(20) self.horizontalLayout_2.addWidget(self.si_Zs) self.out_Slot_pitch = QLabel(SWSlot) self.out_Slot_pitch.setObjectName(u"out_Slot_pitch") self.horizontalLayout_2.addWidget(self.out_Slot_pitch) self.horizontalSpacer_3 = QSpacerItem(40, 20, QSizePolicy.Expanding, QSizePolicy.Minimum) self.horizontalLayout_2.addItem(self.horizontalSpacer_3) self.main_layout.addLayout(self.horizontalLayout_2) self.w_slot = QWidget(SWSlot) self.w_slot.setObjectName(u"w_slot") sizePolicy = QSizePolicy(QSizePolicy.Preferred, QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.w_slot.sizePolicy().hasHeightForWidth()) self.w_slot.setSizePolicy(sizePolicy) self.main_layout.addWidget(self.w_slot) self.horizontalLayout = QHBoxLayout() self.horizontalLayout.setObjectName(u"horizontalLayout") self.horizontalSpacer = QSpacerItem(40, 20, QSizePolicy.Expanding, QSizePolicy.Minimum) self.horizontalLayout.addItem(self.horizontalSpacer) self.b_plot = QPushButton(SWSlot) self.b_plot.setObjectName(u"b_plot") self.horizontalLayout.addWidget(self.b_plot) self.b_previous = QPushButton(SWSlot) self.b_previous.setObjectName(u"b_previous") self.horizontalLayout.addWidget(self.b_previous) self.b_next = QPushButton(SWSlot) self.b_next.setObjectName(u"b_next") self.horizontalLayout.addWidget(self.b_next) self.main_layout.addLayout(self.horizontalLayout) self.retranslateUi(SWSlot) QMetaObject.connectSlotsByName(SWSlot) # setupUi def retranslateUi(self, SWSlot): SWSlot.setWindowTitle( QCoreApplication.translate("SWSlot", u"Form", None)) self.b_help.setText("") self.c_slot_type.setItemText( 0, QCoreApplication.translate("SWSlot", u"Slot Type 10", None)) self.c_slot_type.setItemText( 1, QCoreApplication.translate("SWSlot", u"Slot Type 11", None)) self.c_slot_type.setItemText( 2, QCoreApplication.translate("SWSlot", u"Slot Type 12", None)) self.in_Zs.setText(QCoreApplication.translate("SWSlot", u"Zs :", None)) self.out_Slot_pitch.setText( QCoreApplication.translate("SWSlot", u"Slot pitch = 2*Pi / Zs = ", None)) self.b_plot.setText( QCoreApplication.translate("SWSlot", u"Preview", None)) self.b_previous.setText( QCoreApplication.translate("SWSlot", u"Previous", None)) self.b_next.setText(QCoreApplication.translate("SWSlot", u"Next", None))
def setupUi(self, SMSlot): if not SMSlot.objectName(): SMSlot.setObjectName(u"SMSlot") SMSlot.resize(650, 550) SMSlot.setMinimumSize(QSize(650, 550)) self.main_layout = QVBoxLayout(SMSlot) self.main_layout.setObjectName(u"main_layout") self.horizontalLayout_2 = QHBoxLayout() self.horizontalLayout_2.setObjectName(u"horizontalLayout_2") self.b_help = HelpButton(SMSlot) self.b_help.setObjectName(u"b_help") self.b_help.setPixmap(QPixmap(u":/images/images/icon/help_16.png")) self.horizontalLayout_2.addWidget(self.b_help) self.c_slot_type = QComboBox(SMSlot) self.c_slot_type.addItem("") self.c_slot_type.addItem("") self.c_slot_type.addItem("") self.c_slot_type.setObjectName(u"c_slot_type") self.horizontalLayout_2.addWidget(self.c_slot_type) self.out_Slot_pitch = QLabel(SMSlot) self.out_Slot_pitch.setObjectName(u"out_Slot_pitch") self.horizontalLayout_2.addWidget(self.out_Slot_pitch) self.horizontalSpacer_3 = QSpacerItem(40, 20, QSizePolicy.Expanding, QSizePolicy.Minimum) self.horizontalLayout_2.addItem(self.horizontalSpacer_3) self.main_layout.addLayout(self.horizontalLayout_2) self.horizontalLayout_3 = QHBoxLayout() self.horizontalLayout_3.setObjectName(u"horizontalLayout_3") self.w_mat = WMatSelect(SMSlot) self.w_mat.setObjectName(u"w_mat") self.horizontalLayout_3.addWidget(self.w_mat) self.in_type_magnetization = QLabel(SMSlot) self.in_type_magnetization.setObjectName(u"in_type_magnetization") self.horizontalLayout_3.addWidget(self.in_type_magnetization) self.c_type_magnetization = QComboBox(SMSlot) self.c_type_magnetization.addItem("") self.c_type_magnetization.addItem("") self.c_type_magnetization.addItem("") self.c_type_magnetization.setObjectName(u"c_type_magnetization") self.horizontalLayout_3.addWidget(self.c_type_magnetization) self.main_layout.addLayout(self.horizontalLayout_3) self.w_slot = QWidget(SMSlot) self.w_slot.setObjectName(u"w_slot") sizePolicy = QSizePolicy(QSizePolicy.Preferred, QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.w_slot.sizePolicy().hasHeightForWidth()) self.w_slot.setSizePolicy(sizePolicy) self.main_layout.addWidget(self.w_slot) self.horizontalLayout = QHBoxLayout() self.horizontalLayout.setObjectName(u"horizontalLayout") self.horizontalSpacer = QSpacerItem(40, 20, QSizePolicy.Expanding, QSizePolicy.Minimum) self.horizontalLayout.addItem(self.horizontalSpacer) self.b_plot = QPushButton(SMSlot) self.b_plot.setObjectName(u"b_plot") self.horizontalLayout.addWidget(self.b_plot) self.b_previous = QPushButton(SMSlot) self.b_previous.setObjectName(u"b_previous") self.horizontalLayout.addWidget(self.b_previous) self.b_next = QPushButton(SMSlot) self.b_next.setObjectName(u"b_next") self.horizontalLayout.addWidget(self.b_next) self.main_layout.addLayout(self.horizontalLayout) self.retranslateUi(SMSlot) QMetaObject.connectSlotsByName(SMSlot)
class Ui_SMagnet(object): def setupUi(self, SMagnet): SMagnet.setObjectName("SMagnet") SMagnet.resize(650, 550) SMagnet.setMinimumSize(QtCore.QSize(650, 550)) self.main_layout = QtWidgets.QVBoxLayout(SMagnet) self.main_layout.setObjectName("main_layout") self.horizontalLayout_3 = QtWidgets.QHBoxLayout() self.horizontalLayout_3.setObjectName("horizontalLayout_3") self.b_help = HelpButton(SMagnet) self.b_help.setText("") self.b_help.setPixmap(QtGui.QPixmap(":/images/images/icon/help_16.png")) self.b_help.setObjectName("b_help") self.horizontalLayout_3.addWidget(self.b_help) self.c_type = QtWidgets.QComboBox(SMagnet) self.c_type.setMinimumSize(QtCore.QSize(100, 0)) self.c_type.setAutoFillBackground(False) self.c_type.setObjectName("c_type") self.c_type.addItem("") self.c_type.addItem("") self.c_type.addItem("") self.c_type.addItem("") self.c_type.addItem("") self.horizontalLayout_3.addWidget(self.c_type) self.out_Nmag = QtWidgets.QLabel(SMagnet) self.out_Nmag.setObjectName("out_Nmag") self.horizontalLayout_3.addWidget(self.out_Nmag) spacerItem = QtWidgets.QSpacerItem( 40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum ) self.horizontalLayout_3.addItem(spacerItem) self.main_layout.addLayout(self.horizontalLayout_3) self.horizontalLayout = QtWidgets.QHBoxLayout() self.horizontalLayout.setObjectName("horizontalLayout") self.w_mat = WMatSelect(SMagnet) self.w_mat.setObjectName("w_mat") self.horizontalLayout.addWidget(self.w_mat) self.in_type_magnetization = QtWidgets.QLabel(SMagnet) self.in_type_magnetization.setObjectName("in_type_magnetization") self.horizontalLayout.addWidget(self.in_type_magnetization) self.c_type_magnetization = QtWidgets.QComboBox(SMagnet) self.c_type_magnetization.setObjectName("c_type_magnetization") self.c_type_magnetization.addItem("") self.c_type_magnetization.addItem("") self.c_type_magnetization.addItem("") self.horizontalLayout.addWidget(self.c_type_magnetization) self.main_layout.addLayout(self.horizontalLayout) self.w_mag = QtWidgets.QWidget(SMagnet) self.w_mag.setObjectName("w_mag") self.main_layout.addWidget(self.w_mag) 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_plot = QtWidgets.QPushButton(SMagnet) self.b_plot.setObjectName("b_plot") self.horizontalLayout_2.addWidget(self.b_plot) self.b_previous = QtWidgets.QPushButton(SMagnet) self.b_previous.setObjectName("b_previous") self.horizontalLayout_2.addWidget(self.b_previous) self.b_next = QtWidgets.QPushButton(SMagnet) self.b_next.setEnabled(True) self.b_next.setObjectName("b_next") self.horizontalLayout_2.addWidget(self.b_next) self.main_layout.addLayout(self.horizontalLayout_2) self.retranslateUi(SMagnet) QtCore.QMetaObject.connectSlotsByName(SMagnet) def retranslateUi(self, SMagnet): _translate = QtCore.QCoreApplication.translate SMagnet.setWindowTitle(_translate("SMagnet", "Form")) self.c_type.setItemText(0, _translate("SMagnet", "Rectangular")) self.c_type.setItemText(1, _translate("SMagnet", "Polar")) self.c_type.setItemText(2, _translate("SMagnet", "Flat bottom, polar top")) self.c_type.setItemText(3, _translate("SMagnet", "Flat bottom, curved top")) self.c_type.setItemText(4, _translate("SMagnet", "Polar bottom, curved top")) self.out_Nmag.setText(_translate("SMagnet", "Number of magnet = 2 * p = ?")) self.in_type_magnetization.setText(_translate("SMagnet", "type_magnetization:")) self.c_type_magnetization.setItemText(0, _translate("SMagnet", "Radial")) self.c_type_magnetization.setItemText(1, _translate("SMagnet", "Parallel")) self.c_type_magnetization.setItemText(2, _translate("SMagnet", "HallBach")) self.b_plot.setText(_translate("SMagnet", "Preview")) self.b_previous.setText(_translate("SMagnet", "Previous")) self.b_next.setText(_translate("SMagnet", "Save"))
def setupUi(self, SWindPat): if not SWindPat.objectName(): SWindPat.setObjectName(u"SWindPat") SWindPat.resize(650, 550) SWindPat.setMinimumSize(QSize(650, 550)) self.verticalLayout_2 = QVBoxLayout(SWindPat) self.verticalLayout_2.setObjectName(u"verticalLayout_2") self.horizontalLayout_2 = QHBoxLayout() self.horizontalLayout_2.setObjectName(u"horizontalLayout_2") self.horizontalSpacer_7 = QSpacerItem(40, 20, QSizePolicy.Expanding, QSizePolicy.Minimum) self.horizontalLayout_2.addItem(self.horizontalSpacer_7) self.b_help = HelpButton(SWindPat) self.b_help.setObjectName(u"b_help") self.b_help.setPixmap(QPixmap(u":/images/images/icon/help_16.png")) self.horizontalLayout_2.addWidget(self.b_help) self.c_wind_type = QComboBox(SWindPat) self.c_wind_type.addItem("") self.c_wind_type.addItem("") self.c_wind_type.addItem("") self.c_wind_type.addItem("") self.c_wind_type.addItem("") self.c_wind_type.setObjectName(u"c_wind_type") self.horizontalLayout_2.addWidget(self.c_wind_type) self.in_qs = QLabel(SWindPat) self.in_qs.setObjectName(u"in_qs") self.horizontalLayout_2.addWidget(self.in_qs) self.si_qs = QSpinBox(SWindPat) self.si_qs.setObjectName(u"si_qs") self.horizontalLayout_2.addWidget(self.si_qs) self.horizontalSpacer = QSpacerItem(40, 20, QSizePolicy.Expanding, QSizePolicy.Minimum) self.horizontalLayout_2.addItem(self.horizontalSpacer) self.verticalLayout_2.addLayout(self.horizontalLayout_2) self.img_wind_pat = QLabel(SWindPat) self.img_wind_pat.setObjectName(u"img_wind_pat") sizePolicy = QSizePolicy(QSizePolicy.Expanding, QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.img_wind_pat.sizePolicy().hasHeightForWidth()) self.img_wind_pat.setSizePolicy(sizePolicy) self.img_wind_pat.setMinimumSize(QSize(0, 0)) self.img_wind_pat.setMaximumSize(QSize(16777215, 250)) self.img_wind_pat.setPixmap( QPixmap( u":/images/images/MachineSetup/WindingPattern/Type_Wind_6.png") ) self.img_wind_pat.setScaledContents(True) self.verticalLayout_2.addWidget(self.img_wind_pat) self.horizontalLayout_5 = QHBoxLayout() self.horizontalLayout_5.setObjectName(u"horizontalLayout_5") self.verticalLayout = QVBoxLayout() self.verticalLayout.setObjectName(u"verticalLayout") self.horizontalLayout = QHBoxLayout() self.horizontalLayout.setObjectName(u"horizontalLayout") self.in_coil_pitch = QLabel(SWindPat) self.in_coil_pitch.setObjectName(u"in_coil_pitch") self.horizontalLayout.addWidget(self.in_coil_pitch) self.si_coil_pitch = QSpinBox(SWindPat) self.si_coil_pitch.setObjectName(u"si_coil_pitch") self.horizontalLayout.addWidget(self.si_coil_pitch) self.verticalLayout.addLayout(self.horizontalLayout) self.horizontalLayout_4 = QHBoxLayout() self.horizontalLayout_4.setObjectName(u"horizontalLayout_4") self.in_Nslot = QLabel(SWindPat) self.in_Nslot.setObjectName(u"in_Nslot") self.in_Nslot.setMinimumSize(QSize(0, 0)) self.in_Nslot.setMaximumSize(QSize(16777215, 16777215)) self.horizontalLayout_4.addWidget(self.in_Nslot) self.si_Nslot = QSpinBox(SWindPat) self.si_Nslot.setObjectName(u"si_Nslot") self.si_Nslot.setMinimumSize(QSize(60, 0)) self.horizontalLayout_4.addWidget(self.si_Nslot) self.verticalLayout.addLayout(self.horizontalLayout_4) self.is_reverse = QCheckBox(SWindPat) self.is_reverse.setObjectName(u"is_reverse") self.verticalLayout.addWidget(self.is_reverse) self.horizontalLayout_5.addLayout(self.verticalLayout) self.horizontalSpacer_4 = QSpacerItem(40, 20, QSizePolicy.Expanding, QSizePolicy.Minimum) self.horizontalLayout_5.addItem(self.horizontalSpacer_4) self.groupBox = QGroupBox(SWindPat) self.groupBox.setObjectName(u"groupBox") self.groupBox.setMinimumSize(QSize(200, 200)) self.verticalLayout_3 = QVBoxLayout(self.groupBox) self.verticalLayout_3.setObjectName(u"verticalLayout_3") self.out_shape = QLabel(self.groupBox) self.out_shape.setObjectName(u"out_shape") self.out_shape.setMinimumSize(QSize(175, 0)) self.verticalLayout_3.addWidget(self.out_shape) self.out_ms = QLabel(self.groupBox) self.out_ms.setObjectName(u"out_ms") self.verticalLayout_3.addWidget(self.out_ms) self.out_Nperw = QLabel(self.groupBox) self.out_Nperw.setObjectName(u"out_Nperw") self.verticalLayout_3.addWidget(self.out_Nperw) self.horizontalLayout_5.addWidget(self.groupBox) self.verticalLayout_2.addLayout(self.horizontalLayout_5) self.verticalSpacer_2 = QSpacerItem(20, 40, QSizePolicy.Minimum, QSizePolicy.Expanding) self.verticalLayout_2.addItem(self.verticalSpacer_2) self.horizontalLayout_3 = QHBoxLayout() self.horizontalLayout_3.setObjectName(u"horizontalLayout_3") self.horizontalSpacer_3 = QSpacerItem(40, 20, QSizePolicy.Expanding, QSizePolicy.Minimum) self.horizontalLayout_3.addItem(self.horizontalSpacer_3) self.b_preview = QPushButton(SWindPat) self.b_preview.setObjectName(u"b_preview") self.horizontalLayout_3.addWidget(self.b_preview) self.b_previous = QPushButton(SWindPat) self.b_previous.setObjectName(u"b_previous") self.horizontalLayout_3.addWidget(self.b_previous) self.b_next = QPushButton(SWindPat) self.b_next.setObjectName(u"b_next") self.horizontalLayout_3.addWidget(self.b_next) self.verticalLayout_2.addLayout(self.horizontalLayout_3) self.retranslateUi(SWindPat) QMetaObject.connectSlotsByName(SWindPat)
class Ui_SWindPat(object): def setupUi(self, SWindPat): if not SWindPat.objectName(): SWindPat.setObjectName(u"SWindPat") SWindPat.resize(650, 550) SWindPat.setMinimumSize(QSize(650, 550)) self.verticalLayout_2 = QVBoxLayout(SWindPat) self.verticalLayout_2.setObjectName(u"verticalLayout_2") self.horizontalLayout_2 = QHBoxLayout() self.horizontalLayout_2.setObjectName(u"horizontalLayout_2") self.horizontalSpacer_7 = QSpacerItem(40, 20, QSizePolicy.Expanding, QSizePolicy.Minimum) self.horizontalLayout_2.addItem(self.horizontalSpacer_7) self.b_help = HelpButton(SWindPat) self.b_help.setObjectName(u"b_help") self.b_help.setPixmap(QPixmap(u":/images/images/icon/help_16.png")) self.horizontalLayout_2.addWidget(self.b_help) self.c_wind_type = QComboBox(SWindPat) self.c_wind_type.addItem("") self.c_wind_type.addItem("") self.c_wind_type.addItem("") self.c_wind_type.addItem("") self.c_wind_type.addItem("") self.c_wind_type.setObjectName(u"c_wind_type") self.horizontalLayout_2.addWidget(self.c_wind_type) self.in_qs = QLabel(SWindPat) self.in_qs.setObjectName(u"in_qs") self.horizontalLayout_2.addWidget(self.in_qs) self.si_qs = QSpinBox(SWindPat) self.si_qs.setObjectName(u"si_qs") self.horizontalLayout_2.addWidget(self.si_qs) self.horizontalSpacer = QSpacerItem(40, 20, QSizePolicy.Expanding, QSizePolicy.Minimum) self.horizontalLayout_2.addItem(self.horizontalSpacer) self.verticalLayout_2.addLayout(self.horizontalLayout_2) self.img_wind_pat = QLabel(SWindPat) self.img_wind_pat.setObjectName(u"img_wind_pat") sizePolicy = QSizePolicy(QSizePolicy.Expanding, QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.img_wind_pat.sizePolicy().hasHeightForWidth()) self.img_wind_pat.setSizePolicy(sizePolicy) self.img_wind_pat.setMinimumSize(QSize(0, 0)) self.img_wind_pat.setMaximumSize(QSize(16777215, 250)) self.img_wind_pat.setPixmap( QPixmap( u":/images/images/MachineSetup/WindingPattern/Type_Wind_6.png") ) self.img_wind_pat.setScaledContents(True) self.verticalLayout_2.addWidget(self.img_wind_pat) self.horizontalLayout_5 = QHBoxLayout() self.horizontalLayout_5.setObjectName(u"horizontalLayout_5") self.verticalLayout = QVBoxLayout() self.verticalLayout.setObjectName(u"verticalLayout") self.horizontalLayout = QHBoxLayout() self.horizontalLayout.setObjectName(u"horizontalLayout") self.in_coil_pitch = QLabel(SWindPat) self.in_coil_pitch.setObjectName(u"in_coil_pitch") self.horizontalLayout.addWidget(self.in_coil_pitch) self.si_coil_pitch = QSpinBox(SWindPat) self.si_coil_pitch.setObjectName(u"si_coil_pitch") self.horizontalLayout.addWidget(self.si_coil_pitch) self.verticalLayout.addLayout(self.horizontalLayout) self.horizontalLayout_4 = QHBoxLayout() self.horizontalLayout_4.setObjectName(u"horizontalLayout_4") self.in_Nslot = QLabel(SWindPat) self.in_Nslot.setObjectName(u"in_Nslot") self.in_Nslot.setMinimumSize(QSize(0, 0)) self.in_Nslot.setMaximumSize(QSize(16777215, 16777215)) self.horizontalLayout_4.addWidget(self.in_Nslot) self.si_Nslot = QSpinBox(SWindPat) self.si_Nslot.setObjectName(u"si_Nslot") self.si_Nslot.setMinimumSize(QSize(60, 0)) self.horizontalLayout_4.addWidget(self.si_Nslot) self.verticalLayout.addLayout(self.horizontalLayout_4) self.is_reverse = QCheckBox(SWindPat) self.is_reverse.setObjectName(u"is_reverse") self.verticalLayout.addWidget(self.is_reverse) self.horizontalLayout_5.addLayout(self.verticalLayout) self.horizontalSpacer_4 = QSpacerItem(40, 20, QSizePolicy.Expanding, QSizePolicy.Minimum) self.horizontalLayout_5.addItem(self.horizontalSpacer_4) self.groupBox = QGroupBox(SWindPat) self.groupBox.setObjectName(u"groupBox") self.groupBox.setMinimumSize(QSize(200, 200)) self.verticalLayout_3 = QVBoxLayout(self.groupBox) self.verticalLayout_3.setObjectName(u"verticalLayout_3") self.out_shape = QLabel(self.groupBox) self.out_shape.setObjectName(u"out_shape") self.out_shape.setMinimumSize(QSize(175, 0)) self.verticalLayout_3.addWidget(self.out_shape) self.out_ms = QLabel(self.groupBox) self.out_ms.setObjectName(u"out_ms") self.verticalLayout_3.addWidget(self.out_ms) self.out_Nperw = QLabel(self.groupBox) self.out_Nperw.setObjectName(u"out_Nperw") self.verticalLayout_3.addWidget(self.out_Nperw) self.horizontalLayout_5.addWidget(self.groupBox) self.verticalLayout_2.addLayout(self.horizontalLayout_5) self.verticalSpacer_2 = QSpacerItem(20, 40, QSizePolicy.Minimum, QSizePolicy.Expanding) self.verticalLayout_2.addItem(self.verticalSpacer_2) self.horizontalLayout_3 = QHBoxLayout() self.horizontalLayout_3.setObjectName(u"horizontalLayout_3") self.horizontalSpacer_3 = QSpacerItem(40, 20, QSizePolicy.Expanding, QSizePolicy.Minimum) self.horizontalLayout_3.addItem(self.horizontalSpacer_3) self.b_preview = QPushButton(SWindPat) self.b_preview.setObjectName(u"b_preview") self.horizontalLayout_3.addWidget(self.b_preview) self.b_previous = QPushButton(SWindPat) self.b_previous.setObjectName(u"b_previous") self.horizontalLayout_3.addWidget(self.b_previous) self.b_next = QPushButton(SWindPat) self.b_next.setObjectName(u"b_next") self.horizontalLayout_3.addWidget(self.b_next) self.verticalLayout_2.addLayout(self.horizontalLayout_3) self.retranslateUi(SWindPat) QMetaObject.connectSlotsByName(SWindPat) # setupUi def retranslateUi(self, SWindPat): SWindPat.setWindowTitle( QCoreApplication.translate("SWindPat", u"Form", None)) self.b_help.setText("") self.c_wind_type.setItemText( 0, QCoreApplication.translate( "SWindPat", u"Double Layer Concentrated Orthoradial", None), ) self.c_wind_type.setItemText( 1, QCoreApplication.translate("SWindPat", u"Single Layer Concentrated", None), ) self.c_wind_type.setItemText( 2, QCoreApplication.translate("SWindPat", u"Double Layer Distributed", None)) self.c_wind_type.setItemText( 3, QCoreApplication.translate("SWindPat", u"Single Layer Distributed", None)) self.c_wind_type.setItemText( 4, QCoreApplication.translate("SWindPat", u"Double Layer Concentrated Radial", None), ) self.in_qs.setText( QCoreApplication.translate("SWindPat", u"qs :", None)) self.img_wind_pat.setText("") self.in_coil_pitch.setText( QCoreApplication.translate("SWindPat", u"coil_pitch", None)) self.in_Nslot.setText( QCoreApplication.translate("SWindPat", u"Nslot_shift :", None)) self.is_reverse.setText( QCoreApplication.translate("SWindPat", u"reverse", None)) self.groupBox.setTitle( QCoreApplication.translate("SWindPat", u"Output", None)) self.out_shape.setText( QCoreApplication.translate("SWindPat", u"Winding Matrix Shape : ", None)) self.out_ms.setText( QCoreApplication.translate("SWindPat", u"ms = Zs / (2*p*qs) = ?", None)) # if QT_CONFIG(tooltip) self.out_Nperw.setToolTip( QCoreApplication.translate("SWindPat", u"Winding periodicity", None)) # endif // QT_CONFIG(tooltip) self.out_Nperw.setText( QCoreApplication.translate("SWindPat", u"Nperw :", None)) self.b_preview.setText( QCoreApplication.translate("SWindPat", u"Preview", None)) self.b_previous.setText( QCoreApplication.translate("SWindPat", u"Previous", None)) self.b_next.setText( QCoreApplication.translate("SWindPat", u"Next", None))
class Ui_SWPole(object): def setupUi(self, SWPole): SWPole.setObjectName("SWPole") SWPole.resize(650, 550) SWPole.setMinimumSize(QtCore.QSize(650, 550)) self.main_layout = QtWidgets.QVBoxLayout(SWPole) self.main_layout.setObjectName("main_layout") self.horizontalLayout_2 = QtWidgets.QHBoxLayout() self.horizontalLayout_2.setObjectName("horizontalLayout_2") self.b_help = HelpButton(SWPole) 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.c_slot_type = QtWidgets.QComboBox(SWPole) self.c_slot_type.setObjectName("c_slot_type") self.c_slot_type.addItem("") self.c_slot_type.addItem("") self.horizontalLayout_2.addWidget(self.c_slot_type) self.in_Zs = QtWidgets.QLabel(SWPole) self.in_Zs.setObjectName("in_Zs") self.horizontalLayout_2.addWidget(self.in_Zs) self.out_Slot_pitch = QtWidgets.QLabel(SWPole) self.out_Slot_pitch.setObjectName("out_Slot_pitch") self.horizontalLayout_2.addWidget(self.out_Slot_pitch) spacerItem = QtWidgets.QSpacerItem( 40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum ) self.horizontalLayout_2.addItem(spacerItem) self.main_layout.addLayout(self.horizontalLayout_2) self.w_slot = QtWidgets.QWidget(SWPole) sizePolicy = QtWidgets.QSizePolicy( QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Expanding ) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.w_slot.sizePolicy().hasHeightForWidth()) self.w_slot.setSizePolicy(sizePolicy) self.w_slot.setObjectName("w_slot") self.main_layout.addWidget(self.w_slot) 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_plot = QtWidgets.QPushButton(SWPole) self.b_plot.setObjectName("b_plot") self.horizontalLayout.addWidget(self.b_plot) self.b_previous = QtWidgets.QPushButton(SWPole) self.b_previous.setObjectName("b_previous") self.horizontalLayout.addWidget(self.b_previous) self.b_next = QtWidgets.QPushButton(SWPole) self.b_next.setObjectName("b_next") self.horizontalLayout.addWidget(self.b_next) self.main_layout.addLayout(self.horizontalLayout) self.retranslateUi(SWPole) QtCore.QMetaObject.connectSlotsByName(SWPole) def retranslateUi(self, SWPole): _translate = QtCore.QCoreApplication.translate SWPole.setWindowTitle(_translate("SWPole", "Form")) self.c_slot_type.setItemText(0, _translate("SWPole", "Pole Type 60")) self.c_slot_type.setItemText(1, _translate("SWPole", "Pole Type 61")) self.in_Zs.setText(_translate("SWPole", "Zs = 2*p = ")) self.out_Slot_pitch.setText(_translate("SWPole", "Slot pitch = 2*Pi / Zs = ")) self.b_plot.setText(_translate("SWPole", "Preview")) self.b_previous.setText(_translate("SWPole", "Previous")) self.b_next.setText(_translate("SWPole", "Next"))
class Ui_SMagnet(object): def setupUi(self, SMagnet): if not SMagnet.objectName(): SMagnet.setObjectName(u"SMagnet") SMagnet.resize(650, 550) SMagnet.setMinimumSize(QSize(650, 550)) self.main_layout = QVBoxLayout(SMagnet) self.main_layout.setObjectName(u"main_layout") self.horizontalLayout_3 = QHBoxLayout() self.horizontalLayout_3.setObjectName(u"horizontalLayout_3") self.b_help = HelpButton(SMagnet) self.b_help.setObjectName(u"b_help") self.b_help.setPixmap(QPixmap(u":/images/images/icon/help_16.png")) self.horizontalLayout_3.addWidget(self.b_help) self.c_type = QComboBox(SMagnet) self.c_type.addItem("") self.c_type.addItem("") self.c_type.addItem("") self.c_type.addItem("") self.c_type.addItem("") self.c_type.setObjectName(u"c_type") self.c_type.setMinimumSize(QSize(100, 0)) self.c_type.setAutoFillBackground(False) self.horizontalLayout_3.addWidget(self.c_type) self.out_Nmag = QLabel(SMagnet) self.out_Nmag.setObjectName(u"out_Nmag") self.horizontalLayout_3.addWidget(self.out_Nmag) self.horizontalSpacer_3 = QSpacerItem(40, 20, QSizePolicy.Expanding, QSizePolicy.Minimum) self.horizontalLayout_3.addItem(self.horizontalSpacer_3) self.main_layout.addLayout(self.horizontalLayout_3) self.horizontalLayout = QHBoxLayout() self.horizontalLayout.setObjectName(u"horizontalLayout") self.w_mat = WMatSelect(SMagnet) self.w_mat.setObjectName(u"w_mat") self.horizontalLayout.addWidget(self.w_mat) self.in_type_magnetization = QLabel(SMagnet) self.in_type_magnetization.setObjectName(u"in_type_magnetization") self.horizontalLayout.addWidget(self.in_type_magnetization) self.c_type_magnetization = QComboBox(SMagnet) self.c_type_magnetization.addItem("") self.c_type_magnetization.addItem("") self.c_type_magnetization.addItem("") self.c_type_magnetization.setObjectName(u"c_type_magnetization") self.horizontalLayout.addWidget(self.c_type_magnetization) self.main_layout.addLayout(self.horizontalLayout) self.w_mag = QWidget(SMagnet) self.w_mag.setObjectName(u"w_mag") self.main_layout.addWidget(self.w_mag) self.horizontalLayout_2 = QHBoxLayout() self.horizontalLayout_2.setObjectName(u"horizontalLayout_2") self.horizontalSpacer = QSpacerItem(40, 20, QSizePolicy.Expanding, QSizePolicy.Minimum) self.horizontalLayout_2.addItem(self.horizontalSpacer) self.b_plot = QPushButton(SMagnet) self.b_plot.setObjectName(u"b_plot") self.horizontalLayout_2.addWidget(self.b_plot) self.b_previous = QPushButton(SMagnet) self.b_previous.setObjectName(u"b_previous") self.horizontalLayout_2.addWidget(self.b_previous) self.b_next = QPushButton(SMagnet) self.b_next.setObjectName(u"b_next") self.b_next.setEnabled(True) self.horizontalLayout_2.addWidget(self.b_next) self.main_layout.addLayout(self.horizontalLayout_2) self.retranslateUi(SMagnet) QMetaObject.connectSlotsByName(SMagnet) # setupUi def retranslateUi(self, SMagnet): SMagnet.setWindowTitle( QCoreApplication.translate("SMagnet", u"Form", None)) self.b_help.setText("") self.c_type.setItemText( 0, QCoreApplication.translate("SMagnet", u"Rectangular", None)) self.c_type.setItemText( 1, QCoreApplication.translate("SMagnet", u"Polar", None)) self.c_type.setItemText( 2, QCoreApplication.translate("SMagnet", u"Flat bottom, polar top", None)) self.c_type.setItemText( 3, QCoreApplication.translate("SMagnet", u"Flat bottom, curved top", None)) self.c_type.setItemText( 4, QCoreApplication.translate("SMagnet", u"Polar bottom, curved top", None)) self.out_Nmag.setText( QCoreApplication.translate("SMagnet", u"Number of magnet = 2 * p = ?", None)) self.in_type_magnetization.setText( QCoreApplication.translate("SMagnet", u"type_magnetization:", None)) self.c_type_magnetization.setItemText( 0, QCoreApplication.translate("SMagnet", u"Radial", None)) self.c_type_magnetization.setItemText( 1, QCoreApplication.translate("SMagnet", u"Parallel", None)) self.c_type_magnetization.setItemText( 2, QCoreApplication.translate("SMagnet", u"HallBach", None)) self.b_plot.setText( QCoreApplication.translate("SMagnet", u"Preview", None)) self.b_previous.setText( QCoreApplication.translate("SMagnet", u"Previous", None)) self.b_next.setText( QCoreApplication.translate("SMagnet", u"Save", None))
class Ui_SWindPat(object): def setupUi(self, SWindPat): SWindPat.setObjectName("SWindPat") SWindPat.resize(650, 550) SWindPat.setMinimumSize(QtCore.QSize(650, 550)) self.verticalLayout_2 = QtWidgets.QVBoxLayout(SWindPat) self.verticalLayout_2.setObjectName("verticalLayout_2") self.horizontalLayout_2 = QtWidgets.QHBoxLayout() self.horizontalLayout_2.setObjectName("horizontalLayout_2") spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_2.addItem(spacerItem) self.b_help = HelpButton(SWindPat) 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.c_wind_type = QtWidgets.QComboBox(SWindPat) self.c_wind_type.setObjectName("c_wind_type") self.c_wind_type.addItem("") self.c_wind_type.addItem("") self.c_wind_type.addItem("") self.c_wind_type.addItem("") self.c_wind_type.addItem("") self.horizontalLayout_2.addWidget(self.c_wind_type) self.in_qs = QtWidgets.QLabel(SWindPat) self.in_qs.setObjectName("in_qs") self.horizontalLayout_2.addWidget(self.in_qs) self.si_qs = QtWidgets.QSpinBox(SWindPat) self.si_qs.setObjectName("si_qs") self.horizontalLayout_2.addWidget(self.si_qs) spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_2.addItem(spacerItem1) self.verticalLayout_2.addLayout(self.horizontalLayout_2) self.img_wind_pat = QtWidgets.QLabel(SWindPat) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.img_wind_pat.sizePolicy().hasHeightForWidth()) self.img_wind_pat.setSizePolicy(sizePolicy) self.img_wind_pat.setMinimumSize(QtCore.QSize(0, 0)) self.img_wind_pat.setMaximumSize(QtCore.QSize(16777215, 250)) self.img_wind_pat.setText("") self.img_wind_pat.setPixmap( QtGui.QPixmap( ":/images/images/MachineSetup/WindingPattern/Type_Wind_6.png")) self.img_wind_pat.setScaledContents(True) self.img_wind_pat.setObjectName("img_wind_pat") self.verticalLayout_2.addWidget(self.img_wind_pat) self.horizontalLayout_5 = QtWidgets.QHBoxLayout() self.horizontalLayout_5.setObjectName("horizontalLayout_5") self.verticalLayout = QtWidgets.QVBoxLayout() self.verticalLayout.setObjectName("verticalLayout") self.horizontalLayout = QtWidgets.QHBoxLayout() self.horizontalLayout.setObjectName("horizontalLayout") self.in_coil_pitch = QtWidgets.QLabel(SWindPat) self.in_coil_pitch.setObjectName("in_coil_pitch") self.horizontalLayout.addWidget(self.in_coil_pitch) self.si_coil_pitch = QtWidgets.QSpinBox(SWindPat) self.si_coil_pitch.setObjectName("si_coil_pitch") self.horizontalLayout.addWidget(self.si_coil_pitch) self.verticalLayout.addLayout(self.horizontalLayout) self.horizontalLayout_4 = QtWidgets.QHBoxLayout() self.horizontalLayout_4.setObjectName("horizontalLayout_4") self.in_Nslot = QtWidgets.QLabel(SWindPat) self.in_Nslot.setMinimumSize(QtCore.QSize(0, 0)) self.in_Nslot.setMaximumSize(QtCore.QSize(16777215, 16777215)) self.in_Nslot.setObjectName("in_Nslot") self.horizontalLayout_4.addWidget(self.in_Nslot) self.si_Nslot = QtWidgets.QSpinBox(SWindPat) self.si_Nslot.setMinimumSize(QtCore.QSize(60, 0)) self.si_Nslot.setObjectName("si_Nslot") self.horizontalLayout_4.addWidget(self.si_Nslot) self.verticalLayout.addLayout(self.horizontalLayout_4) self.is_reverse = QtWidgets.QCheckBox(SWindPat) self.is_reverse.setObjectName("is_reverse") self.verticalLayout.addWidget(self.is_reverse) self.horizontalLayout_5.addLayout(self.verticalLayout) spacerItem2 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_5.addItem(spacerItem2) self.groupBox = QtWidgets.QGroupBox(SWindPat) self.groupBox.setMinimumSize(QtCore.QSize(200, 200)) self.groupBox.setObjectName("groupBox") self.verticalLayout_3 = QtWidgets.QVBoxLayout(self.groupBox) self.verticalLayout_3.setObjectName("verticalLayout_3") self.out_shape = QtWidgets.QLabel(self.groupBox) self.out_shape.setMinimumSize(QtCore.QSize(175, 0)) self.out_shape.setObjectName("out_shape") self.verticalLayout_3.addWidget(self.out_shape) self.out_ms = QtWidgets.QLabel(self.groupBox) self.out_ms.setObjectName("out_ms") self.verticalLayout_3.addWidget(self.out_ms) self.out_Nperw = QtWidgets.QLabel(self.groupBox) self.out_Nperw.setObjectName("out_Nperw") self.verticalLayout_3.addWidget(self.out_Nperw) self.horizontalLayout_5.addWidget(self.groupBox) self.verticalLayout_2.addLayout(self.horizontalLayout_5) spacerItem3 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) self.verticalLayout_2.addItem(spacerItem3) self.horizontalLayout_3 = QtWidgets.QHBoxLayout() self.horizontalLayout_3.setObjectName("horizontalLayout_3") spacerItem4 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_3.addItem(spacerItem4) self.b_preview = QtWidgets.QPushButton(SWindPat) self.b_preview.setObjectName("b_preview") self.horizontalLayout_3.addWidget(self.b_preview) self.b_previous = QtWidgets.QPushButton(SWindPat) self.b_previous.setObjectName("b_previous") self.horizontalLayout_3.addWidget(self.b_previous) self.b_next = QtWidgets.QPushButton(SWindPat) self.b_next.setObjectName("b_next") self.horizontalLayout_3.addWidget(self.b_next) self.verticalLayout_2.addLayout(self.horizontalLayout_3) self.retranslateUi(SWindPat) QtCore.QMetaObject.connectSlotsByName(SWindPat) def retranslateUi(self, SWindPat): _translate = QtCore.QCoreApplication.translate SWindPat.setWindowTitle(_translate("SWindPat", "Form")) self.c_wind_type.setItemText( 0, _translate("SWindPat", "Double Layer Concentrated Orthoradial")) self.c_wind_type.setItemText( 1, _translate("SWindPat", "Single Layer Concentrated")) self.c_wind_type.setItemText( 2, _translate("SWindPat", "Double Layer Distributed")) self.c_wind_type.setItemText( 3, _translate("SWindPat", "Single Layer Distributed")) self.c_wind_type.setItemText( 4, _translate("SWindPat", "Double Layer Concentrated Radial")) self.in_qs.setText(_translate("SWindPat", "qs :")) self.in_coil_pitch.setText(_translate("SWindPat", "coil_pitch")) self.in_Nslot.setText(_translate("SWindPat", "Nslot_shift :")) self.is_reverse.setText(_translate("SWindPat", "reverse")) self.groupBox.setTitle(_translate("SWindPat", "Output")) self.out_shape.setText( _translate("SWindPat", "Winding Matrix Shape : ")) self.out_ms.setText(_translate("SWindPat", "ms = Zs / (2*p*qs) = ?")) self.out_Nperw.setToolTip(_translate("SWindPat", "Winding periodicity")) self.out_Nperw.setText(_translate("SWindPat", "Nperw :")) self.b_preview.setText(_translate("SWindPat", "Preview")) self.b_previous.setText(_translate("SWindPat", "Previous")) self.b_next.setText(_translate("SWindPat", "Next"))