Esempio n. 1
0
class Ui_Panel(object):
    def setupUi(self, Panel):
        Panel.setObjectName("Panel")
        Panel.resize(589, 452)
        self.gridLayout = QtGui.QGridLayout(Panel)
        self.gridLayout.setObjectName("gridLayout")
        self.counts1 = HugeDisplay(Panel)
        self.counts1.setMinimumSize(QtCore.QSize(0, 40))
        font = QtGui.QFont()
        font.setPointSize(36)
        self.counts1.setFont(font)
        self.counts1.setObjectName("counts1")
        self.gridLayout.addWidget(self.counts1, 0, 0, 1, 1)
        self.counts2 = HugeDisplay(Panel)
        self.counts2.setMinimumSize(QtCore.QSize(0, 40))
        font = QtGui.QFont()
        font.setPointSize(36)
        self.counts2.setFont(font)
        self.counts2.setObjectName("counts2")
        self.gridLayout.addWidget(self.counts2, 1, 0, 1, 1)
        self.formLayout = QtGui.QFormLayout()
        self.formLayout.setFieldGrowthPolicy(QtGui.QFormLayout.AllNonFixedFieldsGrow)
        self.formLayout.setObjectName("formLayout")
        self.label = QtGui.QLabel(Panel)
        self.label.setObjectName("label")
        self.formLayout.setWidget(0, QtGui.QFormLayout.LabelRole, self.label)
        self.t_range = QtGui.QSpinBox(Panel)
        self.t_range.setObjectName("t_range")
        self.formLayout.setWidget(0, QtGui.QFormLayout.FieldRole, self.t_range)
        self.gridLayout.addLayout(self.formLayout, 2, 0, 1, 1)
        spacerItem = QtGui.QSpacerItem(363, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.gridLayout.addItem(spacerItem, 2, 1, 1, 1)
        self.plot1 = TimeTracePlot(Panel)
        self.plot1.setMinimumSize(QtCore.QSize(350, 200))
        self.plot1.setObjectName("plot1")
        self.gridLayout.addWidget(self.plot1, 0, 1, 1, 1)
        self.plot2 = TimeTracePlot(Panel)
        self.plot2.setMinimumSize(QtCore.QSize(350, 200))
        self.plot2.setObjectName("plot2")
        self.gridLayout.addWidget(self.plot2, 1, 1, 1, 1)

        self.retranslateUi(Panel)
        QtCore.QObject.connect(self.t_range, QtCore.SIGNAL("valueChanged(int)"), self.plot1.set_display_time)
        QtCore.QObject.connect(self.t_range, QtCore.SIGNAL("valueChanged(int)"), self.plot2.set_display_time)
        QtCore.QMetaObject.connectSlotsByName(Panel)

    def retranslateUi(self, Panel):
        Panel.setWindowTitle(QtGui.QApplication.translate("Panel", "Form", None, QtGui.QApplication.UnicodeUTF8))
        self.counts1.setText(QtGui.QApplication.translate("Panel", "TextLabel", None, QtGui.QApplication.UnicodeUTF8))
        self.counts2.setText(QtGui.QApplication.translate("Panel", "TextLabel", None, QtGui.QApplication.UnicodeUTF8))
        self.label.setText(QtGui.QApplication.translate("Panel", "time span [s] (0: all time)", None, QtGui.QApplication.UnicodeUTF8))
Esempio n. 2
0
class Ui_Panel(object):
    def setupUi(self, Panel):
        Panel.setObjectName(_fromUtf8("Panel"))
        Panel.resize(495, 374)
        Panel.setWindowTitle(QtGui.QApplication.translate("Panel", "Form", None, QtGui.QApplication.UnicodeUTF8))
        self.verticalLayout = QtGui.QVBoxLayout(Panel)
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.counts = QtGui.QLabel(Panel)
        self.counts.setMinimumSize(QtCore.QSize(0, 40))
        font = QtGui.QFont()
        font.setPointSize(36)
        self.counts.setFont(font)
        self.counts.setText(QtGui.QApplication.translate("Panel", "TextLabel", None, QtGui.QApplication.UnicodeUTF8))
        self.counts.setObjectName(_fromUtf8("counts"))
        self.verticalLayout.addWidget(self.counts)
        self.plot = TimeTracePlot(Panel)
        self.plot.setMinimumSize(QtCore.QSize(0, 150))
        #self.plot.setFrameShape(QtGui.QFrame.StyledPanel)
        #self.plot.setFrameShadow(QtGui.QFrame.Raised)
        self.plot.setObjectName(_fromUtf8("plot"))
        self.verticalLayout.addWidget(self.plot)
        self.formLayout = QtGui.QFormLayout()
        self.formLayout.setObjectName(_fromUtf8("formLayout"))
        self.label = QtGui.QLabel(Panel)
        self.label.setText(QtGui.QApplication.translate("Panel", "time span [s] (0: all time)", None, QtGui.QApplication.UnicodeUTF8))
        self.label.setObjectName(_fromUtf8("label"))
        self.formLayout.setWidget(0, QtGui.QFormLayout.LabelRole, self.label)
        self.t_range = QtGui.QSpinBox(Panel)
        self.t_range.setObjectName(_fromUtf8("t_range"))
        self.formLayout.setWidget(0, QtGui.QFormLayout.FieldRole, self.t_range)
        self.label_2 = QtGui.QLabel(Panel)
        self.label_2.setText(QtGui.QApplication.translate("Panel", "integration time [ms]", None, QtGui.QApplication.UnicodeUTF8))
        self.label_2.setObjectName(_fromUtf8("label_2"))
        self.formLayout.setWidget(1, QtGui.QFormLayout.LabelRole, self.label_2)
        self.integration_time = QtGui.QSpinBox(Panel)
        self.integration_time.setObjectName(_fromUtf8("integration_time"))
        self.formLayout.setWidget(1, QtGui.QFormLayout.FieldRole, self.integration_time)
        self.verticalLayout.addLayout(self.formLayout)

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

    def retranslateUi(self, Panel):
        pass
Esempio n. 3
0
class Ui_Panel(object):
    def setupUi(self, Panel):
        Panel.setObjectName("Panel")
        Panel.resize(589, 452)
        self.gridLayout = QtGui.QGridLayout(Panel)
        self.gridLayout.setObjectName("gridLayout")
        self.counts1 = HugeDisplay(Panel)
        self.counts1.setMinimumSize(QtCore.QSize(0, 40))
        font = QtGui.QFont()
        font.setPointSize(36)
        self.counts1.setFont(font)
        self.counts1.setObjectName("counts1")
        self.gridLayout.addWidget(self.counts1, 0, 0, 1, 1)
        self.counts2 = HugeDisplay(Panel)
        self.counts2.setMinimumSize(QtCore.QSize(0, 40))
        font = QtGui.QFont()
        font.setPointSize(36)
        self.counts2.setFont(font)
        self.counts2.setObjectName("counts2")
        self.gridLayout.addWidget(self.counts2, 1, 0, 1, 1)
        self.formLayout = QtGui.QFormLayout()
        self.formLayout.setFieldGrowthPolicy(
            QtGui.QFormLayout.AllNonFixedFieldsGrow)
        self.formLayout.setObjectName("formLayout")
        self.label = QtGui.QLabel(Panel)
        self.label.setObjectName("label")
        self.formLayout.setWidget(0, QtGui.QFormLayout.LabelRole, self.label)
        self.t_range = QtGui.QSpinBox(Panel)
        self.t_range.setObjectName("t_range")
        self.formLayout.setWidget(0, QtGui.QFormLayout.FieldRole, self.t_range)
        self.gridLayout.addLayout(self.formLayout, 2, 0, 1, 1)
        spacerItem = QtGui.QSpacerItem(363, 20, QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Minimum)
        self.gridLayout.addItem(spacerItem, 2, 1, 1, 1)
        self.plot1 = TimeTracePlot(Panel)
        self.plot1.setMinimumSize(QtCore.QSize(350, 200))
        self.plot1.setObjectName("plot1")
        self.gridLayout.addWidget(self.plot1, 0, 1, 1, 1)
        self.plot2 = TimeTracePlot(Panel)
        self.plot2.setMinimumSize(QtCore.QSize(350, 200))
        self.plot2.setObjectName("plot2")
        self.gridLayout.addWidget(self.plot2, 1, 1, 1, 1)

        self.retranslateUi(Panel)
        QtCore.QObject.connect(self.t_range,
                               QtCore.SIGNAL("valueChanged(int)"),
                               self.plot1.set_display_time)
        QtCore.QObject.connect(self.t_range,
                               QtCore.SIGNAL("valueChanged(int)"),
                               self.plot2.set_display_time)
        QtCore.QMetaObject.connectSlotsByName(Panel)

    def retranslateUi(self, Panel):
        Panel.setWindowTitle(
            QtGui.QApplication.translate("Panel", "Form", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.counts1.setText(
            QtGui.QApplication.translate("Panel", "TextLabel", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.counts2.setText(
            QtGui.QApplication.translate("Panel", "TextLabel", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.label.setText(
            QtGui.QApplication.translate("Panel",
                                         "time span [s] (0: all time)", None,
                                         QtGui.QApplication.UnicodeUTF8))
Esempio n. 4
0
class Ui_Panel(object):
    def setupUi(self, Panel):
        Panel.setObjectName(_fromUtf8("Panel"))
        Panel.resize(518, 528)
        self.displayActualTemp = QtGui.QLineEdit(Panel)
        self.displayActualTemp.setGeometry(QtCore.QRect(70, 30, 71, 20))
        self.displayActualTemp.setObjectName(_fromUtf8("displayActualTemp"))
        self.TargetTemp_label = QtGui.QLabel(Panel)
        self.TargetTemp_label.setGeometry(QtCore.QRect(170, 10, 101, 16))
        self.TargetTemp_label.setObjectName(_fromUtf8("TargetTemp_label"))
        self.displayTargetTemp = QtGui.QLineEdit(Panel)
        self.displayTargetTemp.setGeometry(QtCore.QRect(180, 30, 71, 20))
        self.displayTargetTemp.setObjectName(_fromUtf8("displayTargetTemp"))
        self.ActualTemp_label = QtGui.QLabel(Panel)
        self.ActualTemp_label.setGeometry(QtCore.QRect(60, 10, 101, 16))
        self.ActualTemp_label.setObjectName(_fromUtf8("ActualTemp_label"))

        self.displayDFG = QtGui.QLineEdit(Panel)
        self.displayDFG.setGeometry(QtCore.QRect(150, 710, 113, 20))
        self.displayDFG.setObjectName(_fromUtf8("displayDFG"))
        self.DFG_label = QtGui.QLabel(Panel)
        self.DFG_label.setGeometry(QtCore.QRect(180, 690, 61, 16))
        self.DFG_label.setObjectName(_fromUtf8("DFG_label"))

        # self.line = QtGui.QFrame(Panel)
        # self.line.setGeometry(QtCore.QRect(-3, 170, 811, 20))
        # self.line.setFrameShape(QtGui.QFrame.HLine)
        # self.line.setFrameShadow(QtGui.QFrame.Sunken)
        # self.line.setObjectName(_fromUtf8("line"))

        self.cleargraphButton2 = QtGui.QPushButton(Panel)
        self.cleargraphButton2.setGeometry(QtCore.QRect(270, 30, 151, 23))
        self.cleargraphButton2.setObjectName(_fromUtf8("cleargraphButton2"))
        self.cleargraphButton3 = QtGui.QPushButton(Panel)
        self.cleargraphButton3.setGeometry(QtCore.QRect(300, 705, 151, 23))
        self.cleargraphButton3.setObjectName(_fromUtf8("cleargraphButton3"))
        self.cleargraphButton4 = QtGui.QPushButton(Panel)
        self.cleargraphButton4.setGeometry(QtCore.QRect(300, 705, 151, 23))
        self.cleargraphButton4.setObjectName(_fromUtf8("cleargraphButton4"))

        self.msgBox = QtGui.QMessageBox()
        self.msgBox.setWindowTitle('Warning')
        self.msgBox.setText(
            'Reset temperature to zero voltage temperature before \n starting anything else for the controller!!'
        )
        self.msgBox.show()

        # self.gridLayout.addWidget(self.plot1, 0, 1, 1, 1)
        self.plot2 = TimeTracePlot(Panel)
        self.plot2.setMinimumSize(QtCore.QSize(250, 200))
        self.plot2.setGeometry(QtCore.QRect(60, 60, 501, 301))
        self.plot2.setObjectName("plot2")
        # self.plot2.bottom_axis.title = 'Temp [deg]'
        self.plot2.left_axis.title = 'Power [uW]'

        self.plot3 = TimeTracePlot(Panel)
        self.plot3.setMinimumSize(QtCore.QSize(250, 200))
        self.plot3.setGeometry(QtCore.QRect(60, 355, 501, 301))
        self.plot3.setObjectName("plot3")
        # self.plot2.bottom_axis.title = 'Temp [deg]'
        self.plot3.left_axis.title = 'Temp [deg]'
        # self.plot2.marker = 'plus'
        # self.gridLayout.addWidget(self.plot2, 1, 1, 1, 1)

        self.plot4 = TimeTracePlot(Panel)
        self.plot4.setMinimumSize(QtCore.QSize(250, 200))
        self.plot4.setGeometry(QtCore.QRect(60, 655, 501, 301))
        self.plot4.setObjectName("plot4")
        # self.plot2.bottom_axis.title = 'Temp [deg]'
        self.plot4.left_axis.title = 'Power 637nm [uW]'
        # self.plot2.marker = 'plus'
        # self.gridLayout.addWidget(self.plot2, 1, 1, 1, 1)

        self.retranslateUi(Panel)
        # QtCore.QObject.connect(self.t_range, QtCore.SIGNAL("valueChanged(int)"), self.plot1.set_display_time)
        # QtCore.QObject.connect(self.t_range, QtCore.SIGNAL("valueChanged(int)"), self.plot2.set_display_time)
        QtCore.QMetaObject.connectSlotsByName(Panel)

    def retranslateUi(self, Panel):
        Panel.setWindowTitle(_translate("Panel", "Widget", None))

        self.TargetTemp_label.setText(
            _translate("Panel", "Target Temperature", None))
        self.ActualTemp_label.setText(
            _translate("Panel", "Actual Temperature", None))
        self.DFG_label.setText(_translate("Panel", "DFG power", None))

        self.cleargraphButton2.setText(
            _translate("Panel", "Clear RT Graph", None))
        self.cleargraphButton3.setText(
            _translate("Panel", "Clear Temp Graph", None))
        self.cleargraphButton4.setText(
            _translate("Panel", "Clear 637 Graph", None))