Source code for sas.qtgui.Perspectives.Inversion.UI.TabbedInversionUI

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

# Form implementation generated from reading ui file './src/sas/qtgui/Perspectives/Inversion/UI/TabbedInversionUI.ui'
#
# Created by: PyQt5 UI code generator 5.6
#
# WARNING! All changes made in this file will be lost!

from PyQt5 import QtCore, QtGui, QtWidgets

[docs]class Ui_PrInversion(object):
[docs] def setupUi(self, PrInversion): PrInversion.setObjectName("PrInversion") PrInversion.resize(446, 480) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(PrInversion.sizePolicy().hasHeightForWidth()) PrInversion.setSizePolicy(sizePolicy) PrInversion.setMinimumSize(QtCore.QSize(0, 0)) PrInversion.setMaximumSize(QtCore.QSize(16777215, 16777215)) self.gridLayout_7 = QtWidgets.QGridLayout(PrInversion) self.gridLayout_7.setObjectName("gridLayout_7") self.PrTabWidget = QtWidgets.QTabWidget(PrInversion) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.PrTabWidget.sizePolicy().hasHeightForWidth()) self.PrTabWidget.setSizePolicy(sizePolicy) self.PrTabWidget.setMinimumSize(QtCore.QSize(0, 0)) self.PrTabWidget.setObjectName("PrTabWidget") self.tabMain = QtWidgets.QWidget() self.tabMain.setObjectName("tabMain") self.gridLayout_6 = QtWidgets.QGridLayout(self.tabMain) self.gridLayout_6.setContentsMargins(0, 0, 0, 0) self.gridLayout_6.setObjectName("gridLayout_6") self.dataSourceGroupBox = QtWidgets.QGroupBox(self.tabMain) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.dataSourceGroupBox.sizePolicy().hasHeightForWidth()) self.dataSourceGroupBox.setSizePolicy(sizePolicy) self.dataSourceGroupBox.setObjectName("dataSourceGroupBox") self.gridLayout_2 = QtWidgets.QGridLayout(self.dataSourceGroupBox) self.gridLayout_2.setObjectName("gridLayout_2") self.horizontalLayout_2 = QtWidgets.QHBoxLayout() self.horizontalLayout_2.setObjectName("horizontalLayout_2") self.label = QtWidgets.QLabel(self.dataSourceGroupBox) self.label.setObjectName("label") self.horizontalLayout_2.addWidget(self.label) self.dataList = QtWidgets.QComboBox(self.dataSourceGroupBox) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.dataList.sizePolicy().hasHeightForWidth()) self.dataList.setSizePolicy(sizePolicy) self.dataList.setObjectName("dataList") self.horizontalLayout_2.addWidget(self.dataList) self.removeButton = QtWidgets.QPushButton(self.dataSourceGroupBox) self.removeButton.setEnabled(False) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.removeButton.sizePolicy().hasHeightForWidth()) self.removeButton.setSizePolicy(sizePolicy) self.removeButton.setObjectName("removeButton") self.horizontalLayout_2.addWidget(self.removeButton) self.gridLayout_2.addLayout(self.horizontalLayout_2, 0, 0, 1, 1) self.gridLayout_6.addWidget(self.dataSourceGroupBox, 0, 0, 1, 1) self.paramGroupBox = QtWidgets.QGroupBox(self.tabMain) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.paramGroupBox.sizePolicy().hasHeightForWidth()) self.paramGroupBox.setSizePolicy(sizePolicy) self.paramGroupBox.setObjectName("paramGroupBox") self.gridLayout = QtWidgets.QGridLayout(self.paramGroupBox) self.gridLayout.setObjectName("gridLayout") self.label_12 = QtWidgets.QLabel(self.paramGroupBox) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.label_12.sizePolicy().hasHeightForWidth()) self.label_12.setSizePolicy(sizePolicy) self.label_12.setObjectName("label_12") self.gridLayout.addWidget(self.label_12, 0, 0, 1, 1) self.noOfTermsInput = QtWidgets.QLineEdit(self.paramGroupBox) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.noOfTermsInput.sizePolicy().hasHeightForWidth()) self.noOfTermsInput.setSizePolicy(sizePolicy) self.noOfTermsInput.setMinimumSize(QtCore.QSize(40, 0)) self.noOfTermsInput.setObjectName("noOfTermsInput") self.gridLayout.addWidget(self.noOfTermsInput, 0, 1, 1, 1) self.noOfTermsSuggestionButton = QtWidgets.QPushButton(self.paramGroupBox) self.noOfTermsSuggestionButton.setEnabled(False) self.noOfTermsSuggestionButton.setText("") self.noOfTermsSuggestionButton.setObjectName("noOfTermsSuggestionButton") self.gridLayout.addWidget(self.noOfTermsSuggestionButton, 0, 2, 1, 1) self.label_13 = QtWidgets.QLabel(self.paramGroupBox) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.label_13.sizePolicy().hasHeightForWidth()) self.label_13.setSizePolicy(sizePolicy) self.label_13.setMinimumSize(QtCore.QSize(80, 0)) self.label_13.setObjectName("label_13") self.gridLayout.addWidget(self.label_13, 1, 0, 1, 1) self.regularizationConstantInput = QtWidgets.QLineEdit(self.paramGroupBox) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.regularizationConstantInput.sizePolicy().hasHeightForWidth()) self.regularizationConstantInput.setSizePolicy(sizePolicy) self.regularizationConstantInput.setMinimumSize(QtCore.QSize(40, 0)) self.regularizationConstantInput.setObjectName("regularizationConstantInput") self.gridLayout.addWidget(self.regularizationConstantInput, 1, 1, 1, 1) self.regConstantSuggestionButton = QtWidgets.QPushButton(self.paramGroupBox) self.regConstantSuggestionButton.setEnabled(False) self.regConstantSuggestionButton.setText("") self.regConstantSuggestionButton.setObjectName("regConstantSuggestionButton") self.gridLayout.addWidget(self.regConstantSuggestionButton, 1, 2, 1, 1) self.label_14 = QtWidgets.QLabel(self.paramGroupBox) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.label_14.sizePolicy().hasHeightForWidth()) self.label_14.setSizePolicy(sizePolicy) self.label_14.setObjectName("label_14") self.gridLayout.addWidget(self.label_14, 2, 0, 1, 1) self.maxDistanceInput = QtWidgets.QLineEdit(self.paramGroupBox) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.maxDistanceInput.sizePolicy().hasHeightForWidth()) self.maxDistanceInput.setSizePolicy(sizePolicy) self.maxDistanceInput.setMinimumSize(QtCore.QSize(40, 0)) self.maxDistanceInput.setObjectName("maxDistanceInput") self.gridLayout.addWidget(self.maxDistanceInput, 2, 1, 1, 1) self.explorerButton = QtWidgets.QPushButton(self.paramGroupBox) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.explorerButton.sizePolicy().hasHeightForWidth()) self.explorerButton.setSizePolicy(sizePolicy) self.explorerButton.setMinimumSize(QtCore.QSize(50, 0)) self.explorerButton.setLayoutDirection(QtCore.Qt.LeftToRight) self.explorerButton.setObjectName("explorerButton") self.gridLayout.addWidget(self.explorerButton, 2, 2, 1, 1) self.noOfTermsInput.raise_() self.noOfTermsSuggestionButton.raise_() self.regularizationConstantInput.raise_() self.regConstantSuggestionButton.raise_() self.maxDistanceInput.raise_() self.explorerButton.raise_() self.label_13.raise_() self.label_12.raise_() self.label_14.raise_() self.gridLayout_6.addWidget(self.paramGroupBox, 1, 0, 1, 1) self.outputsGroupBox = QtWidgets.QGroupBox(self.tabMain) self.outputsGroupBox.setObjectName("outputsGroupBox") self.gridLayout_4 = QtWidgets.QGridLayout(self.outputsGroupBox) self.gridLayout_4.setObjectName("gridLayout_4") self.label_15 = QtWidgets.QLabel(self.outputsGroupBox) self.label_15.setObjectName("label_15") self.gridLayout_4.addWidget(self.label_15, 0, 0, 1, 1) self.rgValue = QtWidgets.QLineEdit(self.outputsGroupBox) self.rgValue.setEnabled(True) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.rgValue.sizePolicy().hasHeightForWidth()) self.rgValue.setSizePolicy(sizePolicy) self.rgValue.setReadOnly(True) self.rgValue.setObjectName("rgValue") self.gridLayout_4.addWidget(self.rgValue, 0, 1, 1, 1) self.label_24 = QtWidgets.QLabel(self.outputsGroupBox) self.label_24.setObjectName("label_24") self.gridLayout_4.addWidget(self.label_24, 0, 2, 1, 1) self.label_22 = QtWidgets.QLabel(self.outputsGroupBox) self.label_22.setText("") self.label_22.setObjectName("label_22") self.gridLayout_4.addWidget(self.label_22, 0, 3, 1, 1) self.label_19 = QtWidgets.QLabel(self.outputsGroupBox) self.label_19.setObjectName("label_19") self.gridLayout_4.addWidget(self.label_19, 0, 4, 1, 1) self.chiDofValue = QtWidgets.QLineEdit(self.outputsGroupBox) self.chiDofValue.setEnabled(True) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.chiDofValue.sizePolicy().hasHeightForWidth()) self.chiDofValue.setSizePolicy(sizePolicy) self.chiDofValue.setReadOnly(True) self.chiDofValue.setObjectName("chiDofValue") self.gridLayout_4.addWidget(self.chiDofValue, 0, 5, 1, 1) self.label_16 = QtWidgets.QLabel(self.outputsGroupBox) self.label_16.setObjectName("label_16") self.gridLayout_4.addWidget(self.label_16, 1, 0, 1, 1) self.iQ0Value = QtWidgets.QLineEdit(self.outputsGroupBox) self.iQ0Value.setEnabled(True) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.iQ0Value.sizePolicy().hasHeightForWidth()) self.iQ0Value.setSizePolicy(sizePolicy) self.iQ0Value.setReadOnly(True) self.iQ0Value.setObjectName("iQ0Value") self.gridLayout_4.addWidget(self.iQ0Value, 1, 1, 1, 1) self.label_25 = QtWidgets.QLabel(self.outputsGroupBox) self.label_25.setObjectName("label_25") self.gridLayout_4.addWidget(self.label_25, 1, 2, 1, 1) self.label_20 = QtWidgets.QLabel(self.outputsGroupBox) self.label_20.setObjectName("label_20") self.gridLayout_4.addWidget(self.label_20, 1, 4, 1, 1) self.oscillationValue = QtWidgets.QLineEdit(self.outputsGroupBox) self.oscillationValue.setEnabled(True) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.oscillationValue.sizePolicy().hasHeightForWidth()) self.oscillationValue.setSizePolicy(sizePolicy) self.oscillationValue.setReadOnly(True) self.oscillationValue.setObjectName("oscillationValue") self.gridLayout_4.addWidget(self.oscillationValue, 1, 5, 1, 1) self.label_17 = QtWidgets.QLabel(self.outputsGroupBox) self.label_17.setObjectName("label_17") self.gridLayout_4.addWidget(self.label_17, 2, 0, 1, 1) self.backgroundValue = QtWidgets.QLineEdit(self.outputsGroupBox) self.backgroundValue.setEnabled(True) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.backgroundValue.sizePolicy().hasHeightForWidth()) self.backgroundValue.setSizePolicy(sizePolicy) self.backgroundValue.setReadOnly(True) self.backgroundValue.setObjectName("backgroundValue") self.gridLayout_4.addWidget(self.backgroundValue, 2, 1, 1, 1) self.label_26 = QtWidgets.QLabel(self.outputsGroupBox) self.label_26.setObjectName("label_26") self.gridLayout_4.addWidget(self.label_26, 2, 2, 1, 1) self.label_21 = QtWidgets.QLabel(self.outputsGroupBox) self.label_21.setObjectName("label_21") self.gridLayout_4.addWidget(self.label_21, 2, 4, 1, 1) self.posFractionValue = QtWidgets.QLineEdit(self.outputsGroupBox) self.posFractionValue.setEnabled(True) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.posFractionValue.sizePolicy().hasHeightForWidth()) self.posFractionValue.setSizePolicy(sizePolicy) self.posFractionValue.setReadOnly(True) self.posFractionValue.setObjectName("posFractionValue") self.gridLayout_4.addWidget(self.posFractionValue, 2, 5, 1, 1) self.label_18 = QtWidgets.QLabel(self.outputsGroupBox) self.label_18.setObjectName("label_18") self.gridLayout_4.addWidget(self.label_18, 3, 0, 1, 1) self.computationTimeValue = QtWidgets.QLineEdit(self.outputsGroupBox) self.computationTimeValue.setEnabled(True) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.computationTimeValue.sizePolicy().hasHeightForWidth()) self.computationTimeValue.setSizePolicy(sizePolicy) self.computationTimeValue.setReadOnly(True) self.computationTimeValue.setObjectName("computationTimeValue") self.gridLayout_4.addWidget(self.computationTimeValue, 3, 1, 1, 1) self.label_27 = QtWidgets.QLabel(self.outputsGroupBox) self.label_27.setObjectName("label_27") self.gridLayout_4.addWidget(self.label_27, 3, 2, 1, 1) self.label_29 = QtWidgets.QLabel(self.outputsGroupBox) self.label_29.setObjectName("label_29") self.gridLayout_4.addWidget(self.label_29, 3, 4, 1, 1) self.sigmaPosFractionValue = QtWidgets.QLineEdit(self.outputsGroupBox) self.sigmaPosFractionValue.setEnabled(True) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.sigmaPosFractionValue.sizePolicy().hasHeightForWidth()) self.sigmaPosFractionValue.setSizePolicy(sizePolicy) self.sigmaPosFractionValue.setReadOnly(True) self.sigmaPosFractionValue.setObjectName("sigmaPosFractionValue") self.gridLayout_4.addWidget(self.sigmaPosFractionValue, 3, 5, 1, 1) self.gridLayout_6.addWidget(self.outputsGroupBox, 2, 0, 1, 1) self.PrTabWidget.addTab(self.tabMain, "") self.tabOptions = QtWidgets.QWidget() self.tabOptions.setObjectName("tabOptions") self.gridLayout_9 = QtWidgets.QGridLayout(self.tabOptions) self.gridLayout_9.setContentsMargins(0, 0, 0, 0) self.gridLayout_9.setObjectName("gridLayout_9") self.groupBox = QtWidgets.QGroupBox(self.tabOptions) self.groupBox.setObjectName("groupBox") self.gridLayout_8 = QtWidgets.QGridLayout(self.groupBox) self.gridLayout_8.setObjectName("gridLayout_8") self.horizontalLayout_3 = QtWidgets.QHBoxLayout() self.horizontalLayout_3.setObjectName("horizontalLayout_3") self.label_5 = QtWidgets.QLabel(self.groupBox) self.label_5.setObjectName("label_5") self.horizontalLayout_3.addWidget(self.label_5) self.backgroundInput = QtWidgets.QLineEdit(self.groupBox) self.backgroundInput.setEnabled(False) self.backgroundInput.setObjectName("backgroundInput") self.horizontalLayout_3.addWidget(self.backgroundInput) self.label_10 = QtWidgets.QLabel(self.groupBox) self.label_10.setObjectName("label_10") self.horizontalLayout_3.addWidget(self.label_10) self.estimateBgd = QtWidgets.QRadioButton(self.groupBox) self.estimateBgd.setObjectName("estimateBgd") self.horizontalLayout_3.addWidget(self.estimateBgd) self.manualBgd = QtWidgets.QRadioButton(self.groupBox) self.manualBgd.setObjectName("manualBgd") self.horizontalLayout_3.addWidget(self.manualBgd) self.horizontalLayout_3.setStretch(0, 2) self.horizontalLayout_3.setStretch(1, 1) self.horizontalLayout_3.setStretch(3, 2) self.horizontalLayout_3.setStretch(4, 2) self.gridLayout_8.addLayout(self.horizontalLayout_3, 0, 0, 1, 1) self.qRangeGroupBox = QtWidgets.QGroupBox(self.groupBox) self.qRangeGroupBox.setObjectName("qRangeGroupBox") self.gridLayout_3 = QtWidgets.QGridLayout(self.qRangeGroupBox) self.gridLayout_3.setObjectName("gridLayout_3") self.horizontalLayout_4 = QtWidgets.QHBoxLayout() self.horizontalLayout_4.setObjectName("horizontalLayout_4") self.label_7 = QtWidgets.QLabel(self.qRangeGroupBox) self.label_7.setObjectName("label_7") self.horizontalLayout_4.addWidget(self.label_7) self.minQInput = QtWidgets.QLineEdit(self.qRangeGroupBox) self.minQInput.setEnabled(True) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.minQInput.sizePolicy().hasHeightForWidth()) self.minQInput.setSizePolicy(sizePolicy) self.minQInput.setObjectName("minQInput") self.horizontalLayout_4.addWidget(self.minQInput) self.label_11 = QtWidgets.QLabel(self.qRangeGroupBox) self.label_11.setObjectName("label_11") self.horizontalLayout_4.addWidget(self.label_11) self.label_8 = QtWidgets.QLabel(self.qRangeGroupBox) self.label_8.setObjectName("label_8") self.horizontalLayout_4.addWidget(self.label_8) self.maxQInput = QtWidgets.QLineEdit(self.qRangeGroupBox) self.maxQInput.setEnabled(True) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.maxQInput.sizePolicy().hasHeightForWidth()) self.maxQInput.setSizePolicy(sizePolicy) self.maxQInput.setObjectName("maxQInput") self.horizontalLayout_4.addWidget(self.maxQInput) self.label_9 = QtWidgets.QLabel(self.qRangeGroupBox) self.label_9.setObjectName("label_9") self.horizontalLayout_4.addWidget(self.label_9) self.gridLayout_3.addLayout(self.horizontalLayout_4, 0, 0, 1, 1) self.gridLayout_8.addWidget(self.qRangeGroupBox, 1, 0, 1, 1) self.slitParamsGroupBox = QtWidgets.QGroupBox(self.groupBox) self.slitParamsGroupBox.setObjectName("slitParamsGroupBox") self.gridLayout_5 = QtWidgets.QGridLayout(self.slitParamsGroupBox) self.gridLayout_5.setObjectName("gridLayout_5") self.horizontalLayout = QtWidgets.QHBoxLayout() self.horizontalLayout.setObjectName("horizontalLayout") self.label_3 = QtWidgets.QLabel(self.slitParamsGroupBox) self.label_3.setObjectName("label_3") self.horizontalLayout.addWidget(self.label_3) self.slitHeightInput = QtWidgets.QLineEdit(self.slitParamsGroupBox) self.slitHeightInput.setEnabled(True) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.slitHeightInput.sizePolicy().hasHeightForWidth()) self.slitHeightInput.setSizePolicy(sizePolicy) self.slitHeightInput.setObjectName("slitHeightInput") self.horizontalLayout.addWidget(self.slitHeightInput) self.label_6 = QtWidgets.QLabel(self.slitParamsGroupBox) self.label_6.setObjectName("label_6") self.horizontalLayout.addWidget(self.label_6) self.label_4 = QtWidgets.QLabel(self.slitParamsGroupBox) self.label_4.setObjectName("label_4") self.horizontalLayout.addWidget(self.label_4) self.slitWidthInput = QtWidgets.QLineEdit(self.slitParamsGroupBox) self.slitWidthInput.setEnabled(True) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.slitWidthInput.sizePolicy().hasHeightForWidth()) self.slitWidthInput.setSizePolicy(sizePolicy) self.slitWidthInput.setObjectName("slitWidthInput") self.horizontalLayout.addWidget(self.slitWidthInput) self.label_2 = QtWidgets.QLabel(self.slitParamsGroupBox) self.label_2.setObjectName("label_2") self.horizontalLayout.addWidget(self.label_2) self.gridLayout_5.addLayout(self.horizontalLayout, 0, 0, 1, 1) self.gridLayout_8.addWidget(self.slitParamsGroupBox, 2, 0, 1, 1) self.gridLayout_9.addWidget(self.groupBox, 0, 0, 1, 1) spacerItem = QtWidgets.QSpacerItem(20, 255, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) self.gridLayout_9.addItem(spacerItem, 1, 0, 1, 1) self.PrTabWidget.addTab(self.tabOptions, "") self.gridLayout_7.addWidget(self.PrTabWidget, 0, 0, 1, 1) self.horizontalLayout_8 = QtWidgets.QHBoxLayout() self.horizontalLayout_8.setSizeConstraint(QtWidgets.QLayout.SetDefaultConstraint) self.horizontalLayout_8.setObjectName("horizontalLayout_8") self.calculateThisButton = QtWidgets.QPushButton(PrInversion) self.calculateThisButton.setEnabled(True) self.calculateThisButton.setObjectName("calculateThisButton") self.horizontalLayout_8.addWidget(self.calculateThisButton) self.calculateAllButton = QtWidgets.QPushButton(PrInversion) self.calculateAllButton.setEnabled(False) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.calculateAllButton.sizePolicy().hasHeightForWidth()) self.calculateAllButton.setSizePolicy(sizePolicy) self.calculateAllButton.setObjectName("calculateAllButton") self.horizontalLayout_8.addWidget(self.calculateAllButton) self.stopButton = QtWidgets.QPushButton(PrInversion) self.stopButton.setObjectName("stopButton") self.horizontalLayout_8.addWidget(self.stopButton) spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_8.addItem(spacerItem1) self.helpButton = QtWidgets.QPushButton(PrInversion) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.helpButton.sizePolicy().hasHeightForWidth()) self.helpButton.setSizePolicy(sizePolicy) self.helpButton.setObjectName("helpButton") self.horizontalLayout_8.addWidget(self.helpButton) self.gridLayout_7.addLayout(self.horizontalLayout_8, 1, 0, 1, 1) self.retranslateUi(PrInversion) self.PrTabWidget.setCurrentIndex(0) QtCore.QMetaObject.connectSlotsByName(PrInversion)
[docs] def retranslateUi(self, PrInversion): _translate = QtCore.QCoreApplication.translate PrInversion.setWindowTitle(_translate("PrInversion", "P(r) Inversion")) self.dataSourceGroupBox.setTitle(_translate("PrInversion", "I(q) data source")) self.label.setText(_translate("PrInversion", "Data File Name:")) self.removeButton.setText(_translate("PrInversion", "Remove")) self.paramGroupBox.setToolTip(_translate("PrInversion", "<!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:8pt; font-weight:400; font-style:normal;\">\n" "<pre style=\" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;><span style=\" font-family:\'Courier New\'; font-size:9pt; color:#000000;\">P(r) is found by fitting a set of base functions to I(Q). The minimization involves a regularization term to ensure a smooth P(r). The regularization constant gives the size of that term. The suggested value is the value above which the output P(r) will have only one peak.</span></pre></body></html>")) self.paramGroupBox.setTitle(_translate("PrInversion", "Parameters")) self.label_12.setText(_translate("PrInversion", "Number of terms")) self.label_13.setText(_translate("PrInversion", "Reg. constant")) self.label_14.setText(_translate("PrInversion", "Max distance [Å]")) self.explorerButton.setToolTip(_translate("PrInversion", "<html><head/><body><p>Open the D<span style=\" vertical-align:sub;\">max</span> explorer window.</p></body></html>")) self.explorerButton.setText(_translate("PrInversion", "Explore")) self.outputsGroupBox.setTitle(_translate("PrInversion", "Outputs")) self.label_15.setText(_translate("PrInversion", "<html><head/><body><p>R<span style=\" vertical-align:sub;\">g</span></p></body></html>")) self.label_24.setText(_translate("PrInversion", "Å")) self.label_19.setText(_translate("PrInversion", "<html><head/><body><p>χ<span style=\" vertical-align:super;\">2</span>/dof</p></body></html>")) self.label_16.setText(_translate("PrInversion", "I(Q=0)")) self.label_25.setText(_translate("PrInversion", "<html><head/><body><p>Å<span style=\" vertical-align:super;\">-1</span></p></body></html>")) self.label_20.setText(_translate("PrInversion", "Oscillations")) self.label_17.setText(_translate("PrInversion", "Background")) self.label_26.setText(_translate("PrInversion", "<html><head/><body><p>Å<span style=\" vertical-align:super;\">-1</span></p></body></html>")) self.label_21.setText(_translate("PrInversion", "<html><head/><body><p>P<span style=\" vertical-align:super;\">+</span> Fraction</p></body></html>")) self.label_18.setText(_translate("PrInversion", "Calc. Time")) self.label_27.setText(_translate("PrInversion", "secs")) self.label_29.setText(_translate("PrInversion", "<html><head/><body><p>P<span style=\" vertical-align:super;\">+</span><span style=\" vertical-align:sub;\">1-σ</span> fraction</p></body></html>")) self.PrTabWidget.setTabText(self.PrTabWidget.indexOf(self.tabMain), _translate("PrInversion", "Parameters")) self.groupBox.setTitle(_translate("PrInversion", "Options")) self.label_5.setText(_translate("PrInversion", "Background Level:")) self.backgroundInput.setText(_translate("PrInversion", "0.0")) self.label_10.setText(_translate("PrInversion", "<html><head/><body><p>Å<span style=\" vertical-align:super;\">-1</span></p></body></html>")) self.estimateBgd.setText(_translate("PrInversion", "Estimate")) self.manualBgd.setText(_translate("PrInversion", "Manual Input")) self.qRangeGroupBox.setTitle(_translate("PrInversion", "Total Q range")) self.label_7.setText(_translate("PrInversion", "Min:")) self.label_11.setText(_translate("PrInversion", "<html><head/><body><p>Å<span style=\" vertical-align:super;\">-1</span></p></body></html>")) self.label_8.setText(_translate("PrInversion", "Max:")) self.label_9.setText(_translate("PrInversion", "<html><head/><body><p>Å<span style=\" vertical-align:super;\">-1</span></p></body></html>")) self.slitParamsGroupBox.setTitle(_translate("PrInversion", "Slit Parameters")) self.label_3.setText(_translate("PrInversion", "Height")) self.label_6.setText(_translate("PrInversion", "<html><head/><body><p>Å<span style=\" vertical-align:super;\">-1</span></p></body></html>")) self.label_4.setText(_translate("PrInversion", "Width")) self.label_2.setText(_translate("PrInversion", "<html><head/><body><p>Å<span style=\" vertical-align:super;\">-1</span></p></body></html>")) self.PrTabWidget.setTabText(self.PrTabWidget.indexOf(self.tabOptions), _translate("PrInversion", "Options")) self.calculateThisButton.setText(_translate("PrInversion", "Calculate")) self.calculateAllButton.setText(_translate("PrInversion", "Calculate All")) self.stopButton.setText(_translate("PrInversion", "Stop P(r)")) self.helpButton.setText(_translate("PrInversion", "Help"))