Source code for pyleecan.GUI.Dialog.DMatLib.WMatSelect.Ui_WMatSelect

# -*- coding: utf-8 -*-

# File generated according to WMatSelect.ui
# WARNING! All changes made in this file will be lost!
## WARNING! All changes made in this file will be lost when recompiling UI file!
################################################################################

from PySide2.QtCore import *
from PySide2.QtGui import *
from PySide2.QtWidgets import *

from pyleecan.GUI.Resources import pyleecan_rc


[docs]class Ui_WMatSelect(object):
[docs] def setupUi(self, WMatSelect): if not WMatSelect.objectName(): WMatSelect.setObjectName(u"WMatSelect") WMatSelect.resize(283, 30) sizePolicy = QSizePolicy(QSizePolicy.Preferred, QSizePolicy.Minimum) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(WMatSelect.sizePolicy().hasHeightForWidth()) WMatSelect.setSizePolicy(sizePolicy) WMatSelect.setMinimumSize(QSize(0, 0)) self.horizontalLayout = QHBoxLayout(WMatSelect) self.horizontalLayout.setSpacing(2) self.horizontalLayout.setObjectName(u"horizontalLayout") self.horizontalLayout.setContentsMargins(4, 2, 4, 2) self.in_mat_type = QLabel(WMatSelect) self.in_mat_type.setObjectName(u"in_mat_type") sizePolicy1 = QSizePolicy(QSizePolicy.Minimum, QSizePolicy.Preferred) sizePolicy1.setHorizontalStretch(0) sizePolicy1.setVerticalStretch(0) sizePolicy1.setHeightForWidth(self.in_mat_type.sizePolicy().hasHeightForWidth()) self.in_mat_type.setSizePolicy(sizePolicy1) self.horizontalLayout.addWidget(self.in_mat_type) self.c_mat_type = QComboBox(WMatSelect) self.c_mat_type.addItem("") self.c_mat_type.addItem("") self.c_mat_type.addItem("") self.c_mat_type.setObjectName(u"c_mat_type") sizePolicy2 = QSizePolicy(QSizePolicy.Expanding, QSizePolicy.Fixed) sizePolicy2.setHorizontalStretch(0) sizePolicy2.setVerticalStretch(0) sizePolicy2.setHeightForWidth(self.c_mat_type.sizePolicy().hasHeightForWidth()) self.c_mat_type.setSizePolicy(sizePolicy2) self.horizontalLayout.addWidget(self.c_mat_type) self.b_matlib = QPushButton(WMatSelect) self.b_matlib.setObjectName(u"b_matlib") self.horizontalLayout.addWidget(self.b_matlib) self.horizontalSpacer = QSpacerItem( 40, 20, QSizePolicy.Expanding, QSizePolicy.Minimum ) self.horizontalLayout.addItem(self.horizontalSpacer) QWidget.setTabOrder(self.c_mat_type, self.b_matlib) self.retranslateUi(WMatSelect) QMetaObject.connectSlotsByName(WMatSelect)
# setupUi
[docs] def retranslateUi(self, WMatSelect): WMatSelect.setWindowTitle( QCoreApplication.translate("WMatSelect", u"Form", None) ) self.in_mat_type.setText( QCoreApplication.translate("WMatSelect", u"mat_type :", None) ) self.c_mat_type.setItemText( 0, QCoreApplication.translate("WMatSelect", u"M400-50A", None) ) self.c_mat_type.setItemText( 1, QCoreApplication.translate("WMatSelect", u"M350-50A", None) ) self.c_mat_type.setItemText( 2, QCoreApplication.translate("WMatSelect", u"M330-35A", None) ) self.b_matlib.setText( QCoreApplication.translate("WMatSelect", u"Edit Materials", None) )
# retranslateUi