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

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

# Form implementation generated from reading ui file '.\src\sas\qtgui\Perspectives\Fitting\UI\SmearingWidgetUI.ui'
#
# Created by: PyQt5 UI code generator 5.15.9
#
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
# run again.  Do not edit this file unless you know what you are doing.


from PyQt5 import QtCore, QtGui, QtWidgets


[docs]class Ui_SmearingWidgetUI(object):
[docs] def setupUi(self, SmearingWidgetUI): SmearingWidgetUI.setObjectName("SmearingWidgetUI") SmearingWidgetUI.resize(702, 242) self.gridLayout_4 = QtWidgets.QGridLayout(SmearingWidgetUI) self.gridLayout_4.setObjectName("gridLayout_4") self.groupBox_4 = QtWidgets.QGroupBox(SmearingWidgetUI) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.groupBox_4.sizePolicy().hasHeightForWidth()) self.groupBox_4.setSizePolicy(sizePolicy) self.groupBox_4.setObjectName("groupBox_4") self.gridLayout_3 = QtWidgets.QGridLayout(self.groupBox_4) self.gridLayout_3.setObjectName("gridLayout_3") self.gridLayout_2 = QtWidgets.QGridLayout() self.gridLayout_2.setObjectName("gridLayout_2") self.cbSmearing = QtWidgets.QComboBox(self.groupBox_4) self.cbSmearing.setSizeAdjustPolicy(QtWidgets.QComboBox.AdjustToContents) self.cbSmearing.setObjectName("cbSmearing") self.cbSmearing.addItem("") self.cbSmearing.addItem("") self.cbSmearing.addItem("") self.cbSmearing.addItem("") self.gridLayout_2.addWidget(self.cbSmearing, 0, 0, 1, 1) self.gridLayout_11 = QtWidgets.QGridLayout() self.gridLayout_11.setObjectName("gridLayout_11") self.lblSmearUp = QtWidgets.QLabel(self.groupBox_4) self.lblSmearUp.setObjectName("lblSmearUp") self.gridLayout_11.addWidget(self.lblSmearUp, 0, 0, 1, 1) self.txtSmearUp = QtWidgets.QLineEdit(self.groupBox_4) self.txtSmearUp.setObjectName("txtSmearUp") self.gridLayout_11.addWidget(self.txtSmearUp, 0, 1, 1, 1) self.lblUnitUp = QtWidgets.QLabel(self.groupBox_4) self.lblUnitUp.setObjectName("lblUnitUp") self.gridLayout_11.addWidget(self.lblUnitUp, 0, 2, 1, 1) self.lblSmearDown = QtWidgets.QLabel(self.groupBox_4) self.lblSmearDown.setObjectName("lblSmearDown") self.gridLayout_11.addWidget(self.lblSmearDown, 1, 0, 1, 1) self.txtSmearDown = QtWidgets.QLineEdit(self.groupBox_4) self.txtSmearDown.setObjectName("txtSmearDown") self.gridLayout_11.addWidget(self.txtSmearDown, 1, 1, 1, 1) self.lblUnitDown = QtWidgets.QLabel(self.groupBox_4) self.lblUnitDown.setObjectName("lblUnitDown") self.gridLayout_11.addWidget(self.lblUnitDown, 1, 2, 1, 1) self.gridLayout_2.addLayout(self.gridLayout_11, 0, 1, 2, 1) self.gAccuracy = QtWidgets.QGroupBox(self.groupBox_4) self.gAccuracy.setObjectName("gAccuracy") self.gridLayout = QtWidgets.QGridLayout(self.gAccuracy) self.gridLayout.setObjectName("gridLayout") self.cbAccuracy = QtWidgets.QComboBox(self.gAccuracy) self.cbAccuracy.setObjectName("cbAccuracy") self.cbAccuracy.addItem("") self.cbAccuracy.addItem("") self.cbAccuracy.addItem("") self.cbAccuracy.addItem("") self.gridLayout.addWidget(self.cbAccuracy, 0, 0, 1, 1) self.gridLayout_2.addWidget(self.gAccuracy, 0, 2, 2, 1) spacerItem = QtWidgets.QSpacerItem(20, 18, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) self.gridLayout_2.addItem(spacerItem, 1, 0, 1, 1) self.gridLayout_3.addLayout(self.gridLayout_2, 0, 0, 1, 1) self.gridLayout_4.addWidget(self.groupBox_4, 0, 0, 1, 1) spacerItem1 = QtWidgets.QSpacerItem(71, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.gridLayout_4.addItem(spacerItem1, 0, 1, 1, 1) spacerItem2 = QtWidgets.QSpacerItem(20, 162, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) self.gridLayout_4.addItem(spacerItem2, 1, 0, 1, 1) self.retranslateUi(SmearingWidgetUI) self.cbSmearing.setCurrentIndex(0) QtCore.QMetaObject.connectSlotsByName(SmearingWidgetUI)
[docs] def retranslateUi(self, SmearingWidgetUI): _translate = QtCore.QCoreApplication.translate SmearingWidgetUI.setWindowTitle(_translate("SmearingWidgetUI", "Form")) self.groupBox_4.setTitle(_translate("SmearingWidgetUI", "Instrumental Smearing")) self.cbSmearing.setItemText(0, _translate("SmearingWidgetUI", "None")) self.cbSmearing.setItemText(1, _translate("SmearingWidgetUI", "Use dQ Data")) self.cbSmearing.setItemText(2, _translate("SmearingWidgetUI", "Custom Pinhole Smear")) self.cbSmearing.setItemText(3, _translate("SmearingWidgetUI", "Custom Slit Smear")) self.lblSmearUp.setText(_translate("SmearingWidgetUI", "<html><head/><body><p>dQ<span style=\" vertical-align:sub;\">low</span></p></body></html>")) self.lblUnitUp.setText(_translate("SmearingWidgetUI", "<html><head/><body><p>Å<span style=\" vertical-align:super;\">-1</span></p></body></html>")) self.lblSmearDown.setText(_translate("SmearingWidgetUI", "<html><head/><body><p>dQ<span style=\" vertical-align:sub;\">high</span></p></body></html>")) self.lblUnitDown.setText(_translate("SmearingWidgetUI", "<html><head/><body><p>Å<span style=\" vertical-align:super;\">-1</span></p></body></html>")) self.gAccuracy.setTitle(_translate("SmearingWidgetUI", "Accuracy")) self.gAccuracy.setToolTip(_translate("SmearingWidgetUI", "<html><head/><body><p>Higher accuracy is very expensive. Use it with care!</p></body></html>")) self.cbAccuracy.setItemText(0, _translate("SmearingWidgetUI", "Low")) self.cbAccuracy.setItemText(1, _translate("SmearingWidgetUI", "Medium")) self.cbAccuracy.setItemText(2, _translate("SmearingWidgetUI", "High")) self.cbAccuracy.setItemText(3, _translate("SmearingWidgetUI", "Extra high"))