Source code for sas.qtgui.Perspectives.Fitting.UI.MultiConstraintUI

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

# Form implementation generated from reading ui file '.\src\sas\qtgui\Perspectives\Fitting\UI\MultiConstraintUI.ui'
#
# Created by: PyQt5 UI code generator 5.12.2
#
# WARNING! All changes made in this file will be lost!

from PyQt5 import QtCore, QtGui, QtWidgets


[docs]class Ui_MultiConstraintUI(object):
[docs] def setupUi(self, MultiConstraintUI): MultiConstraintUI.setObjectName("MultiConstraintUI") MultiConstraintUI.setWindowModality(QtCore.Qt.ApplicationModal) MultiConstraintUI.resize(435, 233) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.MinimumExpanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(MultiConstraintUI.sizePolicy().hasHeightForWidth()) MultiConstraintUI.setSizePolicy(sizePolicy) MultiConstraintUI.setModal(True) self.gridLayout = QtWidgets.QGridLayout(MultiConstraintUI) self.gridLayout.setObjectName("gridLayout") self.horizontalLayout = QtWidgets.QHBoxLayout() self.horizontalLayout.setObjectName("horizontalLayout") self.txtParam1 = QtWidgets.QLabel(MultiConstraintUI) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.txtParam1.sizePolicy().hasHeightForWidth()) self.txtParam1.setSizePolicy(sizePolicy) self.txtParam1.setObjectName("txtParam1") self.horizontalLayout.addWidget(self.txtParam1) self.label = QtWidgets.QLabel(MultiConstraintUI) self.label.setObjectName("label") self.horizontalLayout.addWidget(self.label) self.txtParam2 = QtWidgets.QLabel(MultiConstraintUI) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.txtParam2.sizePolicy().hasHeightForWidth()) self.txtParam2.setSizePolicy(sizePolicy) self.txtParam2.setObjectName("txtParam2") self.horizontalLayout.addWidget(self.txtParam2) self.label_3 = QtWidgets.QLabel(MultiConstraintUI) self.label_3.setObjectName("label_3") self.horizontalLayout.addWidget(self.label_3) spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout.addItem(spacerItem) self.cmdRevert = QtWidgets.QPushButton(MultiConstraintUI) self.cmdRevert.setObjectName("cmdRevert") self.horizontalLayout.addWidget(self.cmdRevert) self.gridLayout.addLayout(self.horizontalLayout, 0, 0, 1, 1) self.horizontalLayout_3 = QtWidgets.QHBoxLayout() self.horizontalLayout_3.setObjectName("horizontalLayout_3") self.txtParam1_2 = QtWidgets.QLabel(MultiConstraintUI) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.txtParam1_2.sizePolicy().hasHeightForWidth()) self.txtParam1_2.setSizePolicy(sizePolicy) self.txtParam1_2.setObjectName("txtParam1_2") self.horizontalLayout_3.addWidget(self.txtParam1_2) self.label_2 = QtWidgets.QLabel(MultiConstraintUI) self.label_2.setObjectName("label_2") self.horizontalLayout_3.addWidget(self.label_2) self.txtConstraint = QtWidgets.QLineEdit(MultiConstraintUI) self.txtConstraint.setObjectName("txtConstraint") self.horizontalLayout_3.addWidget(self.txtConstraint) self.gridLayout.addLayout(self.horizontalLayout_3, 1, 0, 1, 1) self.lblWarning = QtWidgets.QLabel(MultiConstraintUI) self.lblWarning.setObjectName("lblWarning") self.gridLayout.addWidget(self.lblWarning, 2, 0, 1, 1) spacerItem1 = QtWidgets.QSpacerItem(20, 35, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) self.gridLayout.addItem(spacerItem1, 3, 0, 1, 1) self.horizontalLayout_2 = QtWidgets.QHBoxLayout() self.horizontalLayout_2.setObjectName("horizontalLayout_2") spacerItem2 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_2.addItem(spacerItem2) self.cmdOK = QtWidgets.QPushButton(MultiConstraintUI) self.cmdOK.setDefault(False) self.cmdOK.setObjectName("cmdOK") self.horizontalLayout_2.addWidget(self.cmdOK) self.cmdCancel = QtWidgets.QPushButton(MultiConstraintUI) self.cmdCancel.setObjectName("cmdCancel") self.horizontalLayout_2.addWidget(self.cmdCancel) self.cmdHelp = QtWidgets.QPushButton(MultiConstraintUI) self.cmdHelp.setObjectName("cmdHelp") self.horizontalLayout_2.addWidget(self.cmdHelp) self.gridLayout.addLayout(self.horizontalLayout_2, 4, 0, 1, 1) self.retranslateUi(MultiConstraintUI) self.cmdCancel.clicked.connect(MultiConstraintUI.reject) self.cmdOK.clicked.connect(MultiConstraintUI.accept) QtCore.QMetaObject.connectSlotsByName(MultiConstraintUI)
[docs] def retranslateUi(self, MultiConstraintUI): _translate = QtCore.QCoreApplication.translate MultiConstraintUI.setWindowTitle(_translate("MultiConstraintUI", "2 parameter constraint")) self.txtParam1.setText(_translate("MultiConstraintUI", "<html><head/><body><p><span style=\" font-weight:600;\">parameter1</span></p></body></html>")) self.label.setText(_translate("MultiConstraintUI", "<html><head/><body><p><span style=\" font-weight:600;\">= function(</span></p></body></html>")) self.txtParam2.setText(_translate("MultiConstraintUI", "<html><head/><body><p><span style=\" font-weight:600;\">parameter2</span></p></body></html>")) self.label_3.setText(_translate("MultiConstraintUI", "<html><head/><body><p><span style=\" font-weight:600;\">)</span></p></body></html>")) self.cmdRevert.setText(_translate("MultiConstraintUI", "Swap")) self.txtParam1_2.setText(_translate("MultiConstraintUI", "parameter1")) self.label_2.setText(_translate("MultiConstraintUI", "=")) self.lblWarning.setText(_translate("MultiConstraintUI", "<html><head/><body><p><span style=\" color:#ff0000;\">Warning! Polydisperse parameter selected.<br/></span>Constraints involving polydisperse parameters only apply to<br/>starting values and are not re-applied during size or angle polydispersity<br/>integrations. To do so requires creating a custom model.</p></body></html>")) self.cmdOK.setText(_translate("MultiConstraintUI", "OK")) self.cmdCancel.setText(_translate("MultiConstraintUI", "Cancel")) self.cmdHelp.setText(_translate("MultiConstraintUI", "Help"))