Source code for sas.qtgui.Plotting.UI.MaskEditorUI

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

# Form implementation generated from reading ui file '.\src\sas\qtgui\Plotting\UI\MaskEditorUI.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_MaskEditorUI(object):
[docs] def setupUi(self, MaskEditorUI): MaskEditorUI.setObjectName("MaskEditorUI") MaskEditorUI.resize(824, 453) icon = QtGui.QIcon() icon.addPixmap(QtGui.QPixmap(":/res/ball.ico"), QtGui.QIcon.Normal, QtGui.QIcon.Off) MaskEditorUI.setWindowIcon(icon) self.gridLayout = QtWidgets.QGridLayout(MaskEditorUI) self.gridLayout.setObjectName("gridLayout") self.groupBox = QtWidgets.QGroupBox(MaskEditorUI) self.groupBox.setObjectName("groupBox") self.verticalLayout = QtWidgets.QVBoxLayout(self.groupBox) self.verticalLayout.setObjectName("verticalLayout") self.rbWings = QtWidgets.QRadioButton(self.groupBox) self.rbWings.setObjectName("rbWings") self.verticalLayout.addWidget(self.rbWings) self.rbCircularDisk = QtWidgets.QRadioButton(self.groupBox) self.rbCircularDisk.setObjectName("rbCircularDisk") self.verticalLayout.addWidget(self.rbCircularDisk) self.rbRectangularDisk = QtWidgets.QRadioButton(self.groupBox) self.rbRectangularDisk.setObjectName("rbRectangularDisk") self.verticalLayout.addWidget(self.rbRectangularDisk) self.rbDoubleWingWindow = QtWidgets.QRadioButton(self.groupBox) self.rbDoubleWingWindow.setObjectName("rbDoubleWingWindow") self.verticalLayout.addWidget(self.rbDoubleWingWindow) self.rbCircularWindow = QtWidgets.QRadioButton(self.groupBox) self.rbCircularWindow.setObjectName("rbCircularWindow") self.verticalLayout.addWidget(self.rbCircularWindow) self.rbRectangularWindow = QtWidgets.QRadioButton(self.groupBox) self.rbRectangularWindow.setObjectName("rbRectangularWindow") self.verticalLayout.addWidget(self.rbRectangularWindow) self.gridLayout.addWidget(self.groupBox, 0, 0, 1, 1) spacerItem = QtWidgets.QSpacerItem(20, 152, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) self.gridLayout.addItem(spacerItem, 1, 0, 1, 1) self.cmdAdd = QtWidgets.QPushButton(MaskEditorUI) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.cmdAdd.sizePolicy().hasHeightForWidth()) self.cmdAdd.setSizePolicy(sizePolicy) self.cmdAdd.setObjectName("cmdAdd") self.gridLayout.addWidget(self.cmdAdd, 2, 0, 1, 1) self.cmdReset = QtWidgets.QPushButton(MaskEditorUI) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.cmdReset.sizePolicy().hasHeightForWidth()) self.cmdReset.setSizePolicy(sizePolicy) self.cmdReset.setObjectName("cmdReset") self.gridLayout.addWidget(self.cmdReset, 3, 0, 1, 1) self.cmdClear = QtWidgets.QPushButton(MaskEditorUI) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.cmdClear.sizePolicy().hasHeightForWidth()) self.cmdClear.setSizePolicy(sizePolicy) self.cmdClear.setObjectName("cmdClear") self.gridLayout.addWidget(self.cmdClear, 4, 0, 1, 1) self.frame = QtWidgets.QFrame(MaskEditorUI) self.frame.setFrameShape(QtWidgets.QFrame.StyledPanel) self.frame.setFrameShadow(QtWidgets.QFrame.Raised) self.frame.setLineWidth(2) self.frame.setObjectName("frame") self.gridLayout.addWidget(self.frame, 0, 1, 5, 1) self.retranslateUi(MaskEditorUI) QtCore.QMetaObject.connectSlotsByName(MaskEditorUI)
[docs] def retranslateUi(self, MaskEditorUI): _translate = QtCore.QCoreApplication.translate MaskEditorUI.setWindowTitle(_translate("MaskEditorUI", "Dialog")) self.groupBox.setTitle(_translate("MaskEditorUI", "Mask shape")) self.rbWings.setText(_translate("MaskEditorUI", "Double Wings")) self.rbCircularDisk.setText(_translate("MaskEditorUI", "Circular Disk")) self.rbRectangularDisk.setText(_translate("MaskEditorUI", "Rectangular Disk")) self.rbDoubleWingWindow.setText(_translate("MaskEditorUI", "Double Wing Window")) self.rbCircularWindow.setText(_translate("MaskEditorUI", "Circular Window")) self.rbRectangularWindow.setText(_translate("MaskEditorUI", "Rectangular Window")) self.cmdAdd.setText(_translate("MaskEditorUI", "Add")) self.cmdReset.setToolTip(_translate("MaskEditorUI", "Clear all the masks")) self.cmdReset.setText(_translate("MaskEditorUI", "Reset")) self.cmdClear.setToolTip(_translate("MaskEditorUI", "Clear recent masks")) self.cmdClear.setText(_translate("MaskEditorUI", "Clear"))