Ejemplo n.º 1
0
    def setupUi(self, MainWindow_askCalibCCD):
        MainWindow_askCalibCCD.setObjectName("MainWindow_askCalibCCD")
        MainWindow_askCalibCCD.resize(488, 82)
        MainWindow_askCalibCCD.setStyleSheet(
            "background-color: rgb(65, 65, 65);")
        self.centralwidget = QtWidgets.QWidget(MainWindow_askCalibCCD)
        self.centralwidget.setObjectName("centralwidget")
        self.gridLayout = QtWidgets.QGridLayout(self.centralwidget)
        self.gridLayout.setObjectName("gridLayout")
        self.PyDMLabel_question = PyDMLabel(self.centralwidget)
        self.PyDMLabel_question.setToolTip("")
        self.PyDMLabel_question.setWhatsThis("")
        self.PyDMLabel_question.setStyleSheet(
            "background-color: rgb(65, 65, 65);\n"
            "color: rgb(255, 255, 255);")
        self.PyDMLabel_question.setObjectName("PyDMLabel_question")
        self.gridLayout.addWidget(self.PyDMLabel_question, 0, 0, 1, 2)
        self.PyDMPushButton_YES = PyDMPushButton(self.centralwidget)
        self.PyDMPushButton_YES.setToolTip("")
        self.PyDMPushButton_YES.setStyleSheet("color: rgb(255, 255, 255);")
        self.PyDMPushButton_YES.setObjectName("PyDMPushButton_YES")
        self.gridLayout.addWidget(self.PyDMPushButton_YES, 1, 0, 1, 1)
        self.PyDMPushButton_NO = PyDMPushButton(self.centralwidget)
        self.PyDMPushButton_NO.setToolTip("")
        self.PyDMPushButton_NO.setStyleSheet("color: rgb(255, 255, 255);")
        self.PyDMPushButton_NO.setObjectName("PyDMPushButton_NO")
        self.gridLayout.addWidget(self.PyDMPushButton_NO, 1, 1, 1, 1)
        MainWindow_askCalibCCD.setCentralWidget(self.centralwidget)
        self.statusbar = QtWidgets.QStatusBar(MainWindow_askCalibCCD)
        self.statusbar.setObjectName("statusbar")
        MainWindow_askCalibCCD.setStatusBar(self.statusbar)

        self.retranslateUi(MainWindow_askCalibCCD)
        QtCore.QMetaObject.connectSlotsByName(MainWindow_askCalibCCD)
Ejemplo n.º 2
0
    def __init__(self, command_suffix, readback_suffix, readback_name,
                 **kwargs):
        self._readback_suffix = readback_suffix

        self.readback_label = PyDMLabel()
        self.readback_label.setObjectName(readback_name)
        self.readback_label.setAlignment(Qt.AlignCenter)
        super(ButtonLabelControl, self).__init__(command_suffix, **kwargs)
        self.controls_frame.layout().insertWidget(0, self.readback_label)
Ejemplo n.º 3
0
 def __init__(self, readback_suffix, readback_name, **kwargs):
     self._readback_suffix = readback_suffix
     self.readback_label = PyDMLabel()
     if readback_name:
         self.readback_label.setObjectName(readback_name)
     self.readback_label.setAlignment(Qt.AlignCenter)
     self.controls_layout = QVBoxLayout()
     self.controls_layout.setSpacing(2)
     self.controls_layout.setContentsMargins(0, 10, 0, 0)
     super(LabelControl, self).__init__(**kwargs)
     self.controls_frame.setLayout(self.controls_layout)
     self.controls_frame.layout().addWidget(self.readback_label)
Ejemplo n.º 4
0
 def add(self, pvname):
     '''add a PV to the table'''
     if pvname in self.db:
         return
     row = len(self.db) + 1
     label = QLabel(pvname)
     widget = PyDMLabel(init_channel=f"ca://{pvname}")
     widget.useAlarmState = True
     self.formatWidget(label)
     self.formatWidget(widget)
     self.db[pvname] = widget
     self.grid.addWidget(label, row, 0)
     self.grid.addWidget(widget, row, 1)
Ejemplo n.º 5
0
    def _create_entry(self, segment):
        segment_label = QtWidgets.QLabel(str(segment))
        und_widget = UndulatorWidget()
        und_widget.prefix = self.prefix
        und_widget.segment = segment

        curr_pv = UndulatorWidget.CHANNELS['curr_k'].format(prefix=self.prefix,
                                                            segment=segment)
        curr_label = PyDMLabel(init_channel=curr_pv)
        curr_label.setMinimumWidth(100)

        target_pv = UndulatorWidget.CHANNELS['target_k'].format(
            prefix=self.prefix, segment=segment)
        target_label = PyDMLabel(init_channel=target_pv)
        target_label.setMinimumWidth(100)

        k_values_layout = QtWidgets.QFormLayout()
        k_values_layout.setFormAlignment(QtCore.Qt.AlignCenter)
        k_values_layout.addRow("Current K:", curr_label)
        k_values_layout.addRow("Target K:", target_label)

        layout = QtWidgets.QHBoxLayout()
        layout.addWidget(segment_label)
        layout.addWidget(und_widget)
        layout.addLayout(k_values_layout)
        layout.addStretch(1)
        layout.setStretch(0, 0)
        layout.setStretch(1, 1)
        layout.setStretch(2, 0)

        return layout
Ejemplo n.º 6
0
class ButtonLabelControl(ButtonControl):
    """
    The ButtonLabelControl class adds a PyDMEnumButton and a PyDMLabel to the
    widget for controls.

    Parameters
    ----------
    command_suffix : str
        The suffix to be used along with the channelPrefix from PCDSSymbolBase
        to compose the command button channel address.
    readback_suffix : str
        The suffix to be used along with the channelPrefix from PCDSSymbolBase
        to compose the readback label channel address.
    readback_name : str
        The name to be set to the PyDMLabel so one can refer to it by name
        with stylesheet
    """
    def __init__(self, command_suffix, readback_suffix, readback_name,
                 **kwargs):
        self._readback_suffix = readback_suffix

        self.readback_label = PyDMLabel()
        self.readback_label.setObjectName(readback_name)
        self.readback_label.setAlignment(Qt.AlignCenter)
        super(ButtonLabelControl, self).__init__(command_suffix, **kwargs)

        self.controls_frame.layout().addWidget(self.readback_label)

    def create_channels(self):
        """
        Method invoked when the channels associated with the widget must be
        created.
        This method also sets the channel address for the control button.
        """
        super(ButtonLabelControl, self).create_channels()
        if self._channels_prefix:
            self.readback_label.channel = "{}{}".format(
                self._channels_prefix, self._readback_suffix)

    def destroy_channels(self):
        """
        Method invoked when the channels associated with the widget must be
        destroyed.
        This method also clears the channel address for the control button.
        """
        super(ButtonLabelControl, self).destroy_channels()
        self.readback_label.channel = None
Ejemplo n.º 7
0
    def restoreDefault(self, desiredAmplitude: QLineEdit,
                       amaxLabel: PyDMLabel):
        try:
            maxAmplitude = float(amaxLabel.text())
        except (ValueError, TypeError):
            maxAmplitude = 0

        desiredAmplitude.setText(str(maxAmplitude))
Ejemplo n.º 8
0
    def get_gauge(self, parent, macros):
        aux = []
        for k, v in macros.items():
            aux.append('{}\t{}\n'.format(k, v))
        tooltip = ''.join(aux)

        width = 320
        height = 100

        frame = QFrame(parent)
        frame.setGeometry(QRect(10, 10, width, height))
        frame.setMinimumSize(width, height)
        frame.setFrameShape(QFrame.StyledPanel)
        frame.setFrameShadow(QFrame.Raised)
        frame.setObjectName("frame")

        brush = QBrush(QColor(180, 180, 180))
        brush.setStyle(Qt.NoBrush)

        alarmRec = PyDMDrawingRectangle(frame)
        alarmRec.channel = "ca://{}".format(macros.get('ALARM', None))
        alarmRec.setGeometry(QRect(0, 0, width, height))
        alarmRec.setToolTip(tooltip)
        alarmRec.setProperty("alarmSensitiveContent", True)
        alarmRec.setProperty("brush", brush)
        alarmRec.setObjectName("alarmRec")
        # alarmRec.setStyleSheet("margin:5px; border:3px solid rgb(0, 0, 0);")

        lblName = QLabel(frame)
        lblName.setGeometry(QRect(width * 0.05, 50, width - width * 0.05, 20))
        font = QFont()
        font.setPointSize(12)
        lblName.setFont(font)
        lblName.setAlignment(Qt.AlignCenter)
        lblName.setText("{}".format(macros.get('DISP', None)))
        lblName.setObjectName("lblName")
        lblName.setToolTip(tooltip)

        lblVal = PyDMLabel(frame)
        lblVal.setGeometry(QRect(width * 0.05, 10, width - width * 0.05, 30))
        font = QFont()
        font.setPointSize(18)
        lblVal.setFont(font)
        lblVal.setToolTip(tooltip)
        lblVal.setAlignment(Qt.AlignCenter)
        lblVal.setProperty("showUnits", False)
        lblVal.setObjectName("lblVal")
        lblVal.channel = "ca://{}".format(macros.get('PV', None))
        lblVal.precisionFromPV = False
        lblVal.precision = 2
        if self.macros.get('FORMAT', '') == 'EXP':
            lblVal.displayFormat = PyDMLabel.DisplayFormat.Exponential
        return frame
Ejemplo n.º 9
0
class Ui_MainWindow_askCalibCCD(object):
    def setupUi(self, MainWindow_askCalibCCD):
        MainWindow_askCalibCCD.setObjectName("MainWindow_askCalibCCD")
        MainWindow_askCalibCCD.resize(488, 82)
        MainWindow_askCalibCCD.setStyleSheet(
            "background-color: rgb(65, 65, 65);")
        self.centralwidget = QtWidgets.QWidget(MainWindow_askCalibCCD)
        self.centralwidget.setObjectName("centralwidget")
        self.gridLayout = QtWidgets.QGridLayout(self.centralwidget)
        self.gridLayout.setObjectName("gridLayout")
        self.PyDMLabel_question = PyDMLabel(self.centralwidget)
        self.PyDMLabel_question.setToolTip("")
        self.PyDMLabel_question.setWhatsThis("")
        self.PyDMLabel_question.setStyleSheet(
            "background-color: rgb(65, 65, 65);\n"
            "color: rgb(255, 255, 255);")
        self.PyDMLabel_question.setObjectName("PyDMLabel_question")
        self.gridLayout.addWidget(self.PyDMLabel_question, 0, 0, 1, 2)
        self.PyDMPushButton_YES = PyDMPushButton(self.centralwidget)
        self.PyDMPushButton_YES.setToolTip("")
        self.PyDMPushButton_YES.setStyleSheet("color: rgb(255, 255, 255);")
        self.PyDMPushButton_YES.setObjectName("PyDMPushButton_YES")
        self.gridLayout.addWidget(self.PyDMPushButton_YES, 1, 0, 1, 1)
        self.PyDMPushButton_NO = PyDMPushButton(self.centralwidget)
        self.PyDMPushButton_NO.setToolTip("")
        self.PyDMPushButton_NO.setStyleSheet("color: rgb(255, 255, 255);")
        self.PyDMPushButton_NO.setObjectName("PyDMPushButton_NO")
        self.gridLayout.addWidget(self.PyDMPushButton_NO, 1, 1, 1, 1)
        MainWindow_askCalibCCD.setCentralWidget(self.centralwidget)
        self.statusbar = QtWidgets.QStatusBar(MainWindow_askCalibCCD)
        self.statusbar.setObjectName("statusbar")
        MainWindow_askCalibCCD.setStatusBar(self.statusbar)

        self.retranslateUi(MainWindow_askCalibCCD)
        QtCore.QMetaObject.connectSlotsByName(MainWindow_askCalibCCD)

    def retranslateUi(self, MainWindow_askCalibCCD):
        _translate = QtCore.QCoreApplication.translate
        MainWindow_askCalibCCD.setWindowTitle(
            _translate("MainWindow_askCalibCCD", "Image Capture"))
        self.PyDMLabel_question.setText(
            _translate("MainWindow_askCalibCCD",
                       "Do you want to capture images from MARCCD device?"))
        self.PyDMPushButton_YES.setWhatsThis(
            _translate(
                "MainWindow_askCalibCCD", "\n"
                "    Basic PushButton to send a fixed value.\n"
                "\n"
                "    The PyDMPushButton is meant to hold a specific value, and send that value\n"
                "    to a channel when it is clicked, much like the MessageButton does in EDM.\n"
                "    The PyDMPushButton works in two different modes of operation, first, a\n"
                "    fixed value can be given to the :attr:`.pressValue` attribute, whenever the\n"
                "    button is clicked a signal containing this value will be sent to the\n"
                "    connected channel. This is the default behavior of the button. However, if\n"
                "    the :attr:`.relativeChange` is set to True, the fixed value will be added\n"
                "    to the current value of the channel. This means that the button will\n"
                "    increment a channel by a fixed amount with every click, a consistent\n"
                "    relative move\n"
                "\n"
                "    Parameters\n"
                "    ----------\n"
                "    parent : QObject, optional\n"
                "        Parent of PyDMPushButton\n"
                "\n"
                "    label : str, optional\n"
                "        String to place on button\n"
                "\n"
                "    icon : QIcon, optional\n"
                "        An Icon to display on the PyDMPushButton\n"
                "\n"
                "    pressValue : int, float, str\n"
                "        Value to be sent when the button is clicked\n"
                "\n"
                "    relative : bool, optional\n"
                "        Choice to have the button perform a relative put, instead of always\n"
                "        setting to an absolute value\n"
                "\n"
                "    init_channel : str, optional\n"
                "        ID of channel to manipulate\n"
                "\n"
                "    "))
        self.PyDMPushButton_YES.setText(
            _translate("MainWindow_askCalibCCD", "Yes"))
        self.PyDMPushButton_NO.setWhatsThis(
            _translate(
                "MainWindow_askCalibCCD", "\n"
                "    Basic PushButton to send a fixed value.\n"
                "\n"
                "    The PyDMPushButton is meant to hold a specific value, and send that value\n"
                "    to a channel when it is clicked, much like the MessageButton does in EDM.\n"
                "    The PyDMPushButton works in two different modes of operation, first, a\n"
                "    fixed value can be given to the :attr:`.pressValue` attribute, whenever the\n"
                "    button is clicked a signal containing this value will be sent to the\n"
                "    connected channel. This is the default behavior of the button. However, if\n"
                "    the :attr:`.relativeChange` is set to True, the fixed value will be added\n"
                "    to the current value of the channel. This means that the button will\n"
                "    increment a channel by a fixed amount with every click, a consistent\n"
                "    relative move\n"
                "\n"
                "    Parameters\n"
                "    ----------\n"
                "    parent : QObject, optional\n"
                "        Parent of PyDMPushButton\n"
                "\n"
                "    label : str, optional\n"
                "        String to place on button\n"
                "\n"
                "    icon : QIcon, optional\n"
                "        An Icon to display on the PyDMPushButton\n"
                "\n"
                "    pressValue : int, float, str\n"
                "        Value to be sent when the button is clicked\n"
                "\n"
                "    relative : bool, optional\n"
                "        Choice to have the button perform a relative put, instead of always\n"
                "        setting to an absolute value\n"
                "\n"
                "    init_channel : str, optional\n"
                "        ID of channel to manipulate\n"
                "\n"
                "    "))
        self.PyDMPushButton_NO.setText(
            _translate("MainWindow_askCalibCCD", "No"))

    '''
Ejemplo n.º 10
0
    def get_gauge(self, parent, pv):
        aux = []
        for k, v in pv.items():
            aux.append("{}\t{}\n".format(k, v))
        tooltip = "".join(aux)

        width = 320
        height = 100

        frame = QFrame(parent)
        frame.setGeometry(QRect(10, 10, width, height))
        frame.setMinimumSize(width, height)
        frame.setFrameShape(QFrame.StyledPanel)
        frame.setFrameShadow(QFrame.Raised)
        frame.setObjectName("frame")

        brush = QBrush(QColor(180, 180, 180))
        brush.setStyle(Qt.NoBrush)

        alarmRec = PyDMDrawingRectangle(frame)
        alarmRec.channel = "ca://{}".format(pv.get("ALARM", None))
        alarmRec.setGeometry(QRect(0, 0, width, height * 0.8))
        alarmRec.setToolTip(tooltip)
        alarmRec.setProperty("alarmSensitiveContent", True)
        alarmRec.setProperty("brush", brush)
        alarmRec.setObjectName("alarmRec")

        alarmRecComm = PyDMDrawingRectangle(frame)
        alarmRecComm.channel = "ca://{}".format(
            pv.get("DEVICE", None) + ":Pressure:Read")
        alarmRecComm.setGeometry(QRect(0, height * 0.8, width, height * 0.2))
        alarmRecComm.setToolTip("Connection Indicator: {}\t{}".format(
            "DEVICE",
            pv.get("DEVICE", None) + ":Pressure:Read"))
        alarmRecComm.setProperty("alarmSensitiveContent", True)
        alarmRecComm.setProperty("brush", brush)
        alarmRecComm.setObjectName("alarmRecComm")
        alarmRecComm.setStyleSheet("""
            border:1px solid rgb(214, 214, 214);
        """)

        lblName = QLabel(frame)
        lblName.setGeometry(QRect(width * 0.05, 50, width - width * 0.05, 20))
        font = QFont()
        font.setPointSize(12)
        lblName.setFont(font)
        lblName.setAlignment(Qt.AlignCenter)
        lblName.setText("{}".format(pv.get("DISP", None)))
        lblName.setObjectName("lblName")
        lblName.setToolTip(tooltip)

        font = QFont()
        font.setPointSize(12)

        lblComm = QLabel(frame)
        lblComm.setGeometry(QRect(10, 80, 190, 20))
        lblComm.setFont(font)
        lblComm.setAlignment(Qt.AlignCenter)
        lblComm.setText("COMM Status")
        lblComm.setObjectName("lblComm")
        lblComm.setToolTip("Communication status to device {}".format(
            pv.get("DEVICE", "")))

        lblCommPv = PyDMLabel(frame)
        lblCommPv.setGeometry(QRect(150, 80, 190, 20))
        lblCommPv.setFont(font)
        lblCommPv.setToolTip("Communication status to device {}".format(
            pv.get("DEVICE", "")))
        lblCommPv.setAlignment(Qt.AlignCenter)
        lblCommPv.setObjectName("lblCommPv")
        lblCommPv.channel = "ca://{}".format(
            pv.get("DEVICE", None) + ":Pressure:Read.STAT")

        lblVal = PyDMLabel(frame)
        lblVal.setGeometry(QRect(width * 0.05, 10, width - width * 0.05, 30))
        font = QFont()
        font.setPointSize(18)
        lblVal.setFont(font)
        lblVal.setToolTip(tooltip)
        lblVal.setAlignment(Qt.AlignCenter)
        lblVal.setProperty("showUnits", False)
        lblVal.setObjectName("lblVal")
        lblVal.channel = "ca://{}".format(pv.get("PV", None))
        lblVal.precisionFromPV = False
        lblVal.precision = 2
        if self.macros.get("FORMAT", "") == "EXP":
            lblVal.displayFormat = PyDMLabel.DisplayFormat.Exponential
        return frame
Ejemplo n.º 11
0
    def setupUi(self, Ui_MainWindow_marccd):
        Ui_MainWindow_marccd.setObjectName("Ui_MainWindow_marccd")
        Ui_MainWindow_marccd.resize(672, 294)
        Ui_MainWindow_marccd.setMinimumSize(QtCore.QSize(0, 0))
        Ui_MainWindow_marccd.setMaximumSize(QtCore.QSize(672, 294))
        Ui_MainWindow_marccd.setStyleSheet("background-color: rgb(65, 65, 65);")
        self.centralwidget = QtWidgets.QWidget(Ui_MainWindow_marccd)
        self.centralwidget.setObjectName("centralwidget")
        self.gridLayout_9 = QtWidgets.QGridLayout(self.centralwidget)
        self.gridLayout_9.setObjectName("gridLayout_9")
        self.PyDMPushButton_abort = PyDMPushButton(self.centralwidget)
        self.PyDMPushButton_abort.setMinimumSize(QtCore.QSize(115, 23))
        self.PyDMPushButton_abort.setMaximumSize(QtCore.QSize(115, 23))
        self.PyDMPushButton_abort.setToolTip("")
        self.PyDMPushButton_abort.setStyleSheet("color: rgb(255, 255, 255);\n"
"background-color: rgb(75, 75, 75);")
        self.PyDMPushButton_abort.setObjectName("PyDMPushButton_abort")
        self.gridLayout_9.addWidget(self.PyDMPushButton_abort, 7, 3, 1, 1)
        self.PyDMDrawingLine_8 = PyDMDrawingLine(self.centralwidget)
        self.PyDMDrawingLine_8.setMinimumSize(QtCore.QSize(0, 15))
        self.PyDMDrawingLine_8.setMaximumSize(QtCore.QSize(16777215, 15))
        self.PyDMDrawingLine_8.setToolTip("")
        brush = QtGui.QBrush(QtGui.QColor(240, 240, 240))
        brush.setStyle(QtCore.Qt.SolidPattern)
        self.PyDMDrawingLine_8.setProperty("brush", brush)
        self.PyDMDrawingLine_8.setObjectName("PyDMDrawingLine_8")
        self.gridLayout_9.addWidget(self.PyDMDrawingLine_8, 4, 0, 1, 4)
        self.PyDMLabel_Filename = PyDMLabel(self.centralwidget)
        font = QtGui.QFont()
        font.setUnderline(True)
        self.PyDMLabel_Filename.setFont(font)
        self.PyDMLabel_Filename.setToolTip("")
        self.PyDMLabel_Filename.setWhatsThis("")
        self.PyDMLabel_Filename.setStyleSheet("color: rgb(240, 240, 240);")
        self.PyDMLabel_Filename.setObjectName("PyDMLabel_Filename")
        self.gridLayout_9.addWidget(self.PyDMLabel_Filename, 1, 2, 1, 2, QtCore.Qt.AlignHCenter)
        self.PyDMDrawingLine_6 = PyDMDrawingLine(self.centralwidget)
        self.PyDMDrawingLine_6.setMinimumSize(QtCore.QSize(0, 15))
        self.PyDMDrawingLine_6.setMaximumSize(QtCore.QSize(16777215, 15))
        self.PyDMDrawingLine_6.setToolTip("")
        brush = QtGui.QBrush(QtGui.QColor(240, 240, 240))
        brush.setStyle(QtCore.Qt.SolidPattern)
        self.PyDMDrawingLine_6.setProperty("brush", brush)
        self.PyDMDrawingLine_6.setObjectName("PyDMDrawingLine_6")
        self.gridLayout_9.addWidget(self.PyDMDrawingLine_6, 1, 1, 1, 1)
        self.gridLayout = QtWidgets.QGridLayout()
        self.gridLayout.setObjectName("gridLayout")
        self.PyDMLabel = PyDMLabel(self.centralwidget)
        font = QtGui.QFont()
        font.setUnderline(False)
        self.PyDMLabel.setFont(font)
        self.PyDMLabel.setToolTip("")
        self.PyDMLabel.setWhatsThis("")
        self.PyDMLabel.setStyleSheet("color: rgb(240, 240, 240);")
        self.PyDMLabel.setObjectName("PyDMLabel")
        self.gridLayout.addWidget(self.PyDMLabel, 1, 0, 1, 1, QtCore.Qt.AlignHCenter)
        self.lineEdit_IP = QtWidgets.QLineEdit(self.centralwidget)
        self.lineEdit_IP.setMinimumSize(QtCore.QSize(90, 23))
        self.lineEdit_IP.setMaximumSize(QtCore.QSize(90, 23))
        self.lineEdit_IP.setStyleSheet("background-color: rgb(255, 255, 255);\n"
"color: rgb(65, 65, 65);")
        self.lineEdit_IP.setObjectName("lineEdit_IP")
        self.gridLayout.addWidget(self.lineEdit_IP, 1, 1, 1, 1)
        self.PyDMDrawingLine_3 = PyDMDrawingLine(self.centralwidget)
        self.PyDMDrawingLine_3.setMinimumSize(QtCore.QSize(0, 15))
        self.PyDMDrawingLine_3.setMaximumSize(QtCore.QSize(16777215, 15))
        self.PyDMDrawingLine_3.setToolTip("")
        brush = QtGui.QBrush(QtGui.QColor(240, 240, 240))
        brush.setStyle(QtCore.Qt.SolidPattern)
        self.PyDMDrawingLine_3.setProperty("brush", brush)
        self.PyDMDrawingLine_3.setObjectName("PyDMDrawingLine_3")
        self.gridLayout.addWidget(self.PyDMDrawingLine_3, 0, 0, 1, 2)
        self.gridLayout_9.addLayout(self.gridLayout, 0, 0, 1, 1)
        self.gridLayout_5 = QtWidgets.QGridLayout()
        self.gridLayout_5.setObjectName("gridLayout_5")
        self.PyDMLabel_exposureOne = PyDMLabel(self.centralwidget)
        font = QtGui.QFont()
        font.setUnderline(False)
        self.PyDMLabel_exposureOne.setFont(font)
        self.PyDMLabel_exposureOne.setToolTip("")
        self.PyDMLabel_exposureOne.setWhatsThis("")
        self.PyDMLabel_exposureOne.setStyleSheet("color: rgb(240, 240, 240);")
        self.PyDMLabel_exposureOne.setObjectName("PyDMLabel_exposureOne")
        self.gridLayout_5.addWidget(self.PyDMLabel_exposureOne, 0, 0, 1, 1, QtCore.Qt.AlignHCenter)
        self.lineEdit_Exposureone = QtWidgets.QDoubleSpinBox(self.centralwidget)
        self.lineEdit_Exposureone.setMinimumSize(QtCore.QSize(70, 0))
        self.lineEdit_Exposureone.setMaximumSize(QtCore.QSize(70, 16777215))
        self.lineEdit_Exposureone.setStyleSheet("background-color: rgb(255, 255, 255);\n"
"color: rgb(65, 65, 65);")
        self.lineEdit_Exposureone.setDecimals(0)
        self.lineEdit_Exposureone.setMaximum(10000.0)
        self.lineEdit_Exposureone.setProperty("value", 10.0)
        self.lineEdit_Exposureone.setObjectName("lineEdit_Exposureone")
        self.gridLayout_5.addWidget(self.lineEdit_Exposureone, 0, 1, 1, 1, QtCore.Qt.AlignHCenter)
        self.gridLayout_9.addLayout(self.gridLayout_5, 2, 0, 1, 1)
        self.PyDMLabel_msgerror = PyDMLabel(self.centralwidget)
        self.PyDMLabel_msgerror.setMinimumSize(QtCore.QSize(299, 0))
        self.PyDMLabel_msgerror.setMaximumSize(QtCore.QSize(299, 16777215))
        self.PyDMLabel_msgerror.setToolTip("")
        self.PyDMLabel_msgerror.setWhatsThis("")
        self.PyDMLabel_msgerror.setStyleSheet("color: rgb(240, 240, 240);")
        self.PyDMLabel_msgerror.setObjectName("PyDMLabel_msgerror")
        self.gridLayout_9.addWidget(self.PyDMLabel_msgerror, 7, 1, 1, 2)
        self.gridLayout_12 = QtWidgets.QGridLayout()
        self.gridLayout_12.setObjectName("gridLayout_12")
        self.PyDMLabel_connectstatus = PyDMLabel(self.centralwidget)
        font = QtGui.QFont()
        font.setUnderline(True)
        self.PyDMLabel_connectstatus.setFont(font)
        self.PyDMLabel_connectstatus.setToolTip("")
        self.PyDMLabel_connectstatus.setWhatsThis("")
        self.PyDMLabel_connectstatus.setStyleSheet("color: rgb(240, 240, 240);")
        self.PyDMLabel_connectstatus.setObjectName("PyDMLabel_connectstatus")
        self.gridLayout_12.addWidget(self.PyDMLabel_connectstatus, 0, 0, 1, 1, QtCore.Qt.AlignHCenter)
        self.PyDMPushButton_connect = PyDMPushButton(self.centralwidget)
        self.PyDMPushButton_connect.setMinimumSize(QtCore.QSize(150, 0))
        self.PyDMPushButton_connect.setMaximumSize(QtCore.QSize(150, 16777215))
        self.PyDMPushButton_connect.setToolTip("")
        self.PyDMPushButton_connect.setStyleSheet("\n"
"background-color: rgb(75, 75, 75);\n"
"color: rgb(255, 255, 255);")
        self.PyDMPushButton_connect.setObjectName("PyDMPushButton_connect")
        self.gridLayout_12.addWidget(self.PyDMPushButton_connect, 1, 0, 1, 1, QtCore.Qt.AlignHCenter)
        self.gridLayout_9.addLayout(self.gridLayout_12, 0, 2, 1, 2)
        self.PyDMDrawingLine_5 = PyDMDrawingLine(self.centralwidget)
        self.PyDMDrawingLine_5.setMinimumSize(QtCore.QSize(0, 15))
        self.PyDMDrawingLine_5.setMaximumSize(QtCore.QSize(16777215, 15))
        self.PyDMDrawingLine_5.setToolTip("")
        brush = QtGui.QBrush(QtGui.QColor(240, 240, 240))
        brush.setStyle(QtCore.Qt.SolidPattern)
        self.PyDMDrawingLine_5.setProperty("brush", brush)
        self.PyDMDrawingLine_5.setObjectName("PyDMDrawingLine_5")
        self.gridLayout_9.addWidget(self.PyDMDrawingLine_5, 6, 0, 1, 4)
        self.gridLayout_4 = QtWidgets.QGridLayout()
        self.gridLayout_4.setObjectName("gridLayout_4")
        self.label = QtWidgets.QLabel(self.centralwidget)
        self.label.setMinimumSize(QtCore.QSize(40, 16))
        self.label.setMaximumSize(QtCore.QSize(40, 16))
        self.label.setStyleSheet("color: rgb(240, 240, 240);")
        self.label.setObjectName("label")
        self.gridLayout_4.addWidget(self.label, 0, 0, 1, 1)
        self.spinBox_filename = QtWidgets.QSpinBox(self.centralwidget)
        self.spinBox_filename.setMinimumSize(QtCore.QSize(70, 0))
        self.spinBox_filename.setMaximumSize(QtCore.QSize(70, 16777215))
        self.spinBox_filename.setStyleSheet("background-color: rgb(255, 255, 255);\n"
"color: rgb(65, 65, 65);")
        self.spinBox_filename.setMaximum(999)
        self.spinBox_filename.setObjectName("spinBox_filename")
        self.gridLayout_4.addWidget(self.spinBox_filename, 0, 3, 1, 1)
        self.sufix = QtWidgets.QLabel(self.centralwidget)
        self.sufix.setMinimumSize(QtCore.QSize(0, 0))
        self.sufix.setMaximumSize(QtCore.QSize(400, 16777215))
        self.sufix.setStyleSheet("color: rgb(240, 240, 240);")
        self.sufix.setObjectName("sufix")
        self.gridLayout_4.addWidget(self.sufix, 0, 1, 1, 2, QtCore.Qt.AlignHCenter)
        self.gridLayout_9.addLayout(self.gridLayout_4, 3, 2, 1, 2)
        self.PyDMDrawingLine = PyDMDrawingLine(self.centralwidget)
        self.PyDMDrawingLine.setMinimumSize(QtCore.QSize(0, 15))
        self.PyDMDrawingLine.setMaximumSize(QtCore.QSize(16777215, 15))
        self.PyDMDrawingLine.setToolTip("")
        brush = QtGui.QBrush(QtGui.QColor(240, 240, 240))
        brush.setStyle(QtCore.Qt.SolidPattern)
        self.PyDMDrawingLine.setProperty("brush", brush)
        self.PyDMDrawingLine.setObjectName("PyDMDrawingLine")
        self.gridLayout_9.addWidget(self.PyDMDrawingLine, 1, 0, 1, 1)
        self.gridLayout_6 = QtWidgets.QGridLayout()
        self.gridLayout_6.setObjectName("gridLayout_6")
        self.PyDMLabel_count = PyDMLabel(self.centralwidget)
        font = QtGui.QFont()
        font.setUnderline(False)
        self.PyDMLabel_count.setFont(font)
        self.PyDMLabel_count.setToolTip("")
        self.PyDMLabel_count.setWhatsThis("")
        self.PyDMLabel_count.setStyleSheet("color: rgb(240, 240, 240);")
        self.PyDMLabel_count.setObjectName("PyDMLabel_count")
        self.gridLayout_6.addWidget(self.PyDMLabel_count, 0, 0, 1, 1, QtCore.Qt.AlignHCenter)
        self.lineEdit_count = QtWidgets.QSpinBox(self.centralwidget)
        self.lineEdit_count.setMinimumSize(QtCore.QSize(70, 0))
        self.lineEdit_count.setMaximumSize(QtCore.QSize(70, 16777215))
        self.lineEdit_count.setStyleSheet("background-color: rgb(255, 255, 255);\n"
"color: rgb(65, 65, 65);")
        self.lineEdit_count.setProperty("value", 2)
        self.lineEdit_count.setObjectName("lineEdit_count")
        self.gridLayout_6.addWidget(self.lineEdit_count, 0, 1, 1, 1, QtCore.Qt.AlignHCenter)
        self.gridLayout_9.addLayout(self.gridLayout_6, 3, 0, 1, 1)
        self.lineEdit_filename = QtWidgets.QLineEdit(self.centralwidget)
        self.lineEdit_filename.setMinimumSize(QtCore.QSize(100, 23))
        self.lineEdit_filename.setMaximumSize(QtCore.QSize(210, 23))
        self.lineEdit_filename.setStyleSheet("background-color: rgb(255, 255, 255);\n"
"color: rgb(65, 65, 65);")
        self.lineEdit_filename.setObjectName("lineEdit_filename")
        self.gridLayout_9.addWidget(self.lineEdit_filename, 2, 2, 1, 2)
        self.gridLayout_2 = QtWidgets.QGridLayout()
        self.gridLayout_2.setObjectName("gridLayout_2")
        self.PyDMLabel_IP = PyDMLabel(self.centralwidget)
        font = QtGui.QFont()
        font.setUnderline(False)
        self.PyDMLabel_IP.setFont(font)
        self.PyDMLabel_IP.setToolTip("")
        self.PyDMLabel_IP.setWhatsThis("")
        self.PyDMLabel_IP.setStyleSheet("color: rgb(240, 240, 240);")
        self.PyDMLabel_IP.setObjectName("PyDMLabel_IP")
        self.gridLayout_2.addWidget(self.PyDMLabel_IP, 1, 0, 1, 1, QtCore.Qt.AlignHCenter|QtCore.Qt.AlignVCenter)
        self.lineEdit_Port = QtWidgets.QLineEdit(self.centralwidget)
        self.lineEdit_Port.setMinimumSize(QtCore.QSize(90, 23))
        self.lineEdit_Port.setMaximumSize(QtCore.QSize(90, 23))
        self.lineEdit_Port.setStyleSheet("background-color: rgb(255, 255, 255);\n"
"color: rgb(65, 65, 65);")
        self.lineEdit_Port.setObjectName("lineEdit_Port")
        self.gridLayout_2.addWidget(self.lineEdit_Port, 1, 1, 1, 1, QtCore.Qt.AlignHCenter|QtCore.Qt.AlignVCenter)
        self.PyDMDrawingLine_4 = PyDMDrawingLine(self.centralwidget)
        self.PyDMDrawingLine_4.setMinimumSize(QtCore.QSize(0, 15))
        self.PyDMDrawingLine_4.setMaximumSize(QtCore.QSize(16777215, 15))
        self.PyDMDrawingLine_4.setToolTip("")
        brush = QtGui.QBrush(QtGui.QColor(240, 240, 240))
        brush.setStyle(QtCore.Qt.SolidPattern)
        self.PyDMDrawingLine_4.setProperty("brush", brush)
        self.PyDMDrawingLine_4.setObjectName("PyDMDrawingLine_4")
        self.gridLayout_2.addWidget(self.PyDMDrawingLine_4, 0, 0, 1, 2)
        self.gridLayout_9.addLayout(self.gridLayout_2, 0, 1, 1, 1)
        self.binning = QtWidgets.QWidget(self.centralwidget)
        self.binning.setMinimumSize(QtCore.QSize(173, 58))
        self.binning.setMaximumSize(QtCore.QSize(1000, 100))
        self.binning.setStyleSheet("border-color: rgb(200, 200, 200);\n"
"border-width : 0.8px;\n"
"border-style:outset;")
        self.binning.setObjectName("binning")
        self.gridLayout_3 = QtWidgets.QGridLayout(self.binning)
        self.gridLayout_3.setContentsMargins(0, 0, 0, 0)
        self.gridLayout_3.setObjectName("gridLayout_3")
        self.gridLayout_8 = QtWidgets.QGridLayout()
        self.gridLayout_8.setObjectName("gridLayout_8")
        self.PyDMCheckbox_512 = PyDMCheckbox(self.binning)
        self.PyDMCheckbox_512.setToolTip("")
        self.PyDMCheckbox_512.setStyleSheet("color: rgb(240, 240, 240);\n"
"border-color: rgb(65, 65, 65);\n"
"border-width : 1.0px;\n"
"border-style:inset;")
        self.PyDMCheckbox_512.setObjectName("PyDMCheckbox_512")
        self.gridLayout_8.addWidget(self.PyDMCheckbox_512, 1, 0, 1, 1, QtCore.Qt.AlignHCenter|QtCore.Qt.AlignTop)
        self.PyDMCheckbox_1024 = PyDMCheckbox(self.binning)
        self.PyDMCheckbox_1024.setToolTip("")
        self.PyDMCheckbox_1024.setStyleSheet("color: rgb(240, 240, 240);\n"
"border-color: rgb(65, 65, 65);\n"
"border-width : 1.0px;\n"
"border-style:inset;")
        self.PyDMCheckbox_1024.setObjectName("PyDMCheckbox_1024")
        self.gridLayout_8.addWidget(self.PyDMCheckbox_1024, 1, 1, 1, 1, QtCore.Qt.AlignHCenter|QtCore.Qt.AlignTop)
        self.PyDMCheckbox_2 = PyDMCheckbox(self.binning)
        self.PyDMCheckbox_2.setToolTip("")
        self.PyDMCheckbox_2.setAutoFillBackground(False)
        self.PyDMCheckbox_2.setStyleSheet("color: rgb(240, 240, 240);\n"
"border-color: rgb(65, 65, 65);\n"
"border-width : 1.0px;\n"
"border-style:inset;\n"
"\n"
"")
        self.PyDMCheckbox_2.setChecked(True)
        self.PyDMCheckbox_2.setObjectName("PyDMCheckbox_2")
        self.gridLayout_8.addWidget(self.PyDMCheckbox_2, 1, 2, 1, 1, QtCore.Qt.AlignHCenter|QtCore.Qt.AlignTop)
        self.PyDMLabel_size = PyDMLabel(self.binning)
        self.PyDMLabel_size.setToolTip("")
        self.PyDMLabel_size.setWhatsThis("")
        self.PyDMLabel_size.setStyleSheet("color: rgb(240, 240, 240);\n"
"border-color: rgb(65, 65, 65);\n"
"border-width : 1.0px;\n"
"border-style:inset;")
        self.PyDMLabel_size.setObjectName("PyDMLabel_size")
        self.gridLayout_8.addWidget(self.PyDMLabel_size, 0, 0, 1, 3, QtCore.Qt.AlignHCenter|QtCore.Qt.AlignBottom)
        self.gridLayout_3.addLayout(self.gridLayout_8, 0, 0, 1, 1)
        self.gridLayout_9.addWidget(self.binning, 2, 1, 2, 1)
        self.PyDMPushButton_imagesequence = PyDMPushButton(self.centralwidget)
        self.PyDMPushButton_imagesequence.setMinimumSize(QtCore.QSize(210, 23))
        self.PyDMPushButton_imagesequence.setMaximumSize(QtCore.QSize(210, 23))
        self.PyDMPushButton_imagesequence.setToolTip("")
        self.PyDMPushButton_imagesequence.setStyleSheet("color: rgb(255, 255, 255);\n"
"background-color: rgb(75, 75, 75);")
        self.PyDMPushButton_imagesequence.setObjectName("PyDMPushButton_imagesequence")
        self.gridLayout_9.addWidget(self.PyDMPushButton_imagesequence, 7, 0, 1, 1)
        self.gridLayout_7 = QtWidgets.QGridLayout()
        self.gridLayout_7.setObjectName("gridLayout_7")
        self.PyDMLabel_path = PyDMLabel(self.centralwidget)
        font = QtGui.QFont()
        font.setUnderline(False)
        self.PyDMLabel_path.setFont(font)
        self.PyDMLabel_path.setToolTip("")
        self.PyDMLabel_path.setWhatsThis("")
        self.PyDMLabel_path.setStyleSheet("color: rgb(240, 240, 240);")
        self.PyDMLabel_path.setObjectName("PyDMLabel_path")
        self.gridLayout_7.addWidget(self.PyDMLabel_path, 0, 0, 1, 1)
        self.lineEdit_path = QtWidgets.QLineEdit(self.centralwidget)
        self.lineEdit_path.setMinimumSize(QtCore.QSize(0, 23))
        self.lineEdit_path.setMaximumSize(QtCore.QSize(16777215, 23))
        self.lineEdit_path.setStyleSheet("background-color: rgb(255, 255, 255);\n"
"color: rgb(65, 65, 65);")
        self.lineEdit_path.setObjectName("lineEdit_path")
        self.gridLayout_7.addWidget(self.lineEdit_path, 1, 0, 1, 1)
        self.PyDMPushButtonSelect = PyDMPushButton(self.centralwidget)
        self.PyDMPushButtonSelect.setToolTip("")
        self.PyDMPushButtonSelect.setStyleSheet("color: rgb(255, 255, 255);\n"
"background-color: rgb(75, 75, 75);")
        self.PyDMPushButtonSelect.setObjectName("PyDMPushButtonSelect")
        self.gridLayout_7.addWidget(self.PyDMPushButtonSelect, 1, 1, 1, 1)
        self.gridLayout_9.addLayout(self.gridLayout_7, 5, 0, 1, 4)
        self.binning.raise_()
        self.PyDMDrawingLine.raise_()
        self.PyDMDrawingLine_5.raise_()
        self.PyDMDrawingLine_6.raise_()
        self.PyDMDrawingLine_8.raise_()
        self.PyDMPushButton_imagesequence.raise_()
        self.PyDMPushButton_abort.raise_()
        self.PyDMLabel_msgerror.raise_()
        self.PyDMLabel_Filename.raise_()
        self.label.raise_()
        self.spinBox_filename.raise_()
        self.lineEdit_filename.raise_()
        Ui_MainWindow_marccd.setCentralWidget(self.centralwidget)
        self.statusbar = QtWidgets.QStatusBar(Ui_MainWindow_marccd)
        self.statusbar.setObjectName("statusbar")
        Ui_MainWindow_marccd.setStatusBar(self.statusbar)
        self.actionOpen = QtWidgets.QAction(Ui_MainWindow_marccd)
        self.actionOpen.setObjectName("actionOpen")

        self.retranslateUi(Ui_MainWindow_marccd)
        QtCore.QMetaObject.connectSlotsByName(Ui_MainWindow_marccd)
Ejemplo n.º 12
0
class Ui_Ui_MainWindow_marccd(object):
    def setupUi(self, Ui_MainWindow_marccd):
        Ui_MainWindow_marccd.setObjectName("Ui_MainWindow_marccd")
        Ui_MainWindow_marccd.resize(672, 294)
        Ui_MainWindow_marccd.setMinimumSize(QtCore.QSize(0, 0))
        Ui_MainWindow_marccd.setMaximumSize(QtCore.QSize(672, 294))
        Ui_MainWindow_marccd.setStyleSheet("background-color: rgb(65, 65, 65);")
        self.centralwidget = QtWidgets.QWidget(Ui_MainWindow_marccd)
        self.centralwidget.setObjectName("centralwidget")
        self.gridLayout_9 = QtWidgets.QGridLayout(self.centralwidget)
        self.gridLayout_9.setObjectName("gridLayout_9")
        self.PyDMPushButton_abort = PyDMPushButton(self.centralwidget)
        self.PyDMPushButton_abort.setMinimumSize(QtCore.QSize(115, 23))
        self.PyDMPushButton_abort.setMaximumSize(QtCore.QSize(115, 23))
        self.PyDMPushButton_abort.setToolTip("")
        self.PyDMPushButton_abort.setStyleSheet("color: rgb(255, 255, 255);\n"
"background-color: rgb(75, 75, 75);")
        self.PyDMPushButton_abort.setObjectName("PyDMPushButton_abort")
        self.gridLayout_9.addWidget(self.PyDMPushButton_abort, 7, 3, 1, 1)
        self.PyDMDrawingLine_8 = PyDMDrawingLine(self.centralwidget)
        self.PyDMDrawingLine_8.setMinimumSize(QtCore.QSize(0, 15))
        self.PyDMDrawingLine_8.setMaximumSize(QtCore.QSize(16777215, 15))
        self.PyDMDrawingLine_8.setToolTip("")
        brush = QtGui.QBrush(QtGui.QColor(240, 240, 240))
        brush.setStyle(QtCore.Qt.SolidPattern)
        self.PyDMDrawingLine_8.setProperty("brush", brush)
        self.PyDMDrawingLine_8.setObjectName("PyDMDrawingLine_8")
        self.gridLayout_9.addWidget(self.PyDMDrawingLine_8, 4, 0, 1, 4)
        self.PyDMLabel_Filename = PyDMLabel(self.centralwidget)
        font = QtGui.QFont()
        font.setUnderline(True)
        self.PyDMLabel_Filename.setFont(font)
        self.PyDMLabel_Filename.setToolTip("")
        self.PyDMLabel_Filename.setWhatsThis("")
        self.PyDMLabel_Filename.setStyleSheet("color: rgb(240, 240, 240);")
        self.PyDMLabel_Filename.setObjectName("PyDMLabel_Filename")
        self.gridLayout_9.addWidget(self.PyDMLabel_Filename, 1, 2, 1, 2, QtCore.Qt.AlignHCenter)
        self.PyDMDrawingLine_6 = PyDMDrawingLine(self.centralwidget)
        self.PyDMDrawingLine_6.setMinimumSize(QtCore.QSize(0, 15))
        self.PyDMDrawingLine_6.setMaximumSize(QtCore.QSize(16777215, 15))
        self.PyDMDrawingLine_6.setToolTip("")
        brush = QtGui.QBrush(QtGui.QColor(240, 240, 240))
        brush.setStyle(QtCore.Qt.SolidPattern)
        self.PyDMDrawingLine_6.setProperty("brush", brush)
        self.PyDMDrawingLine_6.setObjectName("PyDMDrawingLine_6")
        self.gridLayout_9.addWidget(self.PyDMDrawingLine_6, 1, 1, 1, 1)
        self.gridLayout = QtWidgets.QGridLayout()
        self.gridLayout.setObjectName("gridLayout")
        self.PyDMLabel = PyDMLabel(self.centralwidget)
        font = QtGui.QFont()
        font.setUnderline(False)
        self.PyDMLabel.setFont(font)
        self.PyDMLabel.setToolTip("")
        self.PyDMLabel.setWhatsThis("")
        self.PyDMLabel.setStyleSheet("color: rgb(240, 240, 240);")
        self.PyDMLabel.setObjectName("PyDMLabel")
        self.gridLayout.addWidget(self.PyDMLabel, 1, 0, 1, 1, QtCore.Qt.AlignHCenter)
        self.lineEdit_IP = QtWidgets.QLineEdit(self.centralwidget)
        self.lineEdit_IP.setMinimumSize(QtCore.QSize(90, 23))
        self.lineEdit_IP.setMaximumSize(QtCore.QSize(90, 23))
        self.lineEdit_IP.setStyleSheet("background-color: rgb(255, 255, 255);\n"
"color: rgb(65, 65, 65);")
        self.lineEdit_IP.setObjectName("lineEdit_IP")
        self.gridLayout.addWidget(self.lineEdit_IP, 1, 1, 1, 1)
        self.PyDMDrawingLine_3 = PyDMDrawingLine(self.centralwidget)
        self.PyDMDrawingLine_3.setMinimumSize(QtCore.QSize(0, 15))
        self.PyDMDrawingLine_3.setMaximumSize(QtCore.QSize(16777215, 15))
        self.PyDMDrawingLine_3.setToolTip("")
        brush = QtGui.QBrush(QtGui.QColor(240, 240, 240))
        brush.setStyle(QtCore.Qt.SolidPattern)
        self.PyDMDrawingLine_3.setProperty("brush", brush)
        self.PyDMDrawingLine_3.setObjectName("PyDMDrawingLine_3")
        self.gridLayout.addWidget(self.PyDMDrawingLine_3, 0, 0, 1, 2)
        self.gridLayout_9.addLayout(self.gridLayout, 0, 0, 1, 1)
        self.gridLayout_5 = QtWidgets.QGridLayout()
        self.gridLayout_5.setObjectName("gridLayout_5")
        self.PyDMLabel_exposureOne = PyDMLabel(self.centralwidget)
        font = QtGui.QFont()
        font.setUnderline(False)
        self.PyDMLabel_exposureOne.setFont(font)
        self.PyDMLabel_exposureOne.setToolTip("")
        self.PyDMLabel_exposureOne.setWhatsThis("")
        self.PyDMLabel_exposureOne.setStyleSheet("color: rgb(240, 240, 240);")
        self.PyDMLabel_exposureOne.setObjectName("PyDMLabel_exposureOne")
        self.gridLayout_5.addWidget(self.PyDMLabel_exposureOne, 0, 0, 1, 1, QtCore.Qt.AlignHCenter)
        self.lineEdit_Exposureone = QtWidgets.QDoubleSpinBox(self.centralwidget)
        self.lineEdit_Exposureone.setMinimumSize(QtCore.QSize(70, 0))
        self.lineEdit_Exposureone.setMaximumSize(QtCore.QSize(70, 16777215))
        self.lineEdit_Exposureone.setStyleSheet("background-color: rgb(255, 255, 255);\n"
"color: rgb(65, 65, 65);")
        self.lineEdit_Exposureone.setDecimals(0)
        self.lineEdit_Exposureone.setMaximum(10000.0)
        self.lineEdit_Exposureone.setProperty("value", 10.0)
        self.lineEdit_Exposureone.setObjectName("lineEdit_Exposureone")
        self.gridLayout_5.addWidget(self.lineEdit_Exposureone, 0, 1, 1, 1, QtCore.Qt.AlignHCenter)
        self.gridLayout_9.addLayout(self.gridLayout_5, 2, 0, 1, 1)
        self.PyDMLabel_msgerror = PyDMLabel(self.centralwidget)
        self.PyDMLabel_msgerror.setMinimumSize(QtCore.QSize(299, 0))
        self.PyDMLabel_msgerror.setMaximumSize(QtCore.QSize(299, 16777215))
        self.PyDMLabel_msgerror.setToolTip("")
        self.PyDMLabel_msgerror.setWhatsThis("")
        self.PyDMLabel_msgerror.setStyleSheet("color: rgb(240, 240, 240);")
        self.PyDMLabel_msgerror.setObjectName("PyDMLabel_msgerror")
        self.gridLayout_9.addWidget(self.PyDMLabel_msgerror, 7, 1, 1, 2)
        self.gridLayout_12 = QtWidgets.QGridLayout()
        self.gridLayout_12.setObjectName("gridLayout_12")
        self.PyDMLabel_connectstatus = PyDMLabel(self.centralwidget)
        font = QtGui.QFont()
        font.setUnderline(True)
        self.PyDMLabel_connectstatus.setFont(font)
        self.PyDMLabel_connectstatus.setToolTip("")
        self.PyDMLabel_connectstatus.setWhatsThis("")
        self.PyDMLabel_connectstatus.setStyleSheet("color: rgb(240, 240, 240);")
        self.PyDMLabel_connectstatus.setObjectName("PyDMLabel_connectstatus")
        self.gridLayout_12.addWidget(self.PyDMLabel_connectstatus, 0, 0, 1, 1, QtCore.Qt.AlignHCenter)
        self.PyDMPushButton_connect = PyDMPushButton(self.centralwidget)
        self.PyDMPushButton_connect.setMinimumSize(QtCore.QSize(150, 0))
        self.PyDMPushButton_connect.setMaximumSize(QtCore.QSize(150, 16777215))
        self.PyDMPushButton_connect.setToolTip("")
        self.PyDMPushButton_connect.setStyleSheet("\n"
"background-color: rgb(75, 75, 75);\n"
"color: rgb(255, 255, 255);")
        self.PyDMPushButton_connect.setObjectName("PyDMPushButton_connect")
        self.gridLayout_12.addWidget(self.PyDMPushButton_connect, 1, 0, 1, 1, QtCore.Qt.AlignHCenter)
        self.gridLayout_9.addLayout(self.gridLayout_12, 0, 2, 1, 2)
        self.PyDMDrawingLine_5 = PyDMDrawingLine(self.centralwidget)
        self.PyDMDrawingLine_5.setMinimumSize(QtCore.QSize(0, 15))
        self.PyDMDrawingLine_5.setMaximumSize(QtCore.QSize(16777215, 15))
        self.PyDMDrawingLine_5.setToolTip("")
        brush = QtGui.QBrush(QtGui.QColor(240, 240, 240))
        brush.setStyle(QtCore.Qt.SolidPattern)
        self.PyDMDrawingLine_5.setProperty("brush", brush)
        self.PyDMDrawingLine_5.setObjectName("PyDMDrawingLine_5")
        self.gridLayout_9.addWidget(self.PyDMDrawingLine_5, 6, 0, 1, 4)
        self.gridLayout_4 = QtWidgets.QGridLayout()
        self.gridLayout_4.setObjectName("gridLayout_4")
        self.label = QtWidgets.QLabel(self.centralwidget)
        self.label.setMinimumSize(QtCore.QSize(40, 16))
        self.label.setMaximumSize(QtCore.QSize(40, 16))
        self.label.setStyleSheet("color: rgb(240, 240, 240);")
        self.label.setObjectName("label")
        self.gridLayout_4.addWidget(self.label, 0, 0, 1, 1)
        self.spinBox_filename = QtWidgets.QSpinBox(self.centralwidget)
        self.spinBox_filename.setMinimumSize(QtCore.QSize(70, 0))
        self.spinBox_filename.setMaximumSize(QtCore.QSize(70, 16777215))
        self.spinBox_filename.setStyleSheet("background-color: rgb(255, 255, 255);\n"
"color: rgb(65, 65, 65);")
        self.spinBox_filename.setMaximum(999)
        self.spinBox_filename.setObjectName("spinBox_filename")
        self.gridLayout_4.addWidget(self.spinBox_filename, 0, 3, 1, 1)
        self.sufix = QtWidgets.QLabel(self.centralwidget)
        self.sufix.setMinimumSize(QtCore.QSize(0, 0))
        self.sufix.setMaximumSize(QtCore.QSize(400, 16777215))
        self.sufix.setStyleSheet("color: rgb(240, 240, 240);")
        self.sufix.setObjectName("sufix")
        self.gridLayout_4.addWidget(self.sufix, 0, 1, 1, 2, QtCore.Qt.AlignHCenter)
        self.gridLayout_9.addLayout(self.gridLayout_4, 3, 2, 1, 2)
        self.PyDMDrawingLine = PyDMDrawingLine(self.centralwidget)
        self.PyDMDrawingLine.setMinimumSize(QtCore.QSize(0, 15))
        self.PyDMDrawingLine.setMaximumSize(QtCore.QSize(16777215, 15))
        self.PyDMDrawingLine.setToolTip("")
        brush = QtGui.QBrush(QtGui.QColor(240, 240, 240))
        brush.setStyle(QtCore.Qt.SolidPattern)
        self.PyDMDrawingLine.setProperty("brush", brush)
        self.PyDMDrawingLine.setObjectName("PyDMDrawingLine")
        self.gridLayout_9.addWidget(self.PyDMDrawingLine, 1, 0, 1, 1)
        self.gridLayout_6 = QtWidgets.QGridLayout()
        self.gridLayout_6.setObjectName("gridLayout_6")
        self.PyDMLabel_count = PyDMLabel(self.centralwidget)
        font = QtGui.QFont()
        font.setUnderline(False)
        self.PyDMLabel_count.setFont(font)
        self.PyDMLabel_count.setToolTip("")
        self.PyDMLabel_count.setWhatsThis("")
        self.PyDMLabel_count.setStyleSheet("color: rgb(240, 240, 240);")
        self.PyDMLabel_count.setObjectName("PyDMLabel_count")
        self.gridLayout_6.addWidget(self.PyDMLabel_count, 0, 0, 1, 1, QtCore.Qt.AlignHCenter)
        self.lineEdit_count = QtWidgets.QSpinBox(self.centralwidget)
        self.lineEdit_count.setMinimumSize(QtCore.QSize(70, 0))
        self.lineEdit_count.setMaximumSize(QtCore.QSize(70, 16777215))
        self.lineEdit_count.setStyleSheet("background-color: rgb(255, 255, 255);\n"
"color: rgb(65, 65, 65);")
        self.lineEdit_count.setProperty("value", 2)
        self.lineEdit_count.setObjectName("lineEdit_count")
        self.gridLayout_6.addWidget(self.lineEdit_count, 0, 1, 1, 1, QtCore.Qt.AlignHCenter)
        self.gridLayout_9.addLayout(self.gridLayout_6, 3, 0, 1, 1)
        self.lineEdit_filename = QtWidgets.QLineEdit(self.centralwidget)
        self.lineEdit_filename.setMinimumSize(QtCore.QSize(100, 23))
        self.lineEdit_filename.setMaximumSize(QtCore.QSize(210, 23))
        self.lineEdit_filename.setStyleSheet("background-color: rgb(255, 255, 255);\n"
"color: rgb(65, 65, 65);")
        self.lineEdit_filename.setObjectName("lineEdit_filename")
        self.gridLayout_9.addWidget(self.lineEdit_filename, 2, 2, 1, 2)
        self.gridLayout_2 = QtWidgets.QGridLayout()
        self.gridLayout_2.setObjectName("gridLayout_2")
        self.PyDMLabel_IP = PyDMLabel(self.centralwidget)
        font = QtGui.QFont()
        font.setUnderline(False)
        self.PyDMLabel_IP.setFont(font)
        self.PyDMLabel_IP.setToolTip("")
        self.PyDMLabel_IP.setWhatsThis("")
        self.PyDMLabel_IP.setStyleSheet("color: rgb(240, 240, 240);")
        self.PyDMLabel_IP.setObjectName("PyDMLabel_IP")
        self.gridLayout_2.addWidget(self.PyDMLabel_IP, 1, 0, 1, 1, QtCore.Qt.AlignHCenter|QtCore.Qt.AlignVCenter)
        self.lineEdit_Port = QtWidgets.QLineEdit(self.centralwidget)
        self.lineEdit_Port.setMinimumSize(QtCore.QSize(90, 23))
        self.lineEdit_Port.setMaximumSize(QtCore.QSize(90, 23))
        self.lineEdit_Port.setStyleSheet("background-color: rgb(255, 255, 255);\n"
"color: rgb(65, 65, 65);")
        self.lineEdit_Port.setObjectName("lineEdit_Port")
        self.gridLayout_2.addWidget(self.lineEdit_Port, 1, 1, 1, 1, QtCore.Qt.AlignHCenter|QtCore.Qt.AlignVCenter)
        self.PyDMDrawingLine_4 = PyDMDrawingLine(self.centralwidget)
        self.PyDMDrawingLine_4.setMinimumSize(QtCore.QSize(0, 15))
        self.PyDMDrawingLine_4.setMaximumSize(QtCore.QSize(16777215, 15))
        self.PyDMDrawingLine_4.setToolTip("")
        brush = QtGui.QBrush(QtGui.QColor(240, 240, 240))
        brush.setStyle(QtCore.Qt.SolidPattern)
        self.PyDMDrawingLine_4.setProperty("brush", brush)
        self.PyDMDrawingLine_4.setObjectName("PyDMDrawingLine_4")
        self.gridLayout_2.addWidget(self.PyDMDrawingLine_4, 0, 0, 1, 2)
        self.gridLayout_9.addLayout(self.gridLayout_2, 0, 1, 1, 1)
        self.binning = QtWidgets.QWidget(self.centralwidget)
        self.binning.setMinimumSize(QtCore.QSize(173, 58))
        self.binning.setMaximumSize(QtCore.QSize(1000, 100))
        self.binning.setStyleSheet("border-color: rgb(200, 200, 200);\n"
"border-width : 0.8px;\n"
"border-style:outset;")
        self.binning.setObjectName("binning")
        self.gridLayout_3 = QtWidgets.QGridLayout(self.binning)
        self.gridLayout_3.setContentsMargins(0, 0, 0, 0)
        self.gridLayout_3.setObjectName("gridLayout_3")
        self.gridLayout_8 = QtWidgets.QGridLayout()
        self.gridLayout_8.setObjectName("gridLayout_8")
        self.PyDMCheckbox_512 = PyDMCheckbox(self.binning)
        self.PyDMCheckbox_512.setToolTip("")
        self.PyDMCheckbox_512.setStyleSheet("color: rgb(240, 240, 240);\n"
"border-color: rgb(65, 65, 65);\n"
"border-width : 1.0px;\n"
"border-style:inset;")
        self.PyDMCheckbox_512.setObjectName("PyDMCheckbox_512")
        self.gridLayout_8.addWidget(self.PyDMCheckbox_512, 1, 0, 1, 1, QtCore.Qt.AlignHCenter|QtCore.Qt.AlignTop)
        self.PyDMCheckbox_1024 = PyDMCheckbox(self.binning)
        self.PyDMCheckbox_1024.setToolTip("")
        self.PyDMCheckbox_1024.setStyleSheet("color: rgb(240, 240, 240);\n"
"border-color: rgb(65, 65, 65);\n"
"border-width : 1.0px;\n"
"border-style:inset;")
        self.PyDMCheckbox_1024.setObjectName("PyDMCheckbox_1024")
        self.gridLayout_8.addWidget(self.PyDMCheckbox_1024, 1, 1, 1, 1, QtCore.Qt.AlignHCenter|QtCore.Qt.AlignTop)
        self.PyDMCheckbox_2 = PyDMCheckbox(self.binning)
        self.PyDMCheckbox_2.setToolTip("")
        self.PyDMCheckbox_2.setAutoFillBackground(False)
        self.PyDMCheckbox_2.setStyleSheet("color: rgb(240, 240, 240);\n"
"border-color: rgb(65, 65, 65);\n"
"border-width : 1.0px;\n"
"border-style:inset;\n"
"\n"
"")
        self.PyDMCheckbox_2.setChecked(True)
        self.PyDMCheckbox_2.setObjectName("PyDMCheckbox_2")
        self.gridLayout_8.addWidget(self.PyDMCheckbox_2, 1, 2, 1, 1, QtCore.Qt.AlignHCenter|QtCore.Qt.AlignTop)
        self.PyDMLabel_size = PyDMLabel(self.binning)
        self.PyDMLabel_size.setToolTip("")
        self.PyDMLabel_size.setWhatsThis("")
        self.PyDMLabel_size.setStyleSheet("color: rgb(240, 240, 240);\n"
"border-color: rgb(65, 65, 65);\n"
"border-width : 1.0px;\n"
"border-style:inset;")
        self.PyDMLabel_size.setObjectName("PyDMLabel_size")
        self.gridLayout_8.addWidget(self.PyDMLabel_size, 0, 0, 1, 3, QtCore.Qt.AlignHCenter|QtCore.Qt.AlignBottom)
        self.gridLayout_3.addLayout(self.gridLayout_8, 0, 0, 1, 1)
        self.gridLayout_9.addWidget(self.binning, 2, 1, 2, 1)
        self.PyDMPushButton_imagesequence = PyDMPushButton(self.centralwidget)
        self.PyDMPushButton_imagesequence.setMinimumSize(QtCore.QSize(210, 23))
        self.PyDMPushButton_imagesequence.setMaximumSize(QtCore.QSize(210, 23))
        self.PyDMPushButton_imagesequence.setToolTip("")
        self.PyDMPushButton_imagesequence.setStyleSheet("color: rgb(255, 255, 255);\n"
"background-color: rgb(75, 75, 75);")
        self.PyDMPushButton_imagesequence.setObjectName("PyDMPushButton_imagesequence")
        self.gridLayout_9.addWidget(self.PyDMPushButton_imagesequence, 7, 0, 1, 1)
        self.gridLayout_7 = QtWidgets.QGridLayout()
        self.gridLayout_7.setObjectName("gridLayout_7")
        self.PyDMLabel_path = PyDMLabel(self.centralwidget)
        font = QtGui.QFont()
        font.setUnderline(False)
        self.PyDMLabel_path.setFont(font)
        self.PyDMLabel_path.setToolTip("")
        self.PyDMLabel_path.setWhatsThis("")
        self.PyDMLabel_path.setStyleSheet("color: rgb(240, 240, 240);")
        self.PyDMLabel_path.setObjectName("PyDMLabel_path")
        self.gridLayout_7.addWidget(self.PyDMLabel_path, 0, 0, 1, 1)
        self.lineEdit_path = QtWidgets.QLineEdit(self.centralwidget)
        self.lineEdit_path.setMinimumSize(QtCore.QSize(0, 23))
        self.lineEdit_path.setMaximumSize(QtCore.QSize(16777215, 23))
        self.lineEdit_path.setStyleSheet("background-color: rgb(255, 255, 255);\n"
"color: rgb(65, 65, 65);")
        self.lineEdit_path.setObjectName("lineEdit_path")
        self.gridLayout_7.addWidget(self.lineEdit_path, 1, 0, 1, 1)
        self.PyDMPushButtonSelect = PyDMPushButton(self.centralwidget)
        self.PyDMPushButtonSelect.setToolTip("")
        self.PyDMPushButtonSelect.setStyleSheet("color: rgb(255, 255, 255);\n"
"background-color: rgb(75, 75, 75);")
        self.PyDMPushButtonSelect.setObjectName("PyDMPushButtonSelect")
        self.gridLayout_7.addWidget(self.PyDMPushButtonSelect, 1, 1, 1, 1)
        self.gridLayout_9.addLayout(self.gridLayout_7, 5, 0, 1, 4)
        self.binning.raise_()
        self.PyDMDrawingLine.raise_()
        self.PyDMDrawingLine_5.raise_()
        self.PyDMDrawingLine_6.raise_()
        self.PyDMDrawingLine_8.raise_()
        self.PyDMPushButton_imagesequence.raise_()
        self.PyDMPushButton_abort.raise_()
        self.PyDMLabel_msgerror.raise_()
        self.PyDMLabel_Filename.raise_()
        self.label.raise_()
        self.spinBox_filename.raise_()
        self.lineEdit_filename.raise_()
        Ui_MainWindow_marccd.setCentralWidget(self.centralwidget)
        self.statusbar = QtWidgets.QStatusBar(Ui_MainWindow_marccd)
        self.statusbar.setObjectName("statusbar")
        Ui_MainWindow_marccd.setStatusBar(self.statusbar)
        self.actionOpen = QtWidgets.QAction(Ui_MainWindow_marccd)
        self.actionOpen.setObjectName("actionOpen")

        self.retranslateUi(Ui_MainWindow_marccd)
        QtCore.QMetaObject.connectSlotsByName(Ui_MainWindow_marccd)

    def retranslateUi(self, Ui_MainWindow_marccd):
        _translate = QtCore.QCoreApplication.translate
        Ui_MainWindow_marccd.setWindowTitle(_translate("Ui_MainWindow_marccd", "Marccd: Image Capture"))
        self.PyDMPushButton_abort.setWhatsThis(_translate("Ui_MainWindow_marccd", "\n"
"    Basic PushButton to send a fixed value.\n"
"\n"
"    The PyDMPushButton is meant to hold a specific value, and send that value\n"
"    to a channel when it is clicked, much like the MessageButton does in EDM.\n"
"    The PyDMPushButton works in two different modes of operation, first, a\n"
"    fixed value can be given to the :attr:`.pressValue` attribute, whenever the\n"
"    button is clicked a signal containing this value will be sent to the\n"
"    connected channel. This is the default behavior of the button. However, if\n"
"    the :attr:`.relativeChange` is set to True, the fixed value will be added\n"
"    to the current value of the channel. This means that the button will\n"
"    increment a channel by a fixed amount with every click, a consistent\n"
"    relative move\n"
"\n"
"    Parameters\n"
"    ----------\n"
"    parent : QObject, optional\n"
"        Parent of PyDMPushButton\n"
"\n"
"    label : str, optional\n"
"        String to place on button\n"
"\n"
"    icon : QIcon, optional\n"
"        An Icon to display on the PyDMPushButton\n"
"\n"
"    pressValue : int, float, str\n"
"        Value to be sent when the button is clicked\n"
"\n"
"    relative : bool, optional\n"
"        Choice to have the button perform a relative put, instead of always\n"
"        setting to an absolute value\n"
"\n"
"    init_channel : str, optional\n"
"        ID of channel to manipulate\n"
"\n"
"    "))
        self.PyDMPushButton_abort.setText(_translate("Ui_MainWindow_marccd", "Abort acquisition"))
        self.PyDMDrawingLine_8.setWhatsThis(_translate("Ui_MainWindow_marccd", "\n"
"    A widget with a line drawn in it.\n"
"    This class inherits from PyDMDrawing.\n"
"\n"
"    Parameters\n"
"    ----------\n"
"    parent : QWidget\n"
"        The parent widget for the Label\n"
"    init_channel : str, optional\n"
"        The channel to be used by the widget.\n"
"    "))
        self.PyDMLabel_Filename.setText(_translate("Ui_MainWindow_marccd", "Image filename"))
        self.PyDMDrawingLine_6.setWhatsThis(_translate("Ui_MainWindow_marccd", "\n"
"    A widget with a line drawn in it.\n"
"    This class inherits from PyDMDrawing.\n"
"\n"
"    Parameters\n"
"    ----------\n"
"    parent : QWidget\n"
"        The parent widget for the Label\n"
"    init_channel : str, optional\n"
"        The channel to be used by the widget.\n"
"    "))
        self.PyDMLabel.setText(_translate("Ui_MainWindow_marccd", "CCD server IP: "))
        self.lineEdit_IP.setText(_translate("Ui_MainWindow_marccd", "10.2.18.32"))
        self.PyDMDrawingLine_3.setWhatsThis(_translate("Ui_MainWindow_marccd", "\n"
"    A widget with a line drawn in it.\n"
"    This class inherits from PyDMDrawing.\n"
"\n"
"    Parameters\n"
"    ----------\n"
"    parent : QWidget\n"
"        The parent widget for the Label\n"
"    init_channel : str, optional\n"
"        The channel to be used by the widget.\n"
"    "))
        self.PyDMLabel_exposureOne.setText(_translate("Ui_MainWindow_marccd", "Exposure (s):"))
        self.PyDMLabel_msgerror.setText(_translate("Ui_MainWindow_marccd", "Mensagem error"))
        self.PyDMLabel_connectstatus.setText(_translate("Ui_MainWindow_marccd", "Connection status: OFF"))
        self.PyDMPushButton_connect.setWhatsThis(_translate("Ui_MainWindow_marccd", "\n"
"    Basic PushButton to send a fixed value.\n"
"\n"
"    The PyDMPushButton is meant to hold a specific value, and send that value\n"
"    to a channel when it is clicked, much like the MessageButton does in EDM.\n"
"    The PyDMPushButton works in two different modes of operation, first, a\n"
"    fixed value can be given to the :attr:`.pressValue` attribute, whenever the\n"
"    button is clicked a signal containing this value will be sent to the\n"
"    connected channel. This is the default behavior of the button. However, if\n"
"    the :attr:`.relativeChange` is set to True, the fixed value will be added\n"
"    to the current value of the channel. This means that the button will\n"
"    increment a channel by a fixed amount with every click, a consistent\n"
"    relative move\n"
"\n"
"    Parameters\n"
"    ----------\n"
"    parent : QObject, optional\n"
"        Parent of PyDMPushButton\n"
"\n"
"    label : str, optional\n"
"        String to place on button\n"
"\n"
"    icon : QIcon, optional\n"
"        An Icon to display on the PyDMPushButton\n"
"\n"
"    pressValue : int, float, str\n"
"        Value to be sent when the button is clicked\n"
"\n"
"    relative : bool, optional\n"
"        Choice to have the button perform a relative put, instead of always\n"
"        setting to an absolute value\n"
"\n"
"    init_channel : str, optional\n"
"        ID of channel to manipulate\n"
"\n"
"    "))
        self.PyDMPushButton_connect.setText(_translate("Ui_MainWindow_marccd", "Connect to Marccd"))
        self.PyDMDrawingLine_5.setWhatsThis(_translate("Ui_MainWindow_marccd", "\n"
"    A widget with a line drawn in it.\n"
"    This class inherits from PyDMDrawing.\n"
"\n"
"    Parameters\n"
"    ----------\n"
"    parent : QWidget\n"
"        The parent widget for the Label\n"
"    init_channel : str, optional\n"
"        The channel to be used by the widget.\n"
"    "))
        self.label.setText(_translate("Ui_MainWindow_marccd", "Suffix:"))
        self.sufix.setText(_translate("Ui_MainWindow_marccd", "_n000.tiff"))
        self.PyDMDrawingLine.setWhatsThis(_translate("Ui_MainWindow_marccd", "\n"
"    A widget with a line drawn in it.\n"
"    This class inherits from PyDMDrawing.\n"
"\n"
"    Parameters\n"
"    ----------\n"
"    parent : QWidget\n"
"        The parent widget for the Label\n"
"    init_channel : str, optional\n"
"        The channel to be used by the widget.\n"
"    "))
        self.PyDMLabel_count.setText(_translate("Ui_MainWindow_marccd", "Multread image:"))
        self.lineEdit_filename.setText(_translate("Ui_MainWindow_marccd", "lab6_3p20GPa_300K_300s"))
        self.PyDMLabel_IP.setText(_translate("Ui_MainWindow_marccd", "CCD server Port:"))
        self.lineEdit_Port.setText(_translate("Ui_MainWindow_marccd", "2222"))
        self.PyDMDrawingLine_4.setWhatsThis(_translate("Ui_MainWindow_marccd", "\n"
"    A widget with a line drawn in it.\n"
"    This class inherits from PyDMDrawing.\n"
"\n"
"    Parameters\n"
"    ----------\n"
"    parent : QWidget\n"
"        The parent widget for the Label\n"
"    init_channel : str, optional\n"
"        The channel to be used by the widget.\n"
"    "))
        self.PyDMCheckbox_512.setWhatsThis(_translate("Ui_MainWindow_marccd", "\n"
"    A QCheckbox with support for Channels and more from PyDM\n"
"\n"
"    Parameters\n"
"    ----------\n"
"    parent : QWidget\n"
"        The parent widget for the Label\n"
"    init_channel : str, optional\n"
"        The channel to be used by the widget.\n"
"\n"
"    "))
        self.PyDMCheckbox_512.setText(_translate("Ui_MainWindow_marccd", "8x8"))
        self.PyDMCheckbox_1024.setWhatsThis(_translate("Ui_MainWindow_marccd", "\n"
"    A QCheckbox with support for Channels and more from PyDM\n"
"\n"
"    Parameters\n"
"    ----------\n"
"    parent : QWidget\n"
"        The parent widget for the Label\n"
"    init_channel : str, optional\n"
"        The channel to be used by the widget.\n"
"\n"
"    "))
        self.PyDMCheckbox_1024.setText(_translate("Ui_MainWindow_marccd", "4x4"))
        self.PyDMCheckbox_2.setWhatsThis(_translate("Ui_MainWindow_marccd", "\n"
"    A QCheckbox with support for Channels and more from PyDM\n"
"\n"
"    Parameters\n"
"    ----------\n"
"    parent : QWidget\n"
"        The parent widget for the Label\n"
"    init_channel : str, optional\n"
"        The channel to be used by the widget.\n"
"\n"
"    "))
        self.PyDMCheckbox_2.setText(_translate("Ui_MainWindow_marccd", "2x2"))
        self.PyDMLabel_size.setText(_translate("Ui_MainWindow_marccd", "Pixel Binning"))
        self.PyDMPushButton_imagesequence.setWhatsThis(_translate("Ui_MainWindow_marccd", "\n"
"    Basic PushButton to send a fixed value.\n"
"\n"
"    The PyDMPushButton is meant to hold a specific value, and send that value\n"
"    to a channel when it is clicked, much like the MessageButton does in EDM.\n"
"    The PyDMPushButton works in two different modes of operation, first, a\n"
"    fixed value can be given to the :attr:`.pressValue` attribute, whenever the\n"
"    button is clicked a signal containing this value will be sent to the\n"
"    connected channel. This is the default behavior of the button. However, if\n"
"    the :attr:`.relativeChange` is set to True, the fixed value will be added\n"
"    to the current value of the channel. This means that the button will\n"
"    increment a channel by a fixed amount with every click, a consistent\n"
"    relative move\n"
"\n"
"    Parameters\n"
"    ----------\n"
"    parent : QObject, optional\n"
"        Parent of PyDMPushButton\n"
"\n"
"    label : str, optional\n"
"        String to place on button\n"
"\n"
"    icon : QIcon, optional\n"
"        An Icon to display on the PyDMPushButton\n"
"\n"
"    pressValue : int, float, str\n"
"        Value to be sent when the button is clicked\n"
"\n"
"    relative : bool, optional\n"
"        Choice to have the button perform a relative put, instead of always\n"
"        setting to an absolute value\n"
"\n"
"    init_channel : str, optional\n"
"        ID of channel to manipulate\n"
"\n"
"    "))
        self.PyDMPushButton_imagesequence.setText(_translate("Ui_MainWindow_marccd", "Capture calibration image"))
        self.PyDMLabel_path.setText(_translate("Ui_MainWindow_marccd", "Write directory path where files wiil be saved: "))
        self.lineEdit_path.setText(_translate("Ui_MainWindow_marccd", "/home/ABTLUS/rodrigo.guercio/workspace/ema/ema/ema_software/"))
        self.PyDMPushButtonSelect.setWhatsThis(_translate("Ui_MainWindow_marccd", "\n"
"    Basic PushButton to send a fixed value.\n"
"\n"
"    The PyDMPushButton is meant to hold a specific value, and send that value\n"
"    to a channel when it is clicked, much like the MessageButton does in EDM.\n"
"    The PyDMPushButton works in two different modes of operation, first, a\n"
"    fixed value can be given to the :attr:`.pressValue` attribute, whenever the\n"
"    button is clicked a signal containing this value will be sent to the\n"
"    connected channel. This is the default behavior of the button. However, if\n"
"    the :attr:`.relativeChange` is set to True, the fixed value will be added\n"
"    to the current value of the channel. This means that the button will\n"
"    increment a channel by a fixed amount with every click, a consistent\n"
"    relative move\n"
"\n"
"    Parameters\n"
"    ----------\n"
"    parent : QObject, optional\n"
"        Parent of PyDMPushButton\n"
"\n"
"    label : str, optional\n"
"        String to place on button\n"
"\n"
"    icon : QIcon, optional\n"
"        An Icon to display on the PyDMPushButton\n"
"\n"
"    pressValue : int, float, str\n"
"        Value to be sent when the button is clicked\n"
"\n"
"    relative : bool, optional\n"
"        Choice to have the button perform a relative put, instead of always\n"
"        setting to an absolute value\n"
"\n"
"    init_channel : str, optional\n"
"        ID of channel to manipulate\n"
"\n"
"    "))
        self.PyDMPushButtonSelect.setText(_translate("Ui_MainWindow_marccd", "Select"))
        self.actionOpen.setText(_translate("Ui_MainWindow_marccd", "Open"))
Ejemplo n.º 13
0
    def setupUi(self, Ui_MainWindow_marccd):
        Ui_MainWindow_marccd.setObjectName("Ui_MainWindow_marccd")
        Ui_MainWindow_marccd.resize(575, 500)
        Ui_MainWindow_marccd.setMinimumSize(QtCore.QSize(575, 500))
        Ui_MainWindow_marccd.setMaximumSize(QtCore.QSize(575, 500))
        Ui_MainWindow_marccd.setStyleSheet(
            "background-color: rgb(65, 65, 65);")
        self.centralwidget = QtWidgets.QWidget(Ui_MainWindow_marccd)
        self.centralwidget.setObjectName("centralwidget")
        self.gridLayout = QtWidgets.QGridLayout(self.centralwidget)
        self.gridLayout.setObjectName("gridLayout")
        self.PyDMDrawingLine_9 = PyDMDrawingLine(self.centralwidget)
        self.PyDMDrawingLine_9.setMinimumSize(QtCore.QSize(0, 15))
        self.PyDMDrawingLine_9.setMaximumSize(QtCore.QSize(16777215, 15))
        self.PyDMDrawingLine_9.setToolTip("")
        brush = QtGui.QBrush(QtGui.QColor(0, 240, 240))
        brush.setStyle(QtCore.Qt.SolidPattern)
        self.PyDMDrawingLine_9.setProperty("brush", brush)
        self.PyDMDrawingLine_9.setObjectName("PyDMDrawingLine_9")
        self.gridLayout.addWidget(self.PyDMDrawingLine_9, 0, 0, 1, 3)
        self.verticalLayout_2 = QtWidgets.QVBoxLayout()
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        self.PyDMLabel = PyDMLabel(self.centralwidget)
        font = QtGui.QFont()
        font.setUnderline(True)
        self.PyDMLabel.setFont(font)
        self.PyDMLabel.setToolTip("")
        self.PyDMLabel.setWhatsThis("")
        self.PyDMLabel.setStyleSheet("color: rgb(240, 240, 240);")
        self.PyDMLabel.setObjectName("PyDMLabel")
        self.verticalLayout_2.addWidget(self.PyDMLabel, 0,
                                        QtCore.Qt.AlignHCenter)
        self.PyDMLabel_IP = QtWidgets.QLabel(self.centralwidget)
        font = QtGui.QFont()
        font.setUnderline(True)
        self.PyDMLabel_IP.setFont(font)
        self.PyDMLabel_IP.setStyleSheet("color: rgb(240, 240, 240);")
        self.PyDMLabel_IP.setObjectName("PyDMLabel_IP")
        self.verticalLayout_2.addWidget(self.PyDMLabel_IP, 0,
                                        QtCore.Qt.AlignHCenter)
        self.PyDMDrawingLine_11 = PyDMDrawingLine(self.centralwidget)
        self.PyDMDrawingLine_11.setMinimumSize(QtCore.QSize(15, 15))
        self.PyDMDrawingLine_11.setMaximumSize(QtCore.QSize(15, 15))
        self.PyDMDrawingLine_11.setToolTip("")
        brush = QtGui.QBrush(QtGui.QColor(0, 240, 240))
        brush.setStyle(QtCore.Qt.SolidPattern)
        self.PyDMDrawingLine_11.setProperty("brush", brush)
        self.PyDMDrawingLine_11.setObjectName("PyDMDrawingLine_11")
        self.verticalLayout_2.addWidget(self.PyDMDrawingLine_11, 0,
                                        QtCore.Qt.AlignHCenter)
        self.PyDMLabel_exposureOne = PyDMLabel(self.centralwidget)
        font = QtGui.QFont()
        font.setUnderline(True)
        self.PyDMLabel_exposureOne.setFont(font)
        self.PyDMLabel_exposureOne.setToolTip("")
        self.PyDMLabel_exposureOne.setWhatsThis("")
        self.PyDMLabel_exposureOne.setStyleSheet("color: rgb(240, 240, 240);")
        self.PyDMLabel_exposureOne.setObjectName("PyDMLabel_exposureOne")
        self.verticalLayout_2.addWidget(self.PyDMLabel_exposureOne, 0,
                                        QtCore.Qt.AlignHCenter)
        self.PyDMLabel_count = PyDMLabel(self.centralwidget)
        font = QtGui.QFont()
        font.setUnderline(True)
        self.PyDMLabel_count.setFont(font)
        self.PyDMLabel_count.setToolTip("")
        self.PyDMLabel_count.setWhatsThis("")
        self.PyDMLabel_count.setStyleSheet("color: rgb(240, 240, 240);")
        self.PyDMLabel_count.setObjectName("PyDMLabel_count")
        self.verticalLayout_2.addWidget(self.PyDMLabel_count, 0,
                                        QtCore.Qt.AlignHCenter)
        self.label_cumulative = QtWidgets.QLabel(self.centralwidget)
        font = QtGui.QFont()
        font.setBold(False)
        font.setUnderline(True)
        font.setWeight(50)
        self.label_cumulative.setFont(font)
        self.label_cumulative.setStyleSheet("color: rgb(240, 240, 240);")
        self.label_cumulative.setObjectName("label_cumulative")
        self.verticalLayout_2.addWidget(self.label_cumulative, 0,
                                        QtCore.Qt.AlignHCenter)
        self.gridLayout.addLayout(self.verticalLayout_2, 1, 0, 2, 1)
        self.verticalLayout = QtWidgets.QVBoxLayout()
        self.verticalLayout.setObjectName("verticalLayout")
        self.lineEdit_IP = QtWidgets.QLineEdit(self.centralwidget)
        self.lineEdit_IP.setMinimumSize(QtCore.QSize(90, 23))
        self.lineEdit_IP.setMaximumSize(QtCore.QSize(90, 23))
        self.lineEdit_IP.setStyleSheet(
            "background-color: rgb(255, 255, 255);\n"
            "color: rgb(65, 65, 65);")
        self.lineEdit_IP.setObjectName("lineEdit_IP")
        self.verticalLayout.addWidget(self.lineEdit_IP, 0,
                                      QtCore.Qt.AlignHCenter)
        self.lineEdit_Port = QtWidgets.QLineEdit(self.centralwidget)
        self.lineEdit_Port.setMinimumSize(QtCore.QSize(90, 0))
        self.lineEdit_Port.setMaximumSize(QtCore.QSize(90, 16777215))
        self.lineEdit_Port.setStyleSheet(
            "background-color: rgb(255, 255, 255);\n"
            "color: rgb(65, 65, 65);")
        self.lineEdit_Port.setObjectName("lineEdit_Port")
        self.verticalLayout.addWidget(self.lineEdit_Port, 0,
                                      QtCore.Qt.AlignHCenter)
        self.PyDMDrawingLine_10 = PyDMDrawingLine(self.centralwidget)
        self.PyDMDrawingLine_10.setMinimumSize(QtCore.QSize(15, 15))
        self.PyDMDrawingLine_10.setMaximumSize(QtCore.QSize(15, 15))
        self.PyDMDrawingLine_10.setToolTip("")
        brush = QtGui.QBrush(QtGui.QColor(0, 240, 240))
        brush.setStyle(QtCore.Qt.SolidPattern)
        self.PyDMDrawingLine_10.setProperty("brush", brush)
        self.PyDMDrawingLine_10.setObjectName("PyDMDrawingLine_10")
        self.verticalLayout.addWidget(self.PyDMDrawingLine_10, 0,
                                      QtCore.Qt.AlignHCenter)
        self.lineEdit_Exposureone = QtWidgets.QDoubleSpinBox(
            self.centralwidget)
        self.lineEdit_Exposureone.setMinimumSize(QtCore.QSize(90, 0))
        self.lineEdit_Exposureone.setMaximumSize(QtCore.QSize(90, 16777215))
        self.lineEdit_Exposureone.setStyleSheet(
            "background-color: rgb(255, 255, 255);\n"
            "color: rgb(65, 65, 65);")
        self.lineEdit_Exposureone.setDecimals(4)
        self.lineEdit_Exposureone.setMinimum(0.0001)
        self.lineEdit_Exposureone.setMaximum(100000.0)
        self.lineEdit_Exposureone.setProperty("value", 10.0)
        self.lineEdit_Exposureone.setObjectName("lineEdit_Exposureone")
        self.verticalLayout.addWidget(self.lineEdit_Exposureone, 0,
                                      QtCore.Qt.AlignHCenter)
        self.lineEdit_count = QtWidgets.QSpinBox(self.centralwidget)
        self.lineEdit_count.setMinimumSize(QtCore.QSize(90, 0))
        self.lineEdit_count.setMaximumSize(QtCore.QSize(90, 16777215))
        self.lineEdit_count.setStyleSheet(
            "background-color: rgb(255, 255, 255);\n"
            "color: rgb(65, 65, 65);")
        self.lineEdit_count.setMinimum(1)
        self.lineEdit_count.setProperty("value", 2)
        self.lineEdit_count.setObjectName("lineEdit_count")
        self.verticalLayout.addWidget(self.lineEdit_count, 0,
                                      QtCore.Qt.AlignHCenter)
        self.spinBox_cumulative = QtWidgets.QSpinBox(self.centralwidget)
        self.spinBox_cumulative.setMinimumSize(QtCore.QSize(90, 0))
        self.spinBox_cumulative.setMaximumSize(QtCore.QSize(90, 16777215))
        self.spinBox_cumulative.setStyleSheet(
            "background-color: rgb(255, 255, 255);\n"
            "color: rgb(65, 65, 65);")
        self.spinBox_cumulative.setMinimum(1)
        self.spinBox_cumulative.setMaximum(256)
        self.spinBox_cumulative.setObjectName("spinBox_cumulative")
        self.verticalLayout.addWidget(self.spinBox_cumulative, 0,
                                      QtCore.Qt.AlignHCenter)
        self.gridLayout.addLayout(self.verticalLayout, 1, 1, 2, 1)
        self.gridLayout_12 = QtWidgets.QGridLayout()
        self.gridLayout_12.setObjectName("gridLayout_12")
        self.PyDMLabel_connectstatus = PyDMLabel(self.centralwidget)
        font = QtGui.QFont()
        font.setUnderline(True)
        self.PyDMLabel_connectstatus.setFont(font)
        self.PyDMLabel_connectstatus.setToolTip("")
        self.PyDMLabel_connectstatus.setWhatsThis("")
        self.PyDMLabel_connectstatus.setStyleSheet(
            "color: rgb(240, 240, 240);")
        self.PyDMLabel_connectstatus.setObjectName("PyDMLabel_connectstatus")
        self.gridLayout_12.addWidget(self.PyDMLabel_connectstatus, 0, 0, 1, 1,
                                     QtCore.Qt.AlignHCenter)
        self.PyDMPushButton_connect = PyDMPushButton(self.centralwidget)
        self.PyDMPushButton_connect.setMinimumSize(QtCore.QSize(150, 0))
        self.PyDMPushButton_connect.setMaximumSize(QtCore.QSize(150, 16777215))
        self.PyDMPushButton_connect.setToolTip("")
        self.PyDMPushButton_connect.setStyleSheet(
            "\n"
            "background-color: rgb(75, 75, 75);\n"
            "color: rgb(255, 255, 255);")
        self.PyDMPushButton_connect.setObjectName("PyDMPushButton_connect")
        self.gridLayout_12.addWidget(self.PyDMPushButton_connect, 1, 0, 1, 1,
                                     QtCore.Qt.AlignHCenter)
        self.gridLayout.addLayout(self.gridLayout_12, 1, 2, 1, 1)
        self.binning = QtWidgets.QWidget(self.centralwidget)
        self.binning.setMinimumSize(QtCore.QSize(173, 58))
        self.binning.setMaximumSize(QtCore.QSize(1000, 100))
        self.binning.setStyleSheet("border-color: rgb(200, 200, 200);\n"
                                   "border-width : 0.8px;\n"
                                   "border-style:outset;")
        self.binning.setObjectName("binning")
        self.gridLayout_3 = QtWidgets.QGridLayout(self.binning)
        self.gridLayout_3.setContentsMargins(0, 0, 0, 0)
        self.gridLayout_3.setObjectName("gridLayout_3")
        self.gridLayout_8 = QtWidgets.QGridLayout()
        self.gridLayout_8.setObjectName("gridLayout_8")
        self.PyDMCheckbox_512 = PyDMCheckbox(self.binning)
        self.PyDMCheckbox_512.setToolTip("")
        self.PyDMCheckbox_512.setStyleSheet("color: rgb(240, 240, 240);\n"
                                            "border-color: rgb(65, 65, 65);\n"
                                            "border-width : 1.0px;\n"
                                            "border-style:inset;")
        self.PyDMCheckbox_512.setObjectName("PyDMCheckbox_512")
        self.gridLayout_8.addWidget(
            self.PyDMCheckbox_512, 1, 0, 1, 1,
            QtCore.Qt.AlignHCenter | QtCore.Qt.AlignTop)
        self.PyDMCheckbox_1024 = PyDMCheckbox(self.binning)
        self.PyDMCheckbox_1024.setToolTip("")
        self.PyDMCheckbox_1024.setStyleSheet("color: rgb(240, 240, 240);\n"
                                             "border-color: rgb(65, 65, 65);\n"
                                             "border-width : 1.0px;\n"
                                             "border-style:inset;")
        self.PyDMCheckbox_1024.setObjectName("PyDMCheckbox_1024")
        self.gridLayout_8.addWidget(
            self.PyDMCheckbox_1024, 1, 1, 1, 1,
            QtCore.Qt.AlignHCenter | QtCore.Qt.AlignTop)
        self.PyDMCheckbox_2 = PyDMCheckbox(self.binning)
        self.PyDMCheckbox_2.setToolTip("")
        self.PyDMCheckbox_2.setAutoFillBackground(False)
        self.PyDMCheckbox_2.setStyleSheet("color: rgb(240, 240, 240);\n"
                                          "border-color: rgb(65, 65, 65);\n"
                                          "border-width : 1.0px;\n"
                                          "border-style:inset;\n"
                                          "\n"
                                          "")
        self.PyDMCheckbox_2.setChecked(True)
        self.PyDMCheckbox_2.setObjectName("PyDMCheckbox_2")
        self.gridLayout_8.addWidget(
            self.PyDMCheckbox_2, 1, 2, 1, 1,
            QtCore.Qt.AlignHCenter | QtCore.Qt.AlignTop)
        self.PyDMLabel_size = PyDMLabel(self.binning)
        self.PyDMLabel_size.setToolTip("")
        self.PyDMLabel_size.setWhatsThis("")
        self.PyDMLabel_size.setStyleSheet("color: rgb(240, 240, 240);\n"
                                          "border-color: rgb(65, 65, 65);\n"
                                          "border-width : 1.0px;\n"
                                          "border-style:inset;")
        self.PyDMLabel_size.setObjectName("PyDMLabel_size")
        self.gridLayout_8.addWidget(
            self.PyDMLabel_size, 0, 0, 1, 3,
            QtCore.Qt.AlignHCenter | QtCore.Qt.AlignBottom)
        self.gridLayout_3.addLayout(self.gridLayout_8, 1, 0, 1, 1)
        spacerItem = QtWidgets.QSpacerItem(20, 40,
                                           QtWidgets.QSizePolicy.Minimum,
                                           QtWidgets.QSizePolicy.Expanding)
        self.gridLayout_3.addItem(spacerItem, 2, 0, 1, 1)
        spacerItem1 = QtWidgets.QSpacerItem(20, 40,
                                            QtWidgets.QSizePolicy.Minimum,
                                            QtWidgets.QSizePolicy.Expanding)
        self.gridLayout_3.addItem(spacerItem1, 0, 0, 1, 1)
        self.gridLayout.addWidget(self.binning, 2, 2, 1, 1)
        self.PyDMDrawingLine_8 = PyDMDrawingLine(self.centralwidget)
        self.PyDMDrawingLine_8.setMinimumSize(QtCore.QSize(0, 15))
        self.PyDMDrawingLine_8.setMaximumSize(QtCore.QSize(16777215, 15))
        self.PyDMDrawingLine_8.setToolTip("")
        brush = QtGui.QBrush(QtGui.QColor(0, 240, 240))
        brush.setStyle(QtCore.Qt.SolidPattern)
        self.PyDMDrawingLine_8.setProperty("brush", brush)
        self.PyDMDrawingLine_8.setObjectName("PyDMDrawingLine_8")
        self.gridLayout.addWidget(self.PyDMDrawingLine_8, 3, 0, 1, 3)
        self.PyDMDrawingLine_5 = PyDMDrawingLine(self.centralwidget)
        self.PyDMDrawingLine_5.setMinimumSize(QtCore.QSize(0, 15))
        self.PyDMDrawingLine_5.setMaximumSize(QtCore.QSize(16777215, 15))
        self.PyDMDrawingLine_5.setToolTip("")
        brush = QtGui.QBrush(QtGui.QColor(0, 240, 240))
        brush.setStyle(QtCore.Qt.SolidPattern)
        self.PyDMDrawingLine_5.setProperty("brush", brush)
        self.PyDMDrawingLine_5.setObjectName("PyDMDrawingLine_5")
        self.gridLayout.addWidget(self.PyDMDrawingLine_5, 6, 0, 1, 3)
        self.horizontalLayout = QtWidgets.QHBoxLayout()
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.PyDMPushButton_imagesequence = PyDMPushButton(self.centralwidget)
        self.PyDMPushButton_imagesequence.setMinimumSize(QtCore.QSize(210, 23))
        self.PyDMPushButton_imagesequence.setMaximumSize(QtCore.QSize(210, 23))
        self.PyDMPushButton_imagesequence.setToolTip("")
        self.PyDMPushButton_imagesequence.setStyleSheet(
            "color: rgb(255, 255, 255);\n"
            "background-color: rgb(75, 75, 75);")
        self.PyDMPushButton_imagesequence.setObjectName(
            "PyDMPushButton_imagesequence")
        self.horizontalLayout.addWidget(self.PyDMPushButton_imagesequence)
        spacerItem2 = QtWidgets.QSpacerItem(318, 20,
                                            QtWidgets.QSizePolicy.Expanding,
                                            QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout.addItem(spacerItem2)
        self.PyDMPushButton_abort = PyDMPushButton(self.centralwidget)
        self.PyDMPushButton_abort.setMinimumSize(QtCore.QSize(115, 23))
        self.PyDMPushButton_abort.setMaximumSize(QtCore.QSize(115, 23))
        self.PyDMPushButton_abort.setToolTip("")
        self.PyDMPushButton_abort.setStyleSheet(
            "color: rgb(255, 255, 255);\n"
            "background-color: rgb(75, 75, 75);")
        self.PyDMPushButton_abort.setObjectName("PyDMPushButton_abort")
        self.horizontalLayout.addWidget(self.PyDMPushButton_abort)
        self.gridLayout.addLayout(self.horizontalLayout, 7, 0, 1, 3)
        self.gridLayout_9 = QtWidgets.QGridLayout()
        self.gridLayout_9.setObjectName("gridLayout_9")
        self.PyDMLabel_Filename = PyDMLabel(self.centralwidget)
        font = QtGui.QFont()
        font.setUnderline(True)
        self.PyDMLabel_Filename.setFont(font)
        self.PyDMLabel_Filename.setToolTip("")
        self.PyDMLabel_Filename.setWhatsThis("")
        self.PyDMLabel_Filename.setStyleSheet("color: rgb(240, 240, 240);")
        self.PyDMLabel_Filename.setObjectName("PyDMLabel_Filename")
        self.gridLayout_9.addWidget(self.PyDMLabel_Filename, 0, 0, 1, 1)
        self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.lineEdit_filename = QtWidgets.QLineEdit(self.centralwidget)
        self.lineEdit_filename.setMinimumSize(QtCore.QSize(100, 23))
        self.lineEdit_filename.setMaximumSize(QtCore.QSize(400, 23))
        self.lineEdit_filename.setStyleSheet(
            "background-color: rgb(255, 255, 255);\n"
            "color: rgb(65, 65, 65);")
        self.lineEdit_filename.setObjectName("lineEdit_filename")
        self.horizontalLayout_2.addWidget(self.lineEdit_filename)
        self.gridLayout_4 = QtWidgets.QGridLayout()
        self.gridLayout_4.setObjectName("gridLayout_4")
        self.label = QtWidgets.QLabel(self.centralwidget)
        self.label.setMinimumSize(QtCore.QSize(40, 16))
        self.label.setMaximumSize(QtCore.QSize(40, 16))
        self.label.setStyleSheet("color: rgb(240, 240, 240);")
        self.label.setObjectName("label")
        self.gridLayout_4.addWidget(self.label, 0, 0, 1, 1,
                                    QtCore.Qt.AlignRight)
        self.spinBox_filename = QtWidgets.QSpinBox(self.centralwidget)
        self.spinBox_filename.setMinimumSize(QtCore.QSize(70, 0))
        self.spinBox_filename.setMaximumSize(QtCore.QSize(70, 16777215))
        self.spinBox_filename.setStyleSheet(
            "background-color: rgb(255, 255, 255);\n"
            "color: rgb(65, 65, 65);")
        self.spinBox_filename.setMaximum(999)
        self.spinBox_filename.setObjectName("spinBox_filename")
        self.gridLayout_4.addWidget(self.spinBox_filename, 0, 3, 1, 1,
                                    QtCore.Qt.AlignLeft)
        self.sufix = QtWidgets.QLabel(self.centralwidget)
        self.sufix.setMinimumSize(QtCore.QSize(0, 0))
        self.sufix.setMaximumSize(QtCore.QSize(400, 16777215))
        self.sufix.setStyleSheet("color: rgb(240, 240, 240);")
        self.sufix.setObjectName("sufix")
        self.gridLayout_4.addWidget(self.sufix, 0, 1, 1, 2,
                                    QtCore.Qt.AlignHCenter)
        self.horizontalLayout_2.addLayout(self.gridLayout_4)
        self.gridLayout_9.addLayout(self.horizontalLayout_2, 1, 0, 1, 1)
        self.gridLayout.addLayout(self.gridLayout_9, 4, 0, 1, 3)
        self.gridLayout_7 = QtWidgets.QGridLayout()
        self.gridLayout_7.setObjectName("gridLayout_7")
        self.lineEdit_path = QtWidgets.QLineEdit(self.centralwidget)
        self.lineEdit_path.setMinimumSize(QtCore.QSize(0, 23))
        self.lineEdit_path.setMaximumSize(QtCore.QSize(16777215, 23))
        self.lineEdit_path.setStyleSheet(
            "background-color: rgb(255, 255, 255);\n"
            "color: rgb(65, 65, 65);")
        self.lineEdit_path.setObjectName("lineEdit_path")
        self.gridLayout_7.addWidget(self.lineEdit_path, 1, 0, 1, 1)
        self.PyDMPushButtonSelect = PyDMPushButton(self.centralwidget)
        self.PyDMPushButtonSelect.setToolTip("")
        self.PyDMPushButtonSelect.setStyleSheet(
            "color: rgb(255, 255, 255);\n"
            "background-color: rgb(75, 75, 75);")
        self.PyDMPushButtonSelect.setObjectName("PyDMPushButtonSelect")
        self.gridLayout_7.addWidget(self.PyDMPushButtonSelect, 1, 1, 1, 1)
        self.PyDMLabel_path = PyDMLabel(self.centralwidget)
        font = QtGui.QFont()
        font.setUnderline(True)
        self.PyDMLabel_path.setFont(font)
        self.PyDMLabel_path.setToolTip("")
        self.PyDMLabel_path.setWhatsThis("")
        self.PyDMLabel_path.setStyleSheet("color: rgb(240, 240, 240);")
        self.PyDMLabel_path.setObjectName("PyDMLabel_path")
        self.gridLayout_7.addWidget(self.PyDMLabel_path, 0, 0, 1, 2)
        self.gridLayout.addLayout(self.gridLayout_7, 5, 0, 1, 3)
        self.PyDMLabel_msgerror = PyDMLabel(self.centralwidget)
        self.PyDMLabel_msgerror.setMinimumSize(QtCore.QSize(299, 0))
        self.PyDMLabel_msgerror.setMaximumSize(QtCore.QSize(800, 16777215))
        self.PyDMLabel_msgerror.setToolTip("")
        self.PyDMLabel_msgerror.setWhatsThis("")
        self.PyDMLabel_msgerror.setStyleSheet("color: rgb(240, 240, 240);")
        self.PyDMLabel_msgerror.setObjectName("PyDMLabel_msgerror")
        self.gridLayout.addWidget(self.PyDMLabel_msgerror, 8, 0, 1, 3)
        Ui_MainWindow_marccd.setCentralWidget(self.centralwidget)
        self.menubar = QtWidgets.QMenuBar(Ui_MainWindow_marccd)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 575, 20))
        self.menubar.setObjectName("menubar")
        Ui_MainWindow_marccd.setMenuBar(self.menubar)
        self.statusbar = QtWidgets.QStatusBar(Ui_MainWindow_marccd)
        self.statusbar.setObjectName("statusbar")
        Ui_MainWindow_marccd.setStatusBar(self.statusbar)

        self.retranslateUi(Ui_MainWindow_marccd)
        QtCore.QMetaObject.connectSlotsByName(Ui_MainWindow_marccd)
Ejemplo n.º 14
0
    def get_gauge(self, parent, pv_info: PVInfo):
        tooltip = "".join(
            [f"{key}\t{value}\n" for key, value in pv_info.__dict__.items()]
        )

        width = 320
        height = 100

        frame = QFrame(parent)
        frame.setGeometry(QRect(10, 10, width, height))
        frame.setMinimumSize(width, height)
        frame.setFrameShape(QFrame.StyledPanel)
        frame.setFrameShadow(QFrame.Raised)
        frame.setObjectName("frame")

        brush = QBrush(QColor(180, 180, 180))
        brush.setStyle(Qt.NoBrush)

        alarmRec = PyDMDrawingRectangle(frame)
        alarmRec.channel = "ca://{}".format(pv_info.ALARM)
        alarmRec.setGeometry(QRect(0, 0, width, height))
        alarmRec.setToolTip(tooltip)
        alarmRec.setProperty("alarmSensitiveContent", True)
        alarmRec.setProperty("brush", brush)
        alarmRec.setObjectName("alarmRec")
        # alarmRec.setStyleSheet("margin:5px; border:3px solid rgb(0, 0, 0);")

        lblName = QLabel(frame)
        lblName.setGeometry(QRect(width * 0.05, 50, width - width * 0.05, 20))
        font = QFont()
        font.setPointSize(12)
        lblName.setFont(font)
        lblName.setAlignment(Qt.AlignCenter)
        lblName.setText("{}".format(pv_info.DISP))
        lblName.setObjectName("lblName")
        lblName.setToolTip(tooltip)

        lblVal = PyDMLabel(frame)
        lblVal.setGeometry(QRect(width * 0.05, 10, width - width * 0.05, 30))
        font = QFont()
        font.setPointSize(18)
        lblVal.setFont(font)
        lblVal.setToolTip(tooltip)
        lblVal.setAlignment(Qt.AlignCenter)
        lblVal.setProperty("showUnits", False)
        lblVal.setObjectName("lblVal")
        lblVal.channel = "ca://{}".format(pv_info.PV)
        lblVal.precisionFromPV = False
        lblVal.precision = 2
        if self.macros().get("FORMAT", "") == "EXP":
            lblVal.displayFormat = PyDMLabel.DisplayFormat.Exponential
        return frame