示例#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)
示例#2
0
 def create_buttons(self):
     for btn in self._command_buttons_config:
         try:
             text = btn['text']
             value = btn['value']
             btn = PyDMPushButton(label=text, pressValue=value)
             self.buttons.append(btn)
         except KeyError:
             logger.exception('Invalid config for MultipleButtonControl.')
示例#3
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"))

    '''
示例#4
0
    def __init__(self, parent=None, args=None, macros=None):
        super(MirrorScreen, self).__init__(parent=parent, args=args, macros=macros)
        if macros != None:
            self.x_stop = EpicsSignal(macros['XAXIS'] + ".STOP")
            self.y_stop = EpicsSignal(macros['YAXIS'] + ".STOP")
            self.p_stop = EpicsSignal(macros['PITCH'] + ".STOP")

        self.alarm_box_x = QHBoxLayout()
        self.alarm_box_y = QHBoxLayout()
        self.alarm_box_p = QHBoxLayout()
        self.alarm_box_gantry_x = QHBoxLayout()
        self.alarm_box_gantry_y = QHBoxLayout()
        self.ghost = QHBoxLayout()

        self.alarm_x = TyphosAlarmCircle()
        self.alarm_x.channel = "ca://" + macros['XAXIS']
        self.alarm_x.setMaximumHeight(35)
        self.alarm_x.setMaximumWidth(35)

        self.alarm_y = TyphosAlarmCircle()
        self.alarm_y.channel = "ca://" + macros['YAXIS']
        self.alarm_y.setMaximumHeight(35)
        self.alarm_y.setMaximumWidth(35)

        self.alarm_p = TyphosAlarmCircle()
        self.alarm_p.channel = "ca://" + macros['PITCH']
        self.alarm_p.setMaximumHeight(35)
        self.alarm_p.setMaximumWidth(35)

        label_font = QFont()
        label_font.setBold(True) 


        self.x_label = QLabel("x")
        #self.x_label.setFont(label_font)
        self.y_label = QLabel("y")
        #self.y_label.setFont(label_font)
        self.p_label = QLabel("pitch")
        #self.p_label.setFont(label_font)
        self.gantry_x_label = QLabel("gantry x")
        #self.gantry_x_label.setFont(label_font)
        self.gantry_y_label = QLabel("gantry y")
        #self.gantry_y_label.setFont(label_font)

        self.alarm_gantry_x = TyphosAlarmCircle()
        self.alarm_gantry_x.channel = "ca://" + macros['MIRROR'] + ":HOMS:ALREADY_COUPLED_X_RBV"
        self.alarm_gantry_x.setMaximumHeight(35)
        self.alarm_gantry_x.setMaximumWidth(35)

        self.alarm_gantry_y = TyphosAlarmCircle()
        self.alarm_gantry_y.channel = "ca://" + macros['MIRROR'] + ":HOMS:ALREADY_COUPLED_Y_RBV"
        self.alarm_gantry_y.setMaximumHeight(35)
        self.alarm_gantry_y.setMaximumWidth(35)




        
        self.alarm_box_x.addWidget(self.x_label)
        self.alarm_box_x.setAlignment(self.x_label, Qt.AlignCenter)
        self.alarm_box_x.addWidget(self.alarm_x)

        self.alarm_box_y.addWidget(self.y_label)
        self.alarm_box_y.setAlignment(self.y_label, Qt.AlignCenter)
        self.alarm_box_y.addWidget(self.alarm_y)

        self.alarm_box_p.addWidget(self.p_label)
        self.alarm_box_p.setAlignment(self.p_label, Qt.AlignCenter)
        self.alarm_box_p.addWidget(self.alarm_p)

        self.alarm_box_gantry_x.addWidget(self.gantry_x_label)
        self.alarm_box_gantry_x.setAlignment(self.gantry_x_label, Qt.AlignCenter)
        self.alarm_box_gantry_x.addWidget(self.alarm_gantry_x)

        self.alarm_box_gantry_y.addWidget(self.gantry_y_label)
        self.alarm_box_gantry_y.setAlignment(self.gantry_y_label, Qt.AlignCenter)
        self.alarm_box_gantry_y.addWidget(self.alarm_gantry_y)


        self.stop_button = PyDMPushButton(label="Stop")
        self.stop_button.setMaximumHeight(120)
        self.stop_button.setMaximumWidth(120)
        self.stop_button.clicked.connect(self.stop_motors)
        self.stop_button.setStyleSheet("background: rgb(255,0,0)")

        self.advanced_button = TyphosRelatedSuiteButton()
        
        self.advanced_button.happi_names = [macros['MIRROR'].lower() + "_homs"]
        self.advanced_button.setText("Advanced")

        
        self.ui.horizontalLayout_8.addLayout(self.alarm_box_x)
        self.ui.horizontalLayout_8.addLayout(self.alarm_box_y)
        self.ui.horizontalLayout_8.addLayout(self.alarm_box_p)
        self.ui.horizontalLayout_8.addLayout(self.alarm_box_gantry_x)
        self.ui.horizontalLayout_8.addLayout(self.alarm_box_gantry_y)
        #self.ui.horizontalLayout_8.addWidget(self.alarm_x)
        #self.ui.horizontalLayout_8.addWidget(self.alarm_y)
        #self.ui.horizontalLayout_8.addWidget(self.alarm_p)
        #self.ui.horizontalLayout_8.addWidget(self.stop_button)

        #self.ui.verticalLayout_6.setAlignment(Qt.AlignCenter)
        self.ui.horizontalLayout_14.addWidget(self.advanced_button)
        self.ui.horizontalLayout_14.addSpacing(50)
        self.ui.horizontalLayout_14.addWidget(self.stop_button)
        self.ui.horizontalLayout_14.addSpacing(160)

        self.ui.setGeometry(QtCore.QRect(0,0, 360, 385))
示例#5
0
class Ui_MainWindow(object):
    def setupUi(self, MainWindow):
        MainWindow.setObjectName("MainWindow")
        MainWindow.resize(300, 454)
        MainWindow.setMinimumSize(QtCore.QSize(300, 454))
        MainWindow.setMaximumSize(QtCore.QSize(300, 454))
        MainWindow.setStyleSheet(
            "background-color: qlineargradient(spread:pad, x1:0, y1:0, x2:1, y2:0, stop:0.1 rgba(65, 65, 65, 255), stop:0.1 rgba(65, 65, 65, 255));\n"
            "")
        self.centralwidget = QtWidgets.QWidget(MainWindow)
        self.centralwidget.setObjectName("centralwidget")
        self.gridLayout = QtWidgets.QGridLayout(self.centralwidget)
        self.gridLayout.setObjectName("gridLayout")
        self.toolButton = QtWidgets.QToolButton(self.centralwidget)
        self.toolButton.setMinimumSize(QtCore.QSize(24, 18))
        self.toolButton.setMaximumSize(QtCore.QSize(24, 18))
        self.toolButton.setStyleSheet("color: rgb(255, 255, 255);\n"
                                      "background-color: rgb(100, 100, 100);")
        self.toolButton.setObjectName("toolButton")
        self.gridLayout.addWidget(self.toolButton, 0, 1, 1, 1,
                                  QtCore.Qt.AlignRight)
        self.PyDMPushButton_ligthsystem = PyDMPushButton(self.centralwidget)
        self.PyDMPushButton_ligthsystem.setToolTip("")
        self.PyDMPushButton_ligthsystem.setStyleSheet(
            "color: rgb(255, 255, 255);")
        self.PyDMPushButton_ligthsystem.setObjectName(
            "PyDMPushButton_ligthsystem")
        self.gridLayout.addWidget(self.PyDMPushButton_ligthsystem, 6, 1, 1, 1)
        self.PyDMImageView_inicial = PyDMImageView(self.centralwidget)
        self.PyDMImageView_inicial.setToolTip("")
        self.PyDMImageView_inicial.setProperty("alarmSensitiveBorder", False)
        self.PyDMImageView_inicial.setProperty("colorMap",
                                               PyDMImageView.Monochrome)
        self.PyDMImageView_inicial.setObjectName("PyDMImageView_inicial")
        self.gridLayout.addWidget(self.PyDMImageView_inicial, 2, 0, 1, 2)
        self.PyDMCheckbox_singlecrystal = PyDMCheckbox(self.centralwidget)
        self.PyDMCheckbox_singlecrystal.setToolTip("")
        self.PyDMCheckbox_singlecrystal.setStyleSheet(
            "color: rgb(240, 240, 240);")
        self.PyDMCheckbox_singlecrystal.setChecked(True)
        self.PyDMCheckbox_singlecrystal.setObjectName(
            "PyDMCheckbox_singlecrystal")
        self.gridLayout.addWidget(self.PyDMCheckbox_singlecrystal, 8, 0, 1, 1)
        self.PyDMPushButton_singlecrystal = PyDMPushButton(self.centralwidget)
        self.PyDMPushButton_singlecrystal.setToolTip("")
        self.PyDMPushButton_singlecrystal.setStyleSheet(
            "color: rgb(255, 255, 255);")
        self.PyDMPushButton_singlecrystal.setObjectName(
            "PyDMPushButton_singlecrystal")
        self.gridLayout.addWidget(self.PyDMPushButton_singlecrystal, 8, 1, 1,
                                  1)
        self.PyDMCheckbox_lightsource = PyDMCheckbox(self.centralwidget)
        self.PyDMCheckbox_lightsource.setToolTip("")
        self.PyDMCheckbox_lightsource.setStyleSheet(
            "color: rgb(240, 240, 240);")
        self.PyDMCheckbox_lightsource.setObjectName("PyDMCheckbox_lightsource")
        self.gridLayout.addWidget(self.PyDMCheckbox_lightsource, 6, 0, 1, 1)
        self.PyDMCheckbox_temperature = PyDMCheckbox(self.centralwidget)
        self.PyDMCheckbox_temperature.setToolTip("")
        self.PyDMCheckbox_temperature.setStyleSheet(
            "color: rgb(240, 240, 240);")
        self.PyDMCheckbox_temperature.setObjectName("PyDMCheckbox_temperature")
        self.gridLayout.addWidget(self.PyDMCheckbox_temperature, 9, 0, 1, 1)
        self.PyDMPushButton_temperaturesystem = PyDMPushButton(
            self.centralwidget)
        self.PyDMPushButton_temperaturesystem.setToolTip("")
        self.PyDMPushButton_temperaturesystem.setStyleSheet(
            "color: rgb(255, 255, 255);")
        self.PyDMPushButton_temperaturesystem.setObjectName(
            "PyDMPushButton_temperaturesystem")
        self.gridLayout.addWidget(self.PyDMPushButton_temperaturesystem, 9, 1,
                                  1, 1)
        self.PyDMCheckbox_pressure = PyDMCheckbox(self.centralwidget)
        self.PyDMCheckbox_pressure.setToolTip("")
        self.PyDMCheckbox_pressure.setStyleSheet("color: rgb(240, 240, 240);")
        self.PyDMCheckbox_pressure.setChecked(True)
        self.PyDMCheckbox_pressure.setObjectName("PyDMCheckbox_pressure")
        self.gridLayout.addWidget(self.PyDMCheckbox_pressure, 7, 0, 1, 1)
        self.PyDMPushButton_pressuresystem = PyDMPushButton(self.centralwidget)
        self.PyDMPushButton_pressuresystem.setToolTip("")
        self.PyDMPushButton_pressuresystem.setStyleSheet(
            "color: rgb(255, 255, 255);")
        self.PyDMPushButton_pressuresystem.setObjectName(
            "PyDMPushButton_pressuresystem")
        self.gridLayout.addWidget(self.PyDMPushButton_pressuresystem, 7, 1, 1,
                                  1)
        self.PyDMCheckbox_visionsystem = PyDMCheckbox(self.centralwidget)
        self.PyDMCheckbox_visionsystem.setToolTip("")
        self.PyDMCheckbox_visionsystem.setStyleSheet(
            "color: rgb(240, 240, 240);")
        self.PyDMCheckbox_visionsystem.setChecked(True)
        self.PyDMCheckbox_visionsystem.setObjectName(
            "PyDMCheckbox_visionsystem")
        self.gridLayout.addWidget(self.PyDMCheckbox_visionsystem, 5, 0, 1, 1)
        self.PyDMPushButton_visionsystem = PyDMPushButton(self.centralwidget)
        self.PyDMPushButton_visionsystem.setEnabled(True)
        self.PyDMPushButton_visionsystem.setToolTip("")
        self.PyDMPushButton_visionsystem.setStyleSheet(
            "color: rgb(255, 255, 255);")
        self.PyDMPushButton_visionsystem.setObjectName(
            "PyDMPushButton_visionsystem")
        self.gridLayout.addWidget(self.PyDMPushButton_visionsystem, 5, 1, 1, 1)
        self.PyDMPushButton_beamsystem = PyDMPushButton(self.centralwidget)
        self.PyDMPushButton_beamsystem.setToolTip("")
        self.PyDMPushButton_beamsystem.setStyleSheet(
            "color: rgb(255, 255, 255);")
        self.PyDMPushButton_beamsystem.setObjectName(
            "PyDMPushButton_beamsystem")
        self.gridLayout.addWidget(self.PyDMPushButton_beamsystem, 4, 1, 1, 1)
        self.PyDMCheckbox_beamalignment = PyDMCheckbox(self.centralwidget)
        self.PyDMCheckbox_beamalignment.setToolTip("")
        self.PyDMCheckbox_beamalignment.setStyleSheet(
            "color: rgb(240, 240, 240);\n"
            "")
        self.PyDMCheckbox_beamalignment.setObjectName(
            "PyDMCheckbox_beamalignment")
        self.gridLayout.addWidget(self.PyDMCheckbox_beamalignment, 4, 0, 1, 1)
        self.label = QtWidgets.QLabel(self.centralwidget)
        self.label.setStyleSheet("color: rgb(240, 240, 240);")
        self.label.setObjectName("label")
        self.gridLayout.addWidget(self.label, 0, 0, 1, 1)
        self.PyDMPushButton_pressuresystem.raise_()
        self.PyDMPushButton_visionsystem.raise_()
        self.PyDMPushButton_beamsystem.raise_()
        self.PyDMPushButton_ligthsystem.raise_()
        self.PyDMImageView_inicial.raise_()
        self.PyDMPushButton_singlecrystal.raise_()
        self.PyDMPushButton_temperaturesystem.raise_()
        self.PyDMCheckbox_beamalignment.raise_()
        self.PyDMCheckbox_lightsource.raise_()
        self.PyDMCheckbox_pressure.raise_()
        self.PyDMCheckbox_singlecrystal.raise_()
        self.PyDMCheckbox_temperature.raise_()
        self.PyDMCheckbox_visionsystem.raise_()
        self.toolButton.raise_()
        self.label.raise_()
        MainWindow.setCentralWidget(self.centralwidget)
        self.statusbar = QtWidgets.QStatusBar(MainWindow)
        self.statusbar.setStyleSheet("color: rgb(208, 208, 208);")
        self.statusbar.setObjectName("statusbar")
        MainWindow.setStatusBar(self.statusbar)

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

    def retranslateUi(self, MainWindow):
        _translate = QtCore.QCoreApplication.translate
        MainWindow.setWindowTitle(_translate("MainWindow", "E-MA © 2018 EMA "))
        self.toolButton.setText(_translate("MainWindow", "..."))
        self.PyDMPushButton_ligthsystem.setWhatsThis(
            _translate(
                "MainWindow", "\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_ligthsystem.setText(
            _translate("MainWindow", "Open"))
        self.PyDMImageView_inicial.setWhatsThis(
            _translate(
                "MainWindow", "\n"
                "    A PyQtGraph ImageView with support for Channels and more from PyDM\n"
                "\n"
                "    Parameters\n"
                "    ----------\n"
                "    parent : QWidget\n"
                "        The parent widget for the Label\n"
                "    image_channel : str, optional\n"
                "        The channel to be used by the widget for the image data.\n"
                "    width_channel : str, optional\n"
                "        The channel to be used by the widget to receive the image width\n"
                "        information\n"
                "    "))
        self.PyDMCheckbox_singlecrystal.setWhatsThis(
            _translate(
                "MainWindow", "\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_singlecrystal.setText(
            _translate("MainWindow", "Single Crystal System"))
        self.PyDMPushButton_singlecrystal.setWhatsThis(
            _translate(
                "MainWindow", "\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_singlecrystal.setText(
            _translate("MainWindow", "Open"))
        self.PyDMCheckbox_lightsource.setWhatsThis(
            _translate(
                "MainWindow", "\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_lightsource.setText(
            _translate("MainWindow", "Light Source System"))
        self.PyDMCheckbox_temperature.setWhatsThis(
            _translate(
                "MainWindow", "\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_temperature.setText(
            _translate("MainWindow", "Temperature System"))
        self.PyDMPushButton_temperaturesystem.setWhatsThis(
            _translate(
                "MainWindow", "\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_temperaturesystem.setText(
            _translate("MainWindow", "Open"))
        self.PyDMCheckbox_pressure.setWhatsThis(
            _translate(
                "MainWindow", "\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_pressure.setText(
            _translate("MainWindow", "Pressure System"))
        self.PyDMPushButton_pressuresystem.setWhatsThis(
            _translate(
                "MainWindow", "\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_pressuresystem.setText(
            _translate("MainWindow", "Open"))
        self.PyDMCheckbox_visionsystem.setWhatsThis(
            _translate(
                "MainWindow", "\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_visionsystem.setText(
            _translate("MainWindow", "Diffraction Imaging System"))
        self.PyDMPushButton_visionsystem.setWhatsThis(
            _translate(
                "MainWindow", "\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_visionsystem.setText(
            _translate("MainWindow", "Open"))
        self.PyDMPushButton_beamsystem.setWhatsThis(
            _translate(
                "MainWindow", "\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_beamsystem.setText(_translate(
            "MainWindow", "Open"))
        self.PyDMCheckbox_beamalignment.setWhatsThis(
            _translate(
                "MainWindow", "\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_beamalignment.setText(
            _translate("MainWindow", "Beam Alignment System"))
        self.label.setText(
            _translate("MainWindow", "Experiment Management App"))
示例#6
0
    def setupUi(self, MainWindow):
        MainWindow.setObjectName("MainWindow")
        MainWindow.resize(300, 454)
        MainWindow.setMinimumSize(QtCore.QSize(300, 454))
        MainWindow.setMaximumSize(QtCore.QSize(300, 454))
        MainWindow.setStyleSheet(
            "background-color: qlineargradient(spread:pad, x1:0, y1:0, x2:1, y2:0, stop:0.1 rgba(65, 65, 65, 255), stop:0.1 rgba(65, 65, 65, 255));\n"
            "")
        self.centralwidget = QtWidgets.QWidget(MainWindow)
        self.centralwidget.setObjectName("centralwidget")
        self.gridLayout = QtWidgets.QGridLayout(self.centralwidget)
        self.gridLayout.setObjectName("gridLayout")
        self.toolButton = QtWidgets.QToolButton(self.centralwidget)
        self.toolButton.setMinimumSize(QtCore.QSize(24, 18))
        self.toolButton.setMaximumSize(QtCore.QSize(24, 18))
        self.toolButton.setStyleSheet("color: rgb(255, 255, 255);\n"
                                      "background-color: rgb(100, 100, 100);")
        self.toolButton.setObjectName("toolButton")
        self.gridLayout.addWidget(self.toolButton, 0, 1, 1, 1,
                                  QtCore.Qt.AlignRight)
        self.PyDMPushButton_ligthsystem = PyDMPushButton(self.centralwidget)
        self.PyDMPushButton_ligthsystem.setToolTip("")
        self.PyDMPushButton_ligthsystem.setStyleSheet(
            "color: rgb(255, 255, 255);")
        self.PyDMPushButton_ligthsystem.setObjectName(
            "PyDMPushButton_ligthsystem")
        self.gridLayout.addWidget(self.PyDMPushButton_ligthsystem, 6, 1, 1, 1)
        self.PyDMImageView_inicial = PyDMImageView(self.centralwidget)
        self.PyDMImageView_inicial.setToolTip("")
        self.PyDMImageView_inicial.setProperty("alarmSensitiveBorder", False)
        self.PyDMImageView_inicial.setProperty("colorMap",
                                               PyDMImageView.Monochrome)
        self.PyDMImageView_inicial.setObjectName("PyDMImageView_inicial")
        self.gridLayout.addWidget(self.PyDMImageView_inicial, 2, 0, 1, 2)
        self.PyDMCheckbox_singlecrystal = PyDMCheckbox(self.centralwidget)
        self.PyDMCheckbox_singlecrystal.setToolTip("")
        self.PyDMCheckbox_singlecrystal.setStyleSheet(
            "color: rgb(240, 240, 240);")
        self.PyDMCheckbox_singlecrystal.setChecked(True)
        self.PyDMCheckbox_singlecrystal.setObjectName(
            "PyDMCheckbox_singlecrystal")
        self.gridLayout.addWidget(self.PyDMCheckbox_singlecrystal, 8, 0, 1, 1)
        self.PyDMPushButton_singlecrystal = PyDMPushButton(self.centralwidget)
        self.PyDMPushButton_singlecrystal.setToolTip("")
        self.PyDMPushButton_singlecrystal.setStyleSheet(
            "color: rgb(255, 255, 255);")
        self.PyDMPushButton_singlecrystal.setObjectName(
            "PyDMPushButton_singlecrystal")
        self.gridLayout.addWidget(self.PyDMPushButton_singlecrystal, 8, 1, 1,
                                  1)
        self.PyDMCheckbox_lightsource = PyDMCheckbox(self.centralwidget)
        self.PyDMCheckbox_lightsource.setToolTip("")
        self.PyDMCheckbox_lightsource.setStyleSheet(
            "color: rgb(240, 240, 240);")
        self.PyDMCheckbox_lightsource.setObjectName("PyDMCheckbox_lightsource")
        self.gridLayout.addWidget(self.PyDMCheckbox_lightsource, 6, 0, 1, 1)
        self.PyDMCheckbox_temperature = PyDMCheckbox(self.centralwidget)
        self.PyDMCheckbox_temperature.setToolTip("")
        self.PyDMCheckbox_temperature.setStyleSheet(
            "color: rgb(240, 240, 240);")
        self.PyDMCheckbox_temperature.setObjectName("PyDMCheckbox_temperature")
        self.gridLayout.addWidget(self.PyDMCheckbox_temperature, 9, 0, 1, 1)
        self.PyDMPushButton_temperaturesystem = PyDMPushButton(
            self.centralwidget)
        self.PyDMPushButton_temperaturesystem.setToolTip("")
        self.PyDMPushButton_temperaturesystem.setStyleSheet(
            "color: rgb(255, 255, 255);")
        self.PyDMPushButton_temperaturesystem.setObjectName(
            "PyDMPushButton_temperaturesystem")
        self.gridLayout.addWidget(self.PyDMPushButton_temperaturesystem, 9, 1,
                                  1, 1)
        self.PyDMCheckbox_pressure = PyDMCheckbox(self.centralwidget)
        self.PyDMCheckbox_pressure.setToolTip("")
        self.PyDMCheckbox_pressure.setStyleSheet("color: rgb(240, 240, 240);")
        self.PyDMCheckbox_pressure.setChecked(True)
        self.PyDMCheckbox_pressure.setObjectName("PyDMCheckbox_pressure")
        self.gridLayout.addWidget(self.PyDMCheckbox_pressure, 7, 0, 1, 1)
        self.PyDMPushButton_pressuresystem = PyDMPushButton(self.centralwidget)
        self.PyDMPushButton_pressuresystem.setToolTip("")
        self.PyDMPushButton_pressuresystem.setStyleSheet(
            "color: rgb(255, 255, 255);")
        self.PyDMPushButton_pressuresystem.setObjectName(
            "PyDMPushButton_pressuresystem")
        self.gridLayout.addWidget(self.PyDMPushButton_pressuresystem, 7, 1, 1,
                                  1)
        self.PyDMCheckbox_visionsystem = PyDMCheckbox(self.centralwidget)
        self.PyDMCheckbox_visionsystem.setToolTip("")
        self.PyDMCheckbox_visionsystem.setStyleSheet(
            "color: rgb(240, 240, 240);")
        self.PyDMCheckbox_visionsystem.setChecked(True)
        self.PyDMCheckbox_visionsystem.setObjectName(
            "PyDMCheckbox_visionsystem")
        self.gridLayout.addWidget(self.PyDMCheckbox_visionsystem, 5, 0, 1, 1)
        self.PyDMPushButton_visionsystem = PyDMPushButton(self.centralwidget)
        self.PyDMPushButton_visionsystem.setEnabled(True)
        self.PyDMPushButton_visionsystem.setToolTip("")
        self.PyDMPushButton_visionsystem.setStyleSheet(
            "color: rgb(255, 255, 255);")
        self.PyDMPushButton_visionsystem.setObjectName(
            "PyDMPushButton_visionsystem")
        self.gridLayout.addWidget(self.PyDMPushButton_visionsystem, 5, 1, 1, 1)
        self.PyDMPushButton_beamsystem = PyDMPushButton(self.centralwidget)
        self.PyDMPushButton_beamsystem.setToolTip("")
        self.PyDMPushButton_beamsystem.setStyleSheet(
            "color: rgb(255, 255, 255);")
        self.PyDMPushButton_beamsystem.setObjectName(
            "PyDMPushButton_beamsystem")
        self.gridLayout.addWidget(self.PyDMPushButton_beamsystem, 4, 1, 1, 1)
        self.PyDMCheckbox_beamalignment = PyDMCheckbox(self.centralwidget)
        self.PyDMCheckbox_beamalignment.setToolTip("")
        self.PyDMCheckbox_beamalignment.setStyleSheet(
            "color: rgb(240, 240, 240);\n"
            "")
        self.PyDMCheckbox_beamalignment.setObjectName(
            "PyDMCheckbox_beamalignment")
        self.gridLayout.addWidget(self.PyDMCheckbox_beamalignment, 4, 0, 1, 1)
        self.label = QtWidgets.QLabel(self.centralwidget)
        self.label.setStyleSheet("color: rgb(240, 240, 240);")
        self.label.setObjectName("label")
        self.gridLayout.addWidget(self.label, 0, 0, 1, 1)
        self.PyDMPushButton_pressuresystem.raise_()
        self.PyDMPushButton_visionsystem.raise_()
        self.PyDMPushButton_beamsystem.raise_()
        self.PyDMPushButton_ligthsystem.raise_()
        self.PyDMImageView_inicial.raise_()
        self.PyDMPushButton_singlecrystal.raise_()
        self.PyDMPushButton_temperaturesystem.raise_()
        self.PyDMCheckbox_beamalignment.raise_()
        self.PyDMCheckbox_lightsource.raise_()
        self.PyDMCheckbox_pressure.raise_()
        self.PyDMCheckbox_singlecrystal.raise_()
        self.PyDMCheckbox_temperature.raise_()
        self.PyDMCheckbox_visionsystem.raise_()
        self.toolButton.raise_()
        self.label.raise_()
        MainWindow.setCentralWidget(self.centralwidget)
        self.statusbar = QtWidgets.QStatusBar(MainWindow)
        self.statusbar.setStyleSheet("color: rgb(208, 208, 208);")
        self.statusbar.setObjectName("statusbar")
        MainWindow.setStatusBar(self.statusbar)

        self.retranslateUi(MainWindow)
        QtCore.QMetaObject.connectSlotsByName(MainWindow)
示例#7
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)
示例#8
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"))
示例#9
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)
示例#10
0
    def setupUi(self, MainWindow_motor):
        MainWindow_motor.setObjectName("MainWindow_motor")
        MainWindow_motor.resize(234, 418)
        MainWindow_motor.setMinimumSize(QtCore.QSize(234, 418))
        MainWindow_motor.setMaximumSize(QtCore.QSize(234, 418))
        MainWindow_motor.setStyleSheet(
            "\n"
            "                QFrame#frame_motor > PyDMLabel{\n"
            "                  color: rgb(255, 255, 255);\n"
            "                }\n"
            "\n"
            "                QPushButton#PyDMPushButton_stop{\n"
            "                  color: rgb(255, 0, 0);\n"
            "                }\n"
            "\n"
            "                QFrame#frame_motor{\n"
            "                  background-color: rgb(20, 20, 20);\n"
            "                }\n"
            "\n"
            "                QFrame#frame_controls{\n"
            "                  background-color: rgb(255, 255, 255);\n"
            "                }\n"
            "\n"
            "                QCheckBox#check_set{\n"
            "                  color: rgb(0, 0, 0);\n"
            "                }\n"
            "        ")
        self.centralwidget = QtWidgets.QWidget(MainWindow_motor)
        self.centralwidget.setObjectName("centralwidget")
        self.gridLayout_9 = QtWidgets.QGridLayout(self.centralwidget)
        self.gridLayout_9.setObjectName("gridLayout_9")
        self.PyDMPushButton_stop = PyDMPushButton(self.centralwidget)
        self.PyDMPushButton_stop.setToolTip("")
        self.PyDMPushButton_stop.setObjectName("PyDMPushButton_stop")
        self.gridLayout_9.addWidget(self.PyDMPushButton_stop, 2, 2, 1, 1)
        self.PyDMPushButton_move = PyDMPushButton(self.centralwidget)
        self.PyDMPushButton_move.setToolTip("")
        self.PyDMPushButton_move.setObjectName("PyDMPushButton_move")
        self.gridLayout_9.addWidget(self.PyDMPushButton_move, 2, 0, 1, 1)
        self.PyDMDrawingCircle = PyDMDrawingCircle(self.centralwidget)
        self.PyDMDrawingCircle.setToolTip("")
        self.PyDMDrawingCircle.setObjectName("PyDMDrawingCircle")
        self.gridLayout_9.addWidget(self.PyDMDrawingCircle, 2, 1, 1, 1)
        self.msg_error = QtWidgets.QLabel(self.centralwidget)
        self.msg_error.setObjectName("msg_error")
        self.gridLayout_9.addWidget(self.msg_error, 3, 0, 1, 3)
        self.gridLayout_8 = QtWidgets.QGridLayout()
        self.gridLayout_8.setObjectName("gridLayout_8")
        self.gridLayout_2 = QtWidgets.QGridLayout()
        self.gridLayout_2.setObjectName("gridLayout_2")
        self.label_2 = QtWidgets.QLabel(self.centralwidget)
        self.label_2.setObjectName("label_2")
        self.gridLayout_2.addWidget(self.label_2, 0, 0, 1, 1,
                                    QtCore.Qt.AlignHCenter)
        self.dSB_s = QtWidgets.QDoubleSpinBox(self.centralwidget)
        self.dSB_s.setMinimum(0.1)
        self.dSB_s.setMaximum(50.0)
        self.dSB_s.setSingleStep(0.1)
        self.dSB_s.setObjectName("dSB_s")
        self.gridLayout_2.addWidget(self.dSB_s, 1, 0, 1, 1)
        self.gridLayout_8.addLayout(self.gridLayout_2, 0, 0, 1, 1)
        self.gridLayout = QtWidgets.QGridLayout()
        self.gridLayout.setObjectName("gridLayout")
        self.label = QtWidgets.QLabel(self.centralwidget)
        self.label.setObjectName("label")
        self.gridLayout.addWidget(self.label, 0, 0, 1, 1,
                                  QtCore.Qt.AlignHCenter)
        self.dSB_accl = QtWidgets.QDoubleSpinBox(self.centralwidget)
        self.dSB_accl.setMinimum(0.1)
        self.dSB_accl.setMaximum(200.0)
        self.dSB_accl.setSingleStep(0.1)
        self.dSB_accl.setObjectName("dSB_accl")
        self.gridLayout.addWidget(self.dSB_accl, 1, 0, 1, 1)
        self.gridLayout_8.addLayout(self.gridLayout, 0, 1, 1, 1)
        self.gridLayout_3 = QtWidgets.QGridLayout()
        self.gridLayout_3.setObjectName("gridLayout_3")
        self.label_4 = QtWidgets.QLabel(self.centralwidget)
        self.label_4.setObjectName("label_4")
        self.gridLayout_3.addWidget(self.label_4, 0, 0, 1, 1,
                                    QtCore.Qt.AlignHCenter)
        self.dSB_reduction = QtWidgets.QDoubleSpinBox(self.centralwidget)
        self.dSB_reduction.setMinimum(1.0)
        self.dSB_reduction.setMaximum(100000.0)
        self.dSB_reduction.setProperty("value", 8000.0)
        self.dSB_reduction.setObjectName("dSB_reduction")
        self.gridLayout_3.addWidget(self.dSB_reduction, 1, 0, 1, 1)
        self.gridLayout_8.addLayout(self.gridLayout_3, 1, 0, 1, 1)
        self.gridLayout_4 = QtWidgets.QGridLayout()
        self.gridLayout_4.setObjectName("gridLayout_4")
        self.label_5 = QtWidgets.QLabel(self.centralwidget)
        self.label_5.setObjectName("label_5")
        self.gridLayout_4.addWidget(self.label_5, 0, 0, 1, 1,
                                    QtCore.Qt.AlignHCenter)
        self.dSB_eff = QtWidgets.QDoubleSpinBox(self.centralwidget)
        self.dSB_eff.setMinimum(1.0)
        self.dSB_eff.setMaximum(100.0)
        self.dSB_eff.setSingleStep(0.1)
        self.dSB_eff.setProperty("value", 100.0)
        self.dSB_eff.setObjectName("dSB_eff")
        self.gridLayout_4.addWidget(self.dSB_eff, 1, 0, 1, 1)
        self.gridLayout_8.addLayout(self.gridLayout_4, 1, 1, 1, 1)
        self.gridLayout_5 = QtWidgets.QGridLayout()
        self.gridLayout_5.setObjectName("gridLayout_5")
        self.label_3 = QtWidgets.QLabel(self.centralwidget)
        self.label_3.setObjectName("label_3")
        self.gridLayout_5.addWidget(self.label_3, 0, 0, 1, 1,
                                    QtCore.Qt.AlignHCenter)
        self.cb_Dir = QtWidgets.QComboBox(self.centralwidget)
        self.cb_Dir.setObjectName("cb_Dir")
        self.cb_Dir.addItem("")
        self.cb_Dir.addItem("")
        self.gridLayout_5.addWidget(self.cb_Dir, 1, 0, 1, 1)
        self.gridLayout_8.addLayout(self.gridLayout_5, 2, 0, 1, 2)
        self.label_6 = QtWidgets.QLabel(self.centralwidget)
        self.label_6.setObjectName("label_6")
        self.gridLayout_8.addWidget(self.label_6, 3, 0, 1, 2,
                                    QtCore.Qt.AlignHCenter)
        self.gridLayout_6 = QtWidgets.QGridLayout()
        self.gridLayout_6.setObjectName("gridLayout_6")
        self.dSB_gpa = QtWidgets.QDoubleSpinBox(self.centralwidget)
        self.dSB_gpa.setMaximum(200.0)
        self.dSB_gpa.setSingleStep(0.01)
        self.dSB_gpa.setObjectName("dSB_gpa")
        self.gridLayout_6.addWidget(self.dSB_gpa, 0, 0, 1, 1)
        self.checkBox = QtWidgets.QCheckBox(self.centralwidget)
        self.checkBox.setChecked(True)
        self.checkBox.setObjectName("checkBox")
        self.gridLayout_6.addWidget(self.checkBox, 0, 1, 1, 1)
        self.gridLayout_8.addLayout(self.gridLayout_6, 4, 0, 1, 2)
        self.label_7 = QtWidgets.QLabel(self.centralwidget)
        self.label_7.setObjectName("label_7")
        self.gridLayout_8.addWidget(self.label_7, 5, 0, 1, 2,
                                    QtCore.Qt.AlignHCenter)
        self.gridLayout_7 = QtWidgets.QGridLayout()
        self.gridLayout_7.setObjectName("gridLayout_7")
        self.dSB_graus = QtWidgets.QDoubleSpinBox(self.centralwidget)
        self.dSB_graus.setMinimum(-1000.0)
        self.dSB_graus.setMaximum(1000.0)
        self.dSB_graus.setSingleStep(0.1)
        self.dSB_graus.setProperty("value", 1.0)
        self.dSB_graus.setObjectName("dSB_graus")
        self.gridLayout_7.addWidget(self.dSB_graus, 0, 0, 1, 1)
        self.checkBox_2 = QtWidgets.QCheckBox(self.centralwidget)
        self.checkBox_2.setObjectName("checkBox_2")
        self.gridLayout_7.addWidget(self.checkBox_2, 0, 1, 1, 1)
        self.gridLayout_8.addLayout(self.gridLayout_7, 6, 0, 1, 2)
        self.gridLayout_9.addLayout(self.gridLayout_8, 1, 0, 1, 3)
        self.PyDMPushButton_restart = PyDMPushButton(self.centralwidget)
        self.PyDMPushButton_restart.setMaximumSize(QtCore.QSize(60, 20))
        self.PyDMPushButton_restart.setToolTip("")
        self.PyDMPushButton_restart.setObjectName("PyDMPushButton_restart")
        self.gridLayout_9.addWidget(self.PyDMPushButton_restart, 0, 2, 1, 1,
                                    QtCore.Qt.AlignRight)
        MainWindow_motor.setCentralWidget(self.centralwidget)
        self.menubar = QtWidgets.QMenuBar(MainWindow_motor)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 234, 20))
        self.menubar.setObjectName("menubar")
        MainWindow_motor.setMenuBar(self.menubar)
        self.statusbar = QtWidgets.QStatusBar(MainWindow_motor)
        self.statusbar.setObjectName("statusbar")
        MainWindow_motor.setStatusBar(self.statusbar)

        self.retranslateUi(MainWindow_motor)
        self.cb_Dir.setCurrentIndex(0)
        QtCore.QMetaObject.connectSlotsByName(MainWindow_motor)
示例#11
0
class Ui_MainWindow_motor(object):
    def setupUi(self, MainWindow_motor):
        MainWindow_motor.setObjectName("MainWindow_motor")
        MainWindow_motor.resize(234, 418)
        MainWindow_motor.setMinimumSize(QtCore.QSize(234, 418))
        MainWindow_motor.setMaximumSize(QtCore.QSize(234, 418))
        MainWindow_motor.setStyleSheet(
            "\n"
            "                QFrame#frame_motor > PyDMLabel{\n"
            "                  color: rgb(255, 255, 255);\n"
            "                }\n"
            "\n"
            "                QPushButton#PyDMPushButton_stop{\n"
            "                  color: rgb(255, 0, 0);\n"
            "                }\n"
            "\n"
            "                QFrame#frame_motor{\n"
            "                  background-color: rgb(20, 20, 20);\n"
            "                }\n"
            "\n"
            "                QFrame#frame_controls{\n"
            "                  background-color: rgb(255, 255, 255);\n"
            "                }\n"
            "\n"
            "                QCheckBox#check_set{\n"
            "                  color: rgb(0, 0, 0);\n"
            "                }\n"
            "        ")
        self.centralwidget = QtWidgets.QWidget(MainWindow_motor)
        self.centralwidget.setObjectName("centralwidget")
        self.gridLayout_9 = QtWidgets.QGridLayout(self.centralwidget)
        self.gridLayout_9.setObjectName("gridLayout_9")
        self.PyDMPushButton_stop = PyDMPushButton(self.centralwidget)
        self.PyDMPushButton_stop.setToolTip("")
        self.PyDMPushButton_stop.setObjectName("PyDMPushButton_stop")
        self.gridLayout_9.addWidget(self.PyDMPushButton_stop, 2, 2, 1, 1)
        self.PyDMPushButton_move = PyDMPushButton(self.centralwidget)
        self.PyDMPushButton_move.setToolTip("")
        self.PyDMPushButton_move.setObjectName("PyDMPushButton_move")
        self.gridLayout_9.addWidget(self.PyDMPushButton_move, 2, 0, 1, 1)
        self.PyDMDrawingCircle = PyDMDrawingCircle(self.centralwidget)
        self.PyDMDrawingCircle.setToolTip("")
        self.PyDMDrawingCircle.setObjectName("PyDMDrawingCircle")
        self.gridLayout_9.addWidget(self.PyDMDrawingCircle, 2, 1, 1, 1)
        self.msg_error = QtWidgets.QLabel(self.centralwidget)
        self.msg_error.setObjectName("msg_error")
        self.gridLayout_9.addWidget(self.msg_error, 3, 0, 1, 3)
        self.gridLayout_8 = QtWidgets.QGridLayout()
        self.gridLayout_8.setObjectName("gridLayout_8")
        self.gridLayout_2 = QtWidgets.QGridLayout()
        self.gridLayout_2.setObjectName("gridLayout_2")
        self.label_2 = QtWidgets.QLabel(self.centralwidget)
        self.label_2.setObjectName("label_2")
        self.gridLayout_2.addWidget(self.label_2, 0, 0, 1, 1,
                                    QtCore.Qt.AlignHCenter)
        self.dSB_s = QtWidgets.QDoubleSpinBox(self.centralwidget)
        self.dSB_s.setMinimum(0.1)
        self.dSB_s.setMaximum(50.0)
        self.dSB_s.setSingleStep(0.1)
        self.dSB_s.setObjectName("dSB_s")
        self.gridLayout_2.addWidget(self.dSB_s, 1, 0, 1, 1)
        self.gridLayout_8.addLayout(self.gridLayout_2, 0, 0, 1, 1)
        self.gridLayout = QtWidgets.QGridLayout()
        self.gridLayout.setObjectName("gridLayout")
        self.label = QtWidgets.QLabel(self.centralwidget)
        self.label.setObjectName("label")
        self.gridLayout.addWidget(self.label, 0, 0, 1, 1,
                                  QtCore.Qt.AlignHCenter)
        self.dSB_accl = QtWidgets.QDoubleSpinBox(self.centralwidget)
        self.dSB_accl.setMinimum(0.1)
        self.dSB_accl.setMaximum(200.0)
        self.dSB_accl.setSingleStep(0.1)
        self.dSB_accl.setObjectName("dSB_accl")
        self.gridLayout.addWidget(self.dSB_accl, 1, 0, 1, 1)
        self.gridLayout_8.addLayout(self.gridLayout, 0, 1, 1, 1)
        self.gridLayout_3 = QtWidgets.QGridLayout()
        self.gridLayout_3.setObjectName("gridLayout_3")
        self.label_4 = QtWidgets.QLabel(self.centralwidget)
        self.label_4.setObjectName("label_4")
        self.gridLayout_3.addWidget(self.label_4, 0, 0, 1, 1,
                                    QtCore.Qt.AlignHCenter)
        self.dSB_reduction = QtWidgets.QDoubleSpinBox(self.centralwidget)
        self.dSB_reduction.setMinimum(1.0)
        self.dSB_reduction.setMaximum(100000.0)
        self.dSB_reduction.setProperty("value", 8000.0)
        self.dSB_reduction.setObjectName("dSB_reduction")
        self.gridLayout_3.addWidget(self.dSB_reduction, 1, 0, 1, 1)
        self.gridLayout_8.addLayout(self.gridLayout_3, 1, 0, 1, 1)
        self.gridLayout_4 = QtWidgets.QGridLayout()
        self.gridLayout_4.setObjectName("gridLayout_4")
        self.label_5 = QtWidgets.QLabel(self.centralwidget)
        self.label_5.setObjectName("label_5")
        self.gridLayout_4.addWidget(self.label_5, 0, 0, 1, 1,
                                    QtCore.Qt.AlignHCenter)
        self.dSB_eff = QtWidgets.QDoubleSpinBox(self.centralwidget)
        self.dSB_eff.setMinimum(1.0)
        self.dSB_eff.setMaximum(100.0)
        self.dSB_eff.setSingleStep(0.1)
        self.dSB_eff.setProperty("value", 100.0)
        self.dSB_eff.setObjectName("dSB_eff")
        self.gridLayout_4.addWidget(self.dSB_eff, 1, 0, 1, 1)
        self.gridLayout_8.addLayout(self.gridLayout_4, 1, 1, 1, 1)
        self.gridLayout_5 = QtWidgets.QGridLayout()
        self.gridLayout_5.setObjectName("gridLayout_5")
        self.label_3 = QtWidgets.QLabel(self.centralwidget)
        self.label_3.setObjectName("label_3")
        self.gridLayout_5.addWidget(self.label_3, 0, 0, 1, 1,
                                    QtCore.Qt.AlignHCenter)
        self.cb_Dir = QtWidgets.QComboBox(self.centralwidget)
        self.cb_Dir.setObjectName("cb_Dir")
        self.cb_Dir.addItem("")
        self.cb_Dir.addItem("")
        self.gridLayout_5.addWidget(self.cb_Dir, 1, 0, 1, 1)
        self.gridLayout_8.addLayout(self.gridLayout_5, 2, 0, 1, 2)
        self.label_6 = QtWidgets.QLabel(self.centralwidget)
        self.label_6.setObjectName("label_6")
        self.gridLayout_8.addWidget(self.label_6, 3, 0, 1, 2,
                                    QtCore.Qt.AlignHCenter)
        self.gridLayout_6 = QtWidgets.QGridLayout()
        self.gridLayout_6.setObjectName("gridLayout_6")
        self.dSB_gpa = QtWidgets.QDoubleSpinBox(self.centralwidget)
        self.dSB_gpa.setMaximum(200.0)
        self.dSB_gpa.setSingleStep(0.01)
        self.dSB_gpa.setObjectName("dSB_gpa")
        self.gridLayout_6.addWidget(self.dSB_gpa, 0, 0, 1, 1)
        self.checkBox = QtWidgets.QCheckBox(self.centralwidget)
        self.checkBox.setChecked(True)
        self.checkBox.setObjectName("checkBox")
        self.gridLayout_6.addWidget(self.checkBox, 0, 1, 1, 1)
        self.gridLayout_8.addLayout(self.gridLayout_6, 4, 0, 1, 2)
        self.label_7 = QtWidgets.QLabel(self.centralwidget)
        self.label_7.setObjectName("label_7")
        self.gridLayout_8.addWidget(self.label_7, 5, 0, 1, 2,
                                    QtCore.Qt.AlignHCenter)
        self.gridLayout_7 = QtWidgets.QGridLayout()
        self.gridLayout_7.setObjectName("gridLayout_7")
        self.dSB_graus = QtWidgets.QDoubleSpinBox(self.centralwidget)
        self.dSB_graus.setMinimum(-1000.0)
        self.dSB_graus.setMaximum(1000.0)
        self.dSB_graus.setSingleStep(0.1)
        self.dSB_graus.setProperty("value", 1.0)
        self.dSB_graus.setObjectName("dSB_graus")
        self.gridLayout_7.addWidget(self.dSB_graus, 0, 0, 1, 1)
        self.checkBox_2 = QtWidgets.QCheckBox(self.centralwidget)
        self.checkBox_2.setObjectName("checkBox_2")
        self.gridLayout_7.addWidget(self.checkBox_2, 0, 1, 1, 1)
        self.gridLayout_8.addLayout(self.gridLayout_7, 6, 0, 1, 2)
        self.gridLayout_9.addLayout(self.gridLayout_8, 1, 0, 1, 3)
        self.PyDMPushButton_restart = PyDMPushButton(self.centralwidget)
        self.PyDMPushButton_restart.setMaximumSize(QtCore.QSize(60, 20))
        self.PyDMPushButton_restart.setToolTip("")
        self.PyDMPushButton_restart.setObjectName("PyDMPushButton_restart")
        self.gridLayout_9.addWidget(self.PyDMPushButton_restart, 0, 2, 1, 1,
                                    QtCore.Qt.AlignRight)
        MainWindow_motor.setCentralWidget(self.centralwidget)
        self.menubar = QtWidgets.QMenuBar(MainWindow_motor)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 234, 20))
        self.menubar.setObjectName("menubar")
        MainWindow_motor.setMenuBar(self.menubar)
        self.statusbar = QtWidgets.QStatusBar(MainWindow_motor)
        self.statusbar.setObjectName("statusbar")
        MainWindow_motor.setStatusBar(self.statusbar)

        self.retranslateUi(MainWindow_motor)
        self.cb_Dir.setCurrentIndex(0)
        QtCore.QMetaObject.connectSlotsByName(MainWindow_motor)

    def retranslateUi(self, MainWindow_motor):
        _translate = QtCore.QCoreApplication.translate
        MainWindow_motor.setWindowTitle(
            _translate("MainWindow_motor", "Motor Interface"))
        self.PyDMPushButton_stop.setWhatsThis(
            _translate(
                "MainWindow_motor", "\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_stop.setText(_translate("MainWindow_motor",
                                                    "Stop"))
        self.PyDMPushButton_move.setWhatsThis(
            _translate(
                "MainWindow_motor", "\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_move.setText(_translate("MainWindow_motor",
                                                    "Move"))
        self.PyDMDrawingCircle.setWhatsThis(
            _translate(
                "MainWindow_motor", "\n"
                "    A widget with a circle 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.msg_error.setText(_translate("MainWindow_motor", "Message "))
        self.label_2.setText(_translate("MainWindow_motor",
                                        "Velocity (rev/s)"))
        self.label.setText(_translate("MainWindow_motor", "Accel.Time (s)"))
        self.label_4.setText(_translate("MainWindow_motor", "GB Reduction"))
        self.label_5.setText(
            _translate("MainWindow_motor", "GB efficiency (%)"))
        self.label_3.setText(_translate("MainWindow_motor", "Direction"))
        self.cb_Dir.setItemText(
            0, _translate("MainWindow_motor", "Positive : Tightening"))
        self.cb_Dir.setItemText(
            1, _translate("MainWindow_motor", "Negative : Loosening"))
        self.label_6.setText(
            _translate("MainWindow_motor", "Set desired pressure (GPa)"))
        self.checkBox.setText(_translate("MainWindow_motor", "Select to move"))
        self.label_7.setText(
            _translate("MainWindow_motor", "Set desired adjustment (°)"))
        self.checkBox_2.setText(
            _translate("MainWindow_motor", "Select to move"))
        self.PyDMPushButton_restart.setWhatsThis(
            _translate(
                "MainWindow_motor", "\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_restart.setText(
            _translate("MainWindow_motor", "Restart"))