Exemplo n.º 1
0
class Ui_HP34401ADialog(object):
    def setupUi(self, HP34401ADialog):
        HP34401ADialog.setObjectName("HP34401ADialog")
        HP34401ADialog.resize(1397, 1004)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Ignored)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            HP34401ADialog.sizePolicy().hasHeightForWidth())
        HP34401ADialog.setSizePolicy(sizePolicy)
        HP34401ADialog.setStyleSheet("background-color: rgb(0, 0, 0);")
        HP34401ADialog.setSizeGripEnabled(True)
        self.gridLayout_3 = QtWidgets.QGridLayout(HP34401ADialog)
        self.gridLayout_3.setObjectName("gridLayout_3")
        self.ExitpushButton = QtWidgets.QPushButton(HP34401ADialog)
        sizePolicy = QtWidgets.QSizePolicy(
            QtWidgets.QSizePolicy.MinimumExpanding,
            QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.ExitpushButton.sizePolicy().hasHeightForWidth())
        self.ExitpushButton.setSizePolicy(sizePolicy)
        self.ExitpushButton.setMinimumSize(QtCore.QSize(0, 50))
        self.ExitpushButton.setMaximumSize(QtCore.QSize(800, 90))
        self.ExitpushButton.setStyleSheet(
            "background-color: rgb(129, 129, 129);")
        self.ExitpushButton.setObjectName("ExitpushButton")
        self.gridLayout_3.addWidget(self.ExitpushButton, 2, 2, 1, 1)
        self.statustextBrowser = QtWidgets.QTextBrowser(HP34401ADialog)
        sizePolicy = QtWidgets.QSizePolicy(
            QtWidgets.QSizePolicy.MinimumExpanding,
            QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.statustextBrowser.sizePolicy().hasHeightForWidth())
        self.statustextBrowser.setSizePolicy(sizePolicy)
        self.statustextBrowser.setMaximumSize(QtCore.QSize(700, 90))
        self.statustextBrowser.setStyleSheet(
            "background-color: rgb(158, 158, 158);\n"
            "background-color: rgb(7, 142, 198);")
        self.statustextBrowser.setFrameShape(QtWidgets.QFrame.Box)
        self.statustextBrowser.setFrameShadow(QtWidgets.QFrame.Raised)
        self.statustextBrowser.setLineWidth(1)
        self.statustextBrowser.setObjectName("statustextBrowser")
        self.gridLayout_3.addWidget(self.statustextBrowser, 1, 0, 1, 1)
        self.frame_3 = QtWidgets.QFrame(HP34401ADialog)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.frame_3.sizePolicy().hasHeightForWidth())
        self.frame_3.setSizePolicy(sizePolicy)
        self.frame_3.setMinimumSize(QtCore.QSize(0, 0))
        self.frame_3.setMaximumSize(QtCore.QSize(700, 900))
        self.frame_3.setStyleSheet("background-color: rgb(0, 85, 127);\n"
                                   "color: rgb(255, 255, 131);")
        self.frame_3.setFrameShape(QtWidgets.QFrame.Box)
        self.frame_3.setFrameShadow(QtWidgets.QFrame.Raised)
        self.frame_3.setLineWidth(4)
        self.frame_3.setObjectName("frame_3")
        self.verticalLayout = QtWidgets.QVBoxLayout(self.frame_3)
        self.verticalLayout.setObjectName("verticalLayout")
        self.frame_6 = QtWidgets.QFrame(self.frame_3)
        self.frame_6.setStyleSheet("background-color: rgb(0, 85, 127);\n"
                                   "color: rgb(0, 255, 255);")
        self.frame_6.setFrameShape(QtWidgets.QFrame.Box)
        self.frame_6.setFrameShadow(QtWidgets.QFrame.Raised)
        self.frame_6.setLineWidth(2)
        self.frame_6.setObjectName("frame_6")
        self.gridLayout_2 = QtWidgets.QGridLayout(self.frame_6)
        self.gridLayout_2.setObjectName("gridLayout_2")
        self.NplcLabel = QtWidgets.QLabel(self.frame_6)
        self.NplcLabel.setMinimumSize(QtCore.QSize(0, 25))
        self.NplcLabel.setObjectName("NplcLabel")
        self.gridLayout_2.addWidget(self.NplcLabel, 6, 0, 1, 1)
        spacerItem = QtWidgets.QSpacerItem(20, 50,
                                           QtWidgets.QSizePolicy.Minimum,
                                           QtWidgets.QSizePolicy.Expanding)
        self.gridLayout_2.addItem(spacerItem, 14, 1, 1, 1)
        self.TrigdelayLabel = QtWidgets.QLabel(self.frame_6)
        self.TrigdelayLabel.setMinimumSize(QtCore.QSize(0, 25))
        self.TrigdelayLabel.setObjectName("TrigdelayLabel")
        self.gridLayout_2.addWidget(self.TrigdelayLabel, 16, 0, 1, 1)
        self.PeriodapertureCombobox = QtWidgets.QComboBox(self.frame_6)
        self.PeriodapertureCombobox.setMinimumSize(QtCore.QSize(100, 25))
        self.PeriodapertureCombobox.setObjectName("PeriodapertureCombobox")
        self.gridLayout_2.addWidget(self.PeriodapertureCombobox, 8, 1, 1, 1,
                                    QtCore.Qt.AlignLeft)
        self.AutozeroCombobox = QtWidgets.QComboBox(self.frame_6)
        self.AutozeroCombobox.setMinimumSize(QtCore.QSize(100, 25))
        self.AutozeroCombobox.setObjectName("AutozeroCombobox")
        self.gridLayout_2.addWidget(self.AutozeroCombobox, 3, 1, 1, 1,
                                    QtCore.Qt.AlignLeft)
        self.AcbwLabel = QtWidgets.QLabel(self.frame_6)
        self.AcbwLabel.setMinimumSize(QtCore.QSize(0, 25))
        self.AcbwLabel.setObjectName("AcbwLabel")
        self.gridLayout_2.addWidget(self.AcbwLabel, 11, 0, 1, 1)
        self.ImpedanceCombobox = QtWidgets.QComboBox(self.frame_6)
        self.ImpedanceCombobox.setMinimumSize(QtCore.QSize(100, 25))
        self.ImpedanceCombobox.setToolTipDuration(-1)
        self.ImpedanceCombobox.setObjectName("ImpedanceCombobox")
        self.gridLayout_2.addWidget(self.ImpedanceCombobox, 2, 1, 1, 1,
                                    QtCore.Qt.AlignLeft)
        self.AutozeroLabel = QtWidgets.QLabel(self.frame_6)
        self.AutozeroLabel.setMinimumSize(QtCore.QSize(0, 25))
        self.AutozeroLabel.setObjectName("AutozeroLabel")
        self.gridLayout_2.addWidget(self.AutozeroLabel, 3, 0, 1, 1)
        self.RangeCombobox = QtWidgets.QComboBox(self.frame_6)
        self.RangeCombobox.setMinimumSize(QtCore.QSize(100, 25))
        self.RangeCombobox.setObjectName("RangeCombobox")
        self.gridLayout_2.addWidget(self.RangeCombobox, 4, 1, 1, 1,
                                    QtCore.Qt.AlignLeft)
        self.TrigsrcLabel = QtWidgets.QLabel(self.frame_6)
        self.TrigsrcLabel.setMinimumSize(QtCore.QSize(0, 25))
        self.TrigsrcLabel.setObjectName("TrigsrcLabel")
        self.gridLayout_2.addWidget(self.TrigsrcLabel, 13, 0, 1, 1)
        self.ImpedanceLabel = QtWidgets.QLabel(self.frame_6)
        self.ImpedanceLabel.setMinimumSize(QtCore.QSize(0, 25))
        self.ImpedanceLabel.setObjectName("ImpedanceLabel")
        self.gridLayout_2.addWidget(self.ImpedanceLabel, 2, 0, 1, 1)
        self.NplcCombobox = QtWidgets.QComboBox(self.frame_6)
        self.NplcCombobox.setMinimumSize(QtCore.QSize(100, 25))
        self.NplcCombobox.setObjectName("NplcCombobox")
        self.gridLayout_2.addWidget(self.NplcCombobox, 6, 1, 1, 1,
                                    QtCore.Qt.AlignLeft)
        self.MathCombobox = QtWidgets.QComboBox(self.frame_6)
        self.MathCombobox.setMinimumSize(QtCore.QSize(100, 25))
        self.MathCombobox.setObjectName("MathCombobox")
        self.gridLayout_2.addWidget(self.MathCombobox, 12, 1, 1, 1,
                                    QtCore.Qt.AlignLeft)
        self.TriggerDelaySpinbox = QtWidgets.QSpinBox(self.frame_6)
        self.TriggerDelaySpinbox.setObjectName("TriggerDelaySpinbox")
        self.gridLayout_2.addWidget(self.TriggerDelaySpinbox, 16, 1, 1, 1)
        self.ResolutionLabel = QtWidgets.QLabel(self.frame_6)
        self.ResolutionLabel.setMinimumSize(QtCore.QSize(0, 25))
        self.ResolutionLabel.setObjectName("ResolutionLabel")
        self.gridLayout_2.addWidget(self.ResolutionLabel, 5, 0, 1, 1)
        self.scaleLabel_2 = QtWidgets.QLabel(self.frame_6)
        font = QtGui.QFont()
        font.setPointSize(10)
        font.setBold(True)
        font.setWeight(75)
        self.scaleLabel_2.setFont(font)
        self.scaleLabel_2.setAlignment(QtCore.Qt.AlignCenter)
        self.scaleLabel_2.setObjectName("scaleLabel_2")
        self.gridLayout_2.addWidget(self.scaleLabel_2, 0, 0, 1, 1,
                                    QtCore.Qt.AlignLeft)
        self.ACbandwidthCombobox = QtWidgets.QComboBox(self.frame_6)
        self.ACbandwidthCombobox.setMinimumSize(QtCore.QSize(100, 25))
        self.ACbandwidthCombobox.setObjectName("ACbandwidthCombobox")
        self.gridLayout_2.addWidget(self.ACbandwidthCombobox, 11, 1, 1, 1,
                                    QtCore.Qt.AlignLeft)
        self.RangeLabel = QtWidgets.QLabel(self.frame_6)
        self.RangeLabel.setMinimumSize(QtCore.QSize(0, 25))
        self.RangeLabel.setObjectName("RangeLabel")
        self.gridLayout_2.addWidget(self.RangeLabel, 4, 0, 1, 1)
        self.ResolutionCombobox = QtWidgets.QComboBox(self.frame_6)
        self.ResolutionCombobox.setMinimumSize(QtCore.QSize(100, 25))
        self.ResolutionCombobox.setObjectName("ResolutionCombobox")
        self.gridLayout_2.addWidget(self.ResolutionCombobox, 5, 1, 1, 1,
                                    QtCore.Qt.AlignLeft)
        self.FreqapertureLabel = QtWidgets.QLabel(self.frame_6)
        self.FreqapertureLabel.setMinimumSize(QtCore.QSize(0, 25))
        self.FreqapertureLabel.setObjectName("FreqapertureLabel")
        self.gridLayout_2.addWidget(self.FreqapertureLabel, 7, 0, 1, 1)
        self.TrigsrcCombobox = QtWidgets.QComboBox(self.frame_6)
        self.TrigsrcCombobox.setMinimumSize(QtCore.QSize(100, 25))
        self.TrigsrcCombobox.setObjectName("TrigsrcCombobox")
        self.gridLayout_2.addWidget(self.TrigsrcCombobox, 13, 1, 1, 1,
                                    QtCore.Qt.AlignLeft)
        self.PeriodapertureLabel = QtWidgets.QLabel(self.frame_6)
        self.PeriodapertureLabel.setMinimumSize(QtCore.QSize(0, 25))
        self.PeriodapertureLabel.setObjectName("PeriodapertureLabel")
        self.gridLayout_2.addWidget(self.PeriodapertureLabel, 8, 0, 1, 1)
        self.FreqapertureCombobox = QtWidgets.QComboBox(self.frame_6)
        self.FreqapertureCombobox.setMinimumSize(QtCore.QSize(100, 25))
        self.FreqapertureCombobox.setObjectName("FreqapertureCombobox")
        self.gridLayout_2.addWidget(self.FreqapertureCombobox, 7, 1, 1, 1,
                                    QtCore.Qt.AlignLeft)
        self.MathLabel = QtWidgets.QLabel(self.frame_6)
        self.MathLabel.setMinimumSize(QtCore.QSize(0, 25))
        self.MathLabel.setObjectName("MathLabel")
        self.gridLayout_2.addWidget(self.MathLabel, 12, 0, 1, 1)
        self.verticalLayout.addWidget(self.frame_6)
        self.frame = QtWidgets.QFrame(self.frame_3)
        self.frame.setMinimumSize(QtCore.QSize(0, 300))
        self.frame.setFrameShape(QtWidgets.QFrame.Box)
        self.frame.setFrameShadow(QtWidgets.QFrame.Raised)
        self.frame.setLineWidth(2)
        self.frame.setObjectName("frame")
        self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.frame)
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        self.samplesSlider = QtWidgets.QSlider(self.frame)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.samplesSlider.sizePolicy().hasHeightForWidth())
        self.samplesSlider.setSizePolicy(sizePolicy)
        self.samplesSlider.setMinimumSize(QtCore.QSize(350, 40))
        self.samplesSlider.setStyleSheet(
            "background-color: rgb(7, 142, 198);\n"
            "background-color: qlineargradient(spread:pad, x1:0, y1:0, x2:1, y2:0, stop:0 rgba(0, 0, 0, 255), stop:1 rgba(255, 255, 255, 255));"
        )
        self.samplesSlider.setMaximum(100000)
        self.samplesSlider.setPageStep(1)
        self.samplesSlider.setProperty("value", 16)
        self.samplesSlider.setOrientation(QtCore.Qt.Horizontal)
        self.samplesSlider.setInvertedAppearance(False)
        self.samplesSlider.setInvertedControls(False)
        self.samplesSlider.setTickPosition(QtWidgets.QSlider.TicksAbove)
        self.samplesSlider.setTickInterval(2000)
        self.samplesSlider.setObjectName("samplesSlider")
        self.verticalLayout_2.addWidget(self.samplesSlider, 0,
                                        QtCore.Qt.AlignHCenter)
        self.sampledisplayLabel = QtWidgets.QLabel(self.frame)
        self.sampledisplayLabel.setObjectName("sampledisplayLabel")
        self.verticalLayout_2.addWidget(self.sampledisplayLabel, 0,
                                        QtCore.Qt.AlignHCenter)
        self.samplestartpushButton = QtWidgets.QPushButton(self.frame)
        self.samplestartpushButton.setMinimumSize(QtCore.QSize(300, 30))
        self.samplestartpushButton.setMaximumSize(QtCore.QSize(400, 16777215))
        self.samplestartpushButton.setObjectName("samplestartpushButton")
        self.verticalLayout_2.addWidget(self.samplestartpushButton, 0,
                                        QtCore.Qt.AlignHCenter)
        spacerItem1 = QtWidgets.QSpacerItem(20, 40,
                                            QtWidgets.QSizePolicy.Minimum,
                                            QtWidgets.QSizePolicy.Expanding)
        self.verticalLayout_2.addItem(spacerItem1)
        self.samplestoppushButton = QtWidgets.QPushButton(self.frame)
        self.samplestoppushButton.setMinimumSize(QtCore.QSize(300, 30))
        self.samplestoppushButton.setMaximumSize(QtCore.QSize(400, 16777215))
        self.samplestoppushButton.setStyleSheet("")
        self.samplestoppushButton.setObjectName("samplestoppushButton")
        self.verticalLayout_2.addWidget(self.samplestoppushButton, 0,
                                        QtCore.Qt.AlignHCenter)
        self.samplestakenLabel = QtWidgets.QLabel(self.frame)
        self.samplestakenLabel.setMinimumSize(QtCore.QSize(300, 25))
        font = QtGui.QFont()
        font.setFamily("Trebuchet MS")
        font.setPointSize(9)
        self.samplestakenLabel.setFont(font)
        self.samplestakenLabel.setText("")
        self.samplestakenLabel.setAlignment(QtCore.Qt.AlignLeading
                                            | QtCore.Qt.AlignLeft
                                            | QtCore.Qt.AlignVCenter)
        self.samplestakenLabel.setObjectName("samplestakenLabel")
        self.verticalLayout_2.addWidget(self.samplestakenLabel, 0,
                                        QtCore.Qt.AlignHCenter)
        self.samplestakenLabel_2 = QtWidgets.QLabel(self.frame)
        self.samplestakenLabel_2.setMinimumSize(QtCore.QSize(300, 25))
        font = QtGui.QFont()
        font.setFamily("Trebuchet MS")
        font.setPointSize(9)
        self.samplestakenLabel_2.setFont(font)
        self.samplestakenLabel_2.setText("")
        self.samplestakenLabel_2.setAlignment(QtCore.Qt.AlignLeading
                                              | QtCore.Qt.AlignLeft
                                              | QtCore.Qt.AlignVCenter)
        self.samplestakenLabel_2.setObjectName("samplestakenLabel_2")
        self.verticalLayout_2.addWidget(self.samplestakenLabel_2)
        self.progressBar = QtWidgets.QProgressBar(self.frame)
        self.progressBar.setMinimumSize(QtCore.QSize(300, 0))
        self.progressBar.setProperty("value", 0)
        self.progressBar.setObjectName("progressBar")
        self.verticalLayout_2.addWidget(self.progressBar, 0,
                                        QtCore.Qt.AlignHCenter)
        self.verticalLayout.addWidget(self.frame)
        self.frame_2 = QtWidgets.QFrame(self.frame_3)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.frame_2.sizePolicy().hasHeightForWidth())
        self.frame_2.setSizePolicy(sizePolicy)
        self.frame_2.setStyleSheet("background-color: rgb(7, 142, 198);")
        self.frame_2.setFrameShape(QtWidgets.QFrame.Box)
        self.frame_2.setFrameShadow(QtWidgets.QFrame.Raised)
        self.frame_2.setLineWidth(2)
        self.frame_2.setObjectName("frame_2")
        self.gridLayout = QtWidgets.QGridLayout(self.frame_2)
        self.gridLayout.setObjectName("gridLayout")
        self.TWOpushButton = QtWidgets.QPushButton(self.frame_2)
        self.TWOpushButton.setStyleSheet("background-color: rgb(4, 69, 115);\n"
                                         "color: rgb(85, 255, 255);")
        self.TWOpushButton.setCheckable(True)
        self.TWOpushButton.setObjectName("TWOpushButton")
        self.gridLayout.addWidget(self.TWOpushButton, 1, 2, 1, 1)
        self.ACIpushButton = QtWidgets.QPushButton(self.frame_2)
        self.ACIpushButton.setStyleSheet("background-color: rgb(4, 69, 115);\n"
                                         "color: rgb(85, 255, 255);")
        self.ACIpushButton.setCheckable(True)
        self.ACIpushButton.setObjectName("ACIpushButton")
        self.gridLayout.addWidget(self.ACIpushButton, 0, 1, 1, 1)
        self.DCVpushButton = QtWidgets.QPushButton(self.frame_2)
        self.DCVpushButton.setStyleSheet("background-color: rgb(4, 69, 115);\n"
                                         "color: rgb(85, 255, 255);")
        self.DCVpushButton.setCheckable(True)
        self.DCVpushButton.setChecked(True)
        self.DCVpushButton.setObjectName("DCVpushButton")
        self.gridLayout.addWidget(self.DCVpushButton, 1, 0, 1, 1)
        self.ACVpushButton = QtWidgets.QPushButton(self.frame_2)
        self.ACVpushButton.setStyleSheet("background-color: rgb(4, 69, 115);\n"
                                         "color: rgb(85, 255, 255);")
        self.ACVpushButton.setCheckable(True)
        self.ACVpushButton.setObjectName("ACVpushButton")
        self.gridLayout.addWidget(self.ACVpushButton, 1, 1, 1, 1)
        self.CONpushButton = QtWidgets.QPushButton(self.frame_2)
        self.CONpushButton.setStyleSheet("background-color: rgb(4, 69, 115);\n"
                                         "color: rgb(85, 255, 255);")
        self.CONpushButton.setCheckable(True)
        self.CONpushButton.setObjectName("CONpushButton")
        self.gridLayout.addWidget(self.CONpushButton, 1, 4, 1, 1)
        self.DCIpushButton = QtWidgets.QPushButton(self.frame_2)
        self.DCIpushButton.setStyleSheet("background-color: rgb(4, 69, 115);\n"
                                         "color: rgb(85, 255, 255);")
        self.DCIpushButton.setCheckable(True)
        self.DCIpushButton.setObjectName("DCIpushButton")
        self.gridLayout.addWidget(self.DCIpushButton, 0, 0, 1, 1)
        self.DIOpushButton = QtWidgets.QPushButton(self.frame_2)
        self.DIOpushButton.setStyleSheet(
            "background-color: rgb(4, 69, 115);\n"
            "alternate-background-color: rgb(0, 170, 255);\n"
            "color: rgb(85, 255, 255);")
        self.DIOpushButton.setCheckable(True)
        self.DIOpushButton.setObjectName("DIOpushButton")
        self.gridLayout.addWidget(self.DIOpushButton, 0, 4, 1, 1)
        self.FREpushButton = QtWidgets.QPushButton(self.frame_2)
        self.FREpushButton.setStyleSheet("background-color: rgb(4, 69, 115);\n"
                                         "color: rgb(85, 255, 255);")
        self.FREpushButton.setCheckable(True)
        self.FREpushButton.setObjectName("FREpushButton")
        self.gridLayout.addWidget(self.FREpushButton, 1, 3, 1, 1)
        self.PERpushButton = QtWidgets.QPushButton(self.frame_2)
        self.PERpushButton.setStyleSheet("background-color: rgb(4, 69, 115);\n"
                                         "color: rgb(85, 255, 255);")
        self.PERpushButton.setCheckable(True)
        self.PERpushButton.setObjectName("PERpushButton")
        self.gridLayout.addWidget(self.PERpushButton, 0, 3, 1, 1)
        self.FWOpushButton = QtWidgets.QPushButton(self.frame_2)
        self.FWOpushButton.setStyleSheet("background-color: rgb(4, 69, 115);\n"
                                         "color: rgb(85, 255, 255);")
        self.FWOpushButton.setCheckable(True)
        self.FWOpushButton.setObjectName("FWOpushButton")
        self.gridLayout.addWidget(self.FWOpushButton, 0, 2, 1, 1)
        self.verticalLayout.addWidget(self.frame_2)
        self.gridLayout_3.addWidget(self.frame_3, 0, 0, 1, 1,
                                    QtCore.Qt.AlignBottom)
        self.plotWidget = PlotWidget(HP34401ADialog)
        sizePolicy = QtWidgets.QSizePolicy(
            QtWidgets.QSizePolicy.MinimumExpanding,
            QtWidgets.QSizePolicy.MinimumExpanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.plotWidget.sizePolicy().hasHeightForWidth())
        self.plotWidget.setSizePolicy(sizePolicy)
        self.plotWidget.setMinimumSize(QtCore.QSize(600, 0))
        self.plotWidget.setMaximumSize(QtCore.QSize(2000, 16777215))
        font = QtGui.QFont()
        font.setStyleStrategy(QtGui.QFont.PreferAntialias)
        self.plotWidget.setFont(font)
        self.plotWidget.setFrameShape(QtWidgets.QFrame.Box)
        self.plotWidget.setObjectName("plotWidget")
        self.gridLayout_3.addWidget(self.plotWidget, 0, 2, 1, 1)
        self.hp34401aTitlelabel = QtWidgets.QLabel(HP34401ADialog)
        font = QtGui.QFont()
        font.setPointSize(12)
        font.setBold(True)
        font.setWeight(75)
        self.hp34401aTitlelabel.setFont(font)
        self.hp34401aTitlelabel.setStyleSheet("color: rgb(85, 170, 255);")
        self.hp34401aTitlelabel.setTextFormat(QtCore.Qt.RichText)
        self.hp34401aTitlelabel.setScaledContents(False)
        self.hp34401aTitlelabel.setAlignment(QtCore.Qt.AlignCenter)
        self.hp34401aTitlelabel.setObjectName("hp34401aTitlelabel")
        self.gridLayout_3.addWidget(self.hp34401aTitlelabel, 2, 0, 1, 1)
        self.frame_5 = QtWidgets.QFrame(HP34401ADialog)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.frame_5.sizePolicy().hasHeightForWidth())
        self.frame_5.setSizePolicy(sizePolicy)
        self.frame_5.setMinimumSize(QtCore.QSize(0, 900))
        self.frame_5.setMaximumSize(QtCore.QSize(700, 900))
        self.frame_5.setStyleSheet("background-color: rgb(0, 85, 127);\n"
                                   "color: rgb(255, 255, 131);")
        self.frame_5.setFrameShape(QtWidgets.QFrame.Box)
        self.frame_5.setFrameShadow(QtWidgets.QFrame.Raised)
        self.frame_5.setLineWidth(4)
        self.frame_5.setObjectName("frame_5")
        self.verticalLayout_3 = QtWidgets.QVBoxLayout(self.frame_5)
        self.verticalLayout_3.setObjectName("verticalLayout_3")
        self.frame_8 = QtWidgets.QFrame(self.frame_5)
        self.frame_8.setMinimumSize(QtCore.QSize(0, 300))
        self.frame_8.setFrameShape(QtWidgets.QFrame.Box)
        self.frame_8.setFrameShadow(QtWidgets.QFrame.Raised)
        self.frame_8.setLineWidth(2)
        self.frame_8.setObjectName("frame_8")
        self.verticalLayout_4 = QtWidgets.QVBoxLayout(self.frame_8)
        self.verticalLayout_4.setObjectName("verticalLayout_4")
        self.PlotsettingsLabel = QtWidgets.QLabel(self.frame_8)
        self.PlotsettingsLabel.setMaximumSize(QtCore.QSize(16777215, 40))
        font = QtGui.QFont()
        font.setPointSize(10)
        font.setBold(True)
        font.setWeight(75)
        self.PlotsettingsLabel.setFont(font)
        self.PlotsettingsLabel.setObjectName("PlotsettingsLabel")
        self.verticalLayout_4.addWidget(self.PlotsettingsLabel)
        self.frame_7 = QtWidgets.QFrame(self.frame_8)
        self.frame_7.setStyleSheet("background-color: rgb(0, 85, 127);\n"
                                   "color: rgb(0, 255, 255);")
        self.frame_7.setFrameShape(QtWidgets.QFrame.Box)
        self.frame_7.setFrameShadow(QtWidgets.QFrame.Raised)
        self.frame_7.setLineWidth(2)
        self.frame_7.setObjectName("frame_7")
        self.gridLayout_4 = QtWidgets.QGridLayout(self.frame_7)
        self.gridLayout_4.setObjectName("gridLayout_4")
        self.PlotmodeLabel = QtWidgets.QLabel(self.frame_7)
        self.PlotmodeLabel.setMinimumSize(QtCore.QSize(0, 25))
        self.PlotmodeLabel.setObjectName("PlotmodeLabel")
        self.gridLayout_4.addWidget(self.PlotmodeLabel, 3, 0, 1, 1)
        self.label_2 = QtWidgets.QLabel(self.frame_7)
        self.label_2.setObjectName("label_2")
        self.gridLayout_4.addWidget(self.label_2, 4, 0, 1, 1)
        self.PlotmodeCombobox = QtWidgets.QComboBox(self.frame_7)
        self.PlotmodeCombobox.setMinimumSize(QtCore.QSize(100, 25))
        self.PlotmodeCombobox.setObjectName("PlotmodeCombobox")
        self.gridLayout_4.addWidget(self.PlotmodeCombobox, 3, 1, 1, 1)
        self.scrollwindowcomboBox = QtWidgets.QComboBox(self.frame_7)
        self.scrollwindowcomboBox.setObjectName("scrollwindowcomboBox")
        self.gridLayout_4.addWidget(self.scrollwindowcomboBox, 4, 1, 1, 1)
        spacerItem2 = QtWidgets.QSpacerItem(20, 40,
                                            QtWidgets.QSizePolicy.Minimum,
                                            QtWidgets.QSizePolicy.Expanding)
        self.gridLayout_4.addItem(spacerItem2, 5, 1, 1, 1)
        self.showminmaxcheckBox = QtWidgets.QCheckBox(self.frame_7)
        self.showminmaxcheckBox.setObjectName("showminmaxcheckBox")
        self.gridLayout_4.addWidget(self.showminmaxcheckBox, 1, 1, 1, 1)
        self.plotaveragecheckBox = QtWidgets.QCheckBox(self.frame_7)
        self.plotaveragecheckBox.setObjectName("plotaveragecheckBox")
        self.gridLayout_4.addWidget(self.plotaveragecheckBox, 1, 0, 1, 1)
        self.showdatapointscheckBox = QtWidgets.QCheckBox(self.frame_7)
        self.showdatapointscheckBox.setChecked(True)
        self.showdatapointscheckBox.setObjectName("showdatapointscheckBox")
        self.gridLayout_4.addWidget(self.showdatapointscheckBox, 2, 1, 1, 1)
        self.verticalLayout_4.addWidget(self.frame_7)
        spacerItem3 = QtWidgets.QSpacerItem(20, 40,
                                            QtWidgets.QSizePolicy.Minimum,
                                            QtWidgets.QSizePolicy.Expanding)
        self.verticalLayout_4.addItem(spacerItem3)
        self.savescanpushButton = QtWidgets.QPushButton(self.frame_8)
        self.savescanpushButton.setObjectName("savescanpushButton")
        self.verticalLayout_4.addWidget(self.savescanpushButton)
        self.saveplotButton = QtWidgets.QPushButton(self.frame_8)
        self.saveplotButton.setObjectName("saveplotButton")
        self.verticalLayout_4.addWidget(self.saveplotButton)
        self.verticalLayout_3.addWidget(self.frame_8)
        self.gridLayout_3.addWidget(self.frame_5, 0, 1, 1, 1,
                                    QtCore.Qt.AlignBottom)
        self.lcdNumber = QtWidgets.QLCDNumber(HP34401ADialog)
        sizePolicy = QtWidgets.QSizePolicy(
            QtWidgets.QSizePolicy.MinimumExpanding,
            QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.lcdNumber.sizePolicy().hasHeightForWidth())
        self.lcdNumber.setSizePolicy(sizePolicy)
        self.lcdNumber.setMinimumSize(QtCore.QSize(0, 70))
        self.lcdNumber.setMaximumSize(QtCore.QSize(800, 90))
        self.lcdNumber.setAutoFillBackground(False)
        self.lcdNumber.setStyleSheet("background-color: rgb(15, 204, 12);")
        self.lcdNumber.setFrameShape(QtWidgets.QFrame.Box)
        self.lcdNumber.setFrameShadow(QtWidgets.QFrame.Sunken)
        self.lcdNumber.setLineWidth(2)
        self.lcdNumber.setMidLineWidth(2)
        self.lcdNumber.setSmallDecimalPoint(False)
        self.lcdNumber.setDigitCount(16)
        self.lcdNumber.setSegmentStyle(QtWidgets.QLCDNumber.Flat)
        self.lcdNumber.setObjectName("lcdNumber")
        self.gridLayout_3.addWidget(self.lcdNumber, 1, 2, 1, 1)
        self.label_3 = QtWidgets.QLabel(HP34401ADialog)
        self.label_3.setObjectName("label_3")
        self.gridLayout_3.addWidget(self.label_3, 2, 1, 1, 1,
                                    QtCore.Qt.AlignBottom)
        self.label = QtWidgets.QLabel(HP34401ADialog)
        self.label.setObjectName("label")
        self.gridLayout_3.addWidget(self.label, 1, 1, 1, 1,
                                    QtCore.Qt.AlignBottom)
        self.statustextBrowser.raise_()
        self.lcdNumber.raise_()
        self.hp34401aTitlelabel.raise_()
        self.ExitpushButton.raise_()
        self.plotWidget.raise_()
        self.frame_5.raise_()
        self.label.raise_()
        self.label_3.raise_()
        self.frame_3.raise_()

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

    def retranslateUi(self, HP34401ADialog):
        _translate = QtCore.QCoreApplication.translate
        HP34401ADialog.setWindowTitle(
            _translate("HP34401ADialog",
                       "HP Agilent 34401A Instrument Module"))
        self.ExitpushButton.setText(_translate("HP34401ADialog", "Exit"))
        self.NplcLabel.setText(_translate("HP34401ADialog", "NPLC Cycles"))
        self.TrigdelayLabel.setText(
            _translate("HP34401ADialog", "Trigger Delay(0-3600Sec)"))
        self.AutozeroCombobox.setToolTip(
            _translate(
                "HP34401ADialog",
                "<html><head/><body><p><span style=\" color:#00007f;\">Auto-Zero: Off=NO AZ, On=AZ/sample, Once= Once at Scan Start</span></p></body></html>"
            ))
        self.AcbwLabel.setText(_translate("HP34401ADialog", "AC Bandwidth"))
        self.ImpedanceCombobox.setToolTip(
            _translate(
                "HP34401ADialog",
                "<html><head/><body><p><span style=\" font-weight:600; text-decoration: underline; color:#00007f;\">Impedance Selector </span></p><p><span style=\" color:#00007f;\">Auto Off Zin=10Mohm all DCV Ranges</span></p><p><span style=\" color:#00007f;\">Auto On Zin=&gt;10Gohm for 100mv, 1v, &amp; 10v DCV Ranges</span></p></body></html>"
            ))
        self.AutozeroLabel.setText(_translate("HP34401ADialog", "AutoZero"))
        self.TrigsrcLabel.setText(
            _translate("HP34401ADialog", "Trigger Source"))
        self.ImpedanceLabel.setText(_translate("HP34401ADialog", "Impedance"))
        self.ResolutionLabel.setText(
            _translate("HP34401ADialog", "Resolution (V)"))
        self.scaleLabel_2.setText(_translate("HP34401ADialog", "SETTINGS"))
        self.RangeLabel.setText(_translate("HP34401ADialog", "Range (V)"))
        self.FreqapertureLabel.setText(
            _translate("HP34401ADialog", "Freq Aperture"))
        self.PeriodapertureLabel.setText(
            _translate("HP34401ADialog", "Period Aperture"))
        self.MathLabel.setText(_translate("HP34401ADialog", "Math"))
        self.sampledisplayLabel.setText(
            _translate("HP34401ADialog", "TARGET SAMPLES"))
        self.samplestartpushButton.setText(
            _translate("HP34401ADialog", "SAMPLING START"))
        self.samplestoppushButton.setText(
            _translate("HP34401ADialog", "SAMPLING STOP"))
        self.TWOpushButton.setText(_translate("HP34401ADialog", "2-wire Ohms"))
        self.ACIpushButton.setText(_translate("HP34401ADialog", "AC Current"))
        self.DCVpushButton.setText(_translate("HP34401ADialog", "DC Voltage"))
        self.ACVpushButton.setText(_translate("HP34401ADialog", "AC Voltage"))
        self.CONpushButton.setText(_translate("HP34401ADialog", "Continuity"))
        self.DCIpushButton.setText(_translate("HP34401ADialog", "DC Current"))
        self.DIOpushButton.setText(_translate("HP34401ADialog", "Diode"))
        self.FREpushButton.setText(_translate("HP34401ADialog", "Frequency"))
        self.PERpushButton.setText(_translate("HP34401ADialog", "Period"))
        self.FWOpushButton.setText(_translate("HP34401ADialog", "4-wire Ohms"))
        self.hp34401aTitlelabel.setText(
            _translate("HP34401ADialog", "HP 34401A Instrument"))
        self.PlotsettingsLabel.setText(
            _translate("HP34401ADialog", "PLOT SETTINGS"))
        self.PlotmodeLabel.setText(_translate("HP34401ADialog", "PLOT MODE"))
        self.label_2.setText(_translate("HP34401ADialog", "SCROLL WINDOW"))
        self.showminmaxcheckBox.setText(
            _translate("HP34401ADialog", "SHOW MIN/MAX"))
        self.plotaveragecheckBox.setText(
            _translate("HP34401ADialog", "PLOT AVERAGE"))
        self.showdatapointscheckBox.setText(
            _translate("HP34401ADialog", "SHOW DATAPOINTS"))
        self.savescanpushButton.setText(
            _translate("HP34401ADialog", "SAVE CSV"))
        self.saveplotButton.setText(_translate("HP34401ADialog", "SAVE PLOT"))
        self.label_3.setText(_translate("HP34401ADialog", "TextLabel"))
        self.label.setText(_translate("HP34401ADialog", "TextLabel"))
Exemplo n.º 2
0
class Ui_FileLoaderG(object):
    def setupUi(self, FileLoaderG):
        FileLoaderG.setObjectName(_fromUtf8("FileLoaderG"))
        FileLoaderG.resize(909, 541)
        self.centralwidget = QtGui.QWidget(FileLoaderG)
        self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
        self.frame = QtGui.QFrame(self.centralwidget)
        self.frame.setGeometry(QtCore.QRect(10, 10, 881, 439))
        font = QtGui.QFont()
        font.setBold(False)
        font.setWeight(50)
        self.frame.setFont(font)
        self.frame.setStyleSheet(_fromUtf8("background-color: rgb(255, 255, 255);"))
        self.frame.setFrameShape(QtGui.QFrame.Box)
        self.frame.setFrameShadow(QtGui.QFrame.Raised)
        self.frame.setObjectName(_fromUtf8("frame"))
        self.gridLayout = QtGui.QGridLayout(self.frame)
        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
        self.Local = PlotWidget(self.frame)
        font = QtGui.QFont()
        font.setPointSize(10)
        self.Local.setFont(font)
        self.Local.setStyleSheet(_fromUtf8("background-color: rgb(255, 255, 255);\n"
"border-top-color: rgb(255, 255, 255);\n"
"border-right-color: rgb(255, 255, 255);\n"
"border-bottom-color: rgb(255, 255, 255);\n"
"border-left-color: rgb(0, 0, 0);"))
        self.Local.setObjectName(_fromUtf8("Local"))
        self.gridLayout.addWidget(self.Local, 0, 0, 1, 1)
        self.Server = PlotWidget(self.frame)
        font = QtGui.QFont()
        font.setPointSize(10)
        self.Server.setFont(font)
        self.Server.setStyleSheet(_fromUtf8("background-color: rgb(255, 255, 255);\n"
"border-top-color: rgb(255, 255, 255);\n"
"border-right-color: rgb(255, 255, 255);\n"
"border-bottom-color: rgb(255, 255, 255);\n"
"border-left-color: rgb(0, 0, 0);"))
        self.Server.setObjectName(_fromUtf8("Server"))
        self.gridLayout.addWidget(self.Server, 0, 1, 1, 1)
        FileLoaderG.setCentralWidget(self.centralwidget)
        self.menubar = QtGui.QMenuBar(FileLoaderG)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 909, 20))
        self.menubar.setObjectName(_fromUtf8("menubar"))
        self.menuFile = QtGui.QMenu(self.menubar)
        self.menuFile.setObjectName(_fromUtf8("menuFile"))
        self.menuSettings = QtGui.QMenu(self.menubar)
        self.menuSettings.setObjectName(_fromUtf8("menuSettings"))
        self.menuAbout_Us = QtGui.QMenu(self.menubar)
        self.menuAbout_Us.setObjectName(_fromUtf8("menuAbout_Us"))
        FileLoaderG.setMenuBar(self.menubar)
        self.statusbar = QtGui.QStatusBar(FileLoaderG)
        self.statusbar.setObjectName(_fromUtf8("statusbar"))
        FileLoaderG.setStatusBar(self.statusbar)
        self.actionFile_Loader_G = QtGui.QAction(FileLoaderG)
        self.actionFile_Loader_G.setObjectName(_fromUtf8("actionFile_Loader_G"))
        self.actionOpen = QtGui.QAction(FileLoaderG)
        self.actionOpen.setObjectName(_fromUtf8("actionOpen"))
        self.actionQuit = QtGui.QAction(FileLoaderG)
        self.actionQuit.setObjectName(_fromUtf8("actionQuit"))
        self.menuFile.addAction(self.actionOpen)
        self.menuFile.addSeparator()
        self.menuFile.addAction(self.actionQuit)
        self.menuAbout_Us.addAction(self.actionFile_Loader_G)
        self.menubar.addAction(self.menuFile.menuAction())
        self.menubar.addAction(self.menuSettings.menuAction())
        self.menubar.addAction(self.menuAbout_Us.menuAction())

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

    def retranslateUi(self, FileLoaderG):
        FileLoaderG.setWindowTitle(_translate("FileLoaderG", "MainWindow", None))
        self.menuFile.setTitle(_translate("FileLoaderG", "File", None))
        self.menuSettings.setTitle(_translate("FileLoaderG", "Settings", None))
        self.menuAbout_Us.setTitle(_translate("FileLoaderG", "About Us", None))
        self.actionFile_Loader_G.setText(_translate("FileLoaderG", "File Loader G", None))
        self.actionOpen.setText(_translate("FileLoaderG", "Open", None))
        self.actionQuit.setText(_translate("FileLoaderG", "Quit", None))
Exemplo n.º 3
0
class Ui_Window_1(object):
    def setupUi(self, MainWindow):
        MainWindow.setObjectName("MainWindow")
        MainWindow.resize(960, 540)
        self.centralwidget = QtWidgets.QWidget(MainWindow)
        self.centralwidget.setObjectName("centralwidget")
        self.pushButton = QtWidgets.QPushButton(self.centralwidget)
        self.pushButton.setGeometry(QtCore.QRect(690, 430, 241, 81))
        font = QtGui.QFont()
        font.setFamily("Consolas")
        font.setPointSize(30)
        font.setBold(False)
        font.setWeight(50)
        self.pushButton.setFont(font)
        self.pushButton.setObjectName("pushButton")
        self.label = QtWidgets.QLabel(self.centralwidget)
        self.label.setGeometry(QtCore.QRect(690, 20, 241, 61))
        font = QtGui.QFont()
        font.setFamily("Consolas")
        font.setPointSize(16)
        self.label.setFont(font)
        self.label.setAlignment(QtCore.Qt.AlignCenter)
        self.label.setObjectName("label")
        self.lineEdit_1 = QtWidgets.QLineEdit(self.centralwidget)
        self.lineEdit_1.setGeometry(QtCore.QRect(800, 250, 31, 21))
        font = QtGui.QFont()
        font.setFamily("Consolas")
        font.setPointSize(12)
        self.lineEdit_1.setFont(font)
        self.lineEdit_1.setInputMask("")
        self.lineEdit_1.setText("")
        self.lineEdit_1.setObjectName("lineEdit_1")
        self.label_2 = QtWidgets.QLabel(self.centralwidget)
        self.label_2.setGeometry(QtCore.QRect(690, 220, 241, 21))
        font = QtGui.QFont()
        font.setFamily("Consolas")
        font.setPointSize(14)
        font.setBold(False)
        font.setWeight(50)
        self.label_2.setFont(font)
        self.label_2.setFrameShape(QtWidgets.QFrame.Box)
        self.label_2.setAlignment(QtCore.Qt.AlignCenter)
        self.label_2.setObjectName("label_2")
        self.label_3 = QtWidgets.QLabel(self.centralwidget)
        self.label_3.setGeometry(QtCore.QRect(830, 250, 21, 21))
        font = QtGui.QFont()
        font.setFamily("Consolas")
        font.setPointSize(10)
        self.label_3.setFont(font)
        self.label_3.setAlignment(QtCore.Qt.AlignCenter)
        self.label_3.setObjectName("label_3")
        self.lineEdit_2 = QtWidgets.QLineEdit(self.centralwidget)
        self.lineEdit_2.setGeometry(QtCore.QRect(850, 250, 31, 21))
        font = QtGui.QFont()
        font.setFamily("Consolas")
        font.setPointSize(12)
        self.lineEdit_2.setFont(font)
        self.lineEdit_2.setObjectName("lineEdit_2")
        self.label_4 = QtWidgets.QLabel(self.centralwidget)
        self.label_4.setGeometry(QtCore.QRect(780, 250, 21, 21))
        font = QtGui.QFont()
        font.setFamily("Consolas")
        font.setPointSize(10)
        self.label_4.setFont(font)
        self.label_4.setAlignment(QtCore.Qt.AlignCenter)
        self.label_4.setObjectName("label_4")
        self.label_5 = QtWidgets.QLabel(self.centralwidget)
        self.label_5.setGeometry(QtCore.QRect(880, 250, 21, 21))
        font = QtGui.QFont()
        font.setFamily("Consolas")
        font.setPointSize(10)
        self.label_5.setFont(font)
        self.label_5.setAlignment(QtCore.Qt.AlignCenter)
        self.label_5.setObjectName("label_5")
        self.label_6 = QtWidgets.QLabel(self.centralwidget)
        self.label_6.setGeometry(QtCore.QRect(720, 250, 61, 21))
        font = QtGui.QFont()
        font.setFamily("Consolas")
        font.setPointSize(12)
        self.label_6.setFont(font)
        self.label_6.setAlignment(QtCore.Qt.AlignCenter)
        self.label_6.setObjectName("label_6")
        self.label_7 = QtWidgets.QLabel(self.centralwidget)
        self.label_7.setGeometry(QtCore.QRect(880, 280, 21, 21))
        font = QtGui.QFont()
        font.setFamily("Consolas")
        font.setPointSize(10)
        self.label_7.setFont(font)
        self.label_7.setAlignment(QtCore.Qt.AlignCenter)
        self.label_7.setObjectName("label_7")
        self.label_8 = QtWidgets.QLabel(self.centralwidget)
        self.label_8.setGeometry(QtCore.QRect(780, 280, 21, 21))
        font = QtGui.QFont()
        font.setFamily("Consolas")
        font.setPointSize(10)
        self.label_8.setFont(font)
        self.label_8.setAlignment(QtCore.Qt.AlignCenter)
        self.label_8.setObjectName("label_8")
        self.label_9 = QtWidgets.QLabel(self.centralwidget)
        self.label_9.setGeometry(QtCore.QRect(830, 280, 21, 21))
        font = QtGui.QFont()
        font.setFamily("Consolas")
        font.setPointSize(10)
        self.label_9.setFont(font)
        self.label_9.setAlignment(QtCore.Qt.AlignCenter)
        self.label_9.setObjectName("label_9")
        self.label_10 = QtWidgets.QLabel(self.centralwidget)
        self.label_10.setGeometry(QtCore.QRect(720, 280, 61, 21))
        font = QtGui.QFont()
        font.setFamily("Consolas")
        font.setPointSize(12)
        self.label_10.setFont(font)
        self.label_10.setAlignment(QtCore.Qt.AlignCenter)
        self.label_10.setObjectName("label_10")
        self.lineEdit_4 = QtWidgets.QLineEdit(self.centralwidget)
        self.lineEdit_4.setGeometry(QtCore.QRect(850, 280, 31, 21))
        font = QtGui.QFont()
        font.setFamily("Consolas")
        font.setPointSize(12)
        self.lineEdit_4.setFont(font)
        self.lineEdit_4.setObjectName("lineEdit_4")
        self.lineEdit_3 = QtWidgets.QLineEdit(self.centralwidget)
        self.lineEdit_3.setGeometry(QtCore.QRect(800, 280, 31, 21))
        font = QtGui.QFont()
        font.setFamily("Consolas")
        font.setPointSize(12)
        self.lineEdit_3.setFont(font)
        self.lineEdit_3.setObjectName("lineEdit_3")
        self.label_12 = QtWidgets.QLabel(self.centralwidget)
        self.label_12.setGeometry(QtCore.QRect(880, 360, 21, 21))
        font = QtGui.QFont()
        font.setFamily("Consolas")
        font.setPointSize(10)
        self.label_12.setFont(font)
        self.label_12.setAlignment(QtCore.Qt.AlignCenter)
        self.label_12.setObjectName("label_12")
        self.label_14 = QtWidgets.QLabel(self.centralwidget)
        self.label_14.setGeometry(QtCore.QRect(780, 360, 21, 21))
        font = QtGui.QFont()
        font.setFamily("Consolas")
        font.setPointSize(10)
        self.label_14.setFont(font)
        self.label_14.setAlignment(QtCore.Qt.AlignCenter)
        self.label_14.setObjectName("label_14")
        self.label_15 = QtWidgets.QLabel(self.centralwidget)
        self.label_15.setGeometry(QtCore.QRect(690, 330, 241, 21))
        font = QtGui.QFont()
        font.setFamily("Consolas")
        font.setPointSize(14)
        font.setBold(False)
        font.setWeight(50)
        self.label_15.setFont(font)
        self.label_15.setFrameShape(QtWidgets.QFrame.Box)
        self.label_15.setAlignment(QtCore.Qt.AlignCenter)
        self.label_15.setObjectName("label_15")
        self.label_16 = QtWidgets.QLabel(self.centralwidget)
        self.label_16.setGeometry(QtCore.QRect(720, 390, 61, 21))
        font = QtGui.QFont()
        font.setFamily("Consolas")
        font.setPointSize(12)
        self.label_16.setFont(font)
        self.label_16.setAlignment(QtCore.Qt.AlignCenter)
        self.label_16.setObjectName("label_16")
        self.label_17 = QtWidgets.QLabel(self.centralwidget)
        self.label_17.setGeometry(QtCore.QRect(830, 360, 21, 21))
        font = QtGui.QFont()
        font.setFamily("Consolas")
        font.setPointSize(10)
        self.label_17.setFont(font)
        self.label_17.setAlignment(QtCore.Qt.AlignCenter)
        self.label_17.setObjectName("label_17")
        self.label_18 = QtWidgets.QLabel(self.centralwidget)
        self.label_18.setGeometry(QtCore.QRect(720, 360, 61, 21))
        font = QtGui.QFont()
        font.setFamily("Consolas")
        font.setPointSize(12)
        self.label_18.setFont(font)
        self.label_18.setAlignment(QtCore.Qt.AlignCenter)
        self.label_18.setObjectName("label_18")
        self.lineEdit_7 = QtWidgets.QLineEdit(self.centralwidget)
        self.lineEdit_7.setGeometry(QtCore.QRect(850, 360, 31, 21))
        font = QtGui.QFont()
        font.setFamily("Consolas")
        font.setPointSize(12)
        self.lineEdit_7.setFont(font)
        self.lineEdit_7.setObjectName("lineEdit_7")
        self.lineEdit_8 = QtWidgets.QLineEdit(self.centralwidget)
        self.lineEdit_8.setGeometry(QtCore.QRect(800, 390, 81, 21))
        font = QtGui.QFont()
        font.setFamily("Consolas")
        font.setPointSize(12)
        self.lineEdit_8.setFont(font)
        self.lineEdit_8.setObjectName("lineEdit_8")
        self.lineEdit_6 = QtWidgets.QLineEdit(self.centralwidget)
        self.lineEdit_6.setGeometry(QtCore.QRect(800, 360, 31, 21))
        font = QtGui.QFont()
        font.setFamily("Consolas")
        font.setPointSize(12)
        self.lineEdit_6.setFont(font)
        self.lineEdit_6.setObjectName("lineEdit_6")
        self.layoutWidget = QtWidgets.QWidget(self.centralwidget)
        self.layoutWidget.setGeometry(QtCore.QRect(690, 90, 233, 111))
        self.layoutWidget.setObjectName("layoutWidget")
        self.verticalLayout = QtWidgets.QVBoxLayout(self.layoutWidget)
        self.verticalLayout.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout.setObjectName("verticalLayout")
        self.radioButton_1 = QtWidgets.QRadioButton(self.layoutWidget)
        font = QtGui.QFont()
        font.setFamily("Consolas")
        font.setPointSize(11)
        self.radioButton_1.setFont(font)
        self.radioButton_1.setIconSize(QtCore.QSize(25, 25))
        self.radioButton_1.setCheckable(True)
        self.radioButton_1.setChecked(False)
        self.radioButton_1.setObjectName("radioButton_1")
        self.verticalLayout.addWidget(self.radioButton_1)
        self.radioButton_2 = QtWidgets.QRadioButton(self.layoutWidget)
        font = QtGui.QFont()
        font.setFamily("Consolas")
        font.setPointSize(11)
        self.radioButton_2.setFont(font)
        self.radioButton_2.setIconSize(QtCore.QSize(25, 25))
        self.radioButton_2.setChecked(False)
        self.radioButton_2.setObjectName("radioButton_2")
        self.verticalLayout.addWidget(self.radioButton_2)
        self.radioButton_3 = QtWidgets.QRadioButton(self.layoutWidget)
        font = QtGui.QFont()
        font.setFamily("Consolas")
        font.setPointSize(11)
        self.radioButton_3.setFont(font)
        self.radioButton_3.setIconSize(QtCore.QSize(25, 25))
        self.radioButton_3.setChecked(False)
        self.radioButton_3.setObjectName("radioButton_3")
        self.verticalLayout.addWidget(self.radioButton_3)
        self.radioButton_4 = QtWidgets.QRadioButton(self.layoutWidget)
        font = QtGui.QFont()
        font.setFamily("Consolas")
        font.setPointSize(11)
        self.radioButton_4.setFont(font)
        self.radioButton_4.setIconSize(QtCore.QSize(25, 25))
        self.radioButton_4.setChecked(False)
        self.radioButton_4.setObjectName("radioButton_4")
        self.verticalLayout.addWidget(self.radioButton_4)
        self.label_19 = QtWidgets.QLabel(self.centralwidget)
        self.label_19.setGeometry(QtCore.QRect(770, 390, 31, 21))
        font = QtGui.QFont()
        font.setFamily("Consolas")
        font.setPointSize(12)
        self.label_19.setFont(font)
        self.label_19.setAlignment(QtCore.Qt.AlignCenter)
        self.label_19.setObjectName("label_19")
        self.graphWidget = PlotWidget(self.centralwidget)
        self.graphWidget.setGeometry(QtCore.QRect(20, 20, 641, 491))
        font = QtGui.QFont()
        font.setPointSize(16)
        self.graphWidget.setFont(font)
        self.graphWidget.setLayoutDirection(QtCore.Qt.LeftToRight)
        self.graphWidget.setAutoFillBackground(False)
        self.graphWidget.setObjectName("graphWidget")
        MainWindow.setCentralWidget(self.centralwidget)
        self.actionex01 = QtWidgets.QAction(MainWindow)
        self.actionex01.setObjectName("actionex01")
        self.action = QtWidgets.QAction(MainWindow)
        self.action.setObjectName("action")
        self.actionquit = QtWidgets.QAction(MainWindow)
        self.actionquit.setObjectName("actionquit")

        self.retranslateUi(MainWindow)
        self.radioButton_1.toggled['bool'].connect(self.lineEdit_6.setDisabled)
        self.radioButton_1.toggled['bool'].connect(self.lineEdit_7.setDisabled)
        self.radioButton_1.toggled['bool'].connect(self.lineEdit_8.setDisabled)
        self.radioButton_2.toggled['bool'].connect(self.lineEdit_6.setDisabled)
        self.radioButton_2.toggled['bool'].connect(self.lineEdit_7.setDisabled)
        self.radioButton_2.toggled['bool'].connect(self.lineEdit_8.setDisabled)
        self.radioButton_3.toggled['bool'].connect(self.lineEdit_6.setDisabled)
        self.radioButton_3.toggled['bool'].connect(self.lineEdit_7.setDisabled)
        self.radioButton_3.toggled['bool'].connect(self.lineEdit_8.setDisabled)
        self.radioButton_4.toggled['bool'].connect(self.lineEdit_1.setDisabled)
        self.radioButton_4.toggled['bool'].connect(self.lineEdit_2.setDisabled)
        self.radioButton_4.toggled['bool'].connect(self.lineEdit_4.setDisabled)
        self.radioButton_4.toggled['bool'].connect(self.lineEdit_3.setDisabled)
        # self.radioButton_1.toggled['bool'].connect(self.clear_text)
        # self.radioButton_2.toggled['bool'].connect(self.clear_text)
        # self.radioButton_3.toggled['bool'].connect(self.clear_text)
        # self.radioButton_4.toggled['bool'].connect(self.clear_text)
        QtCore.QMetaObject.connectSlotsByName(MainWindow)
        MainWindow.setTabOrder(self.radioButton_1, self.radioButton_2)
        MainWindow.setTabOrder(self.radioButton_2, self.radioButton_3)
        MainWindow.setTabOrder(self.radioButton_3, self.radioButton_4)
        MainWindow.setTabOrder(self.radioButton_4, self.lineEdit_1)
        MainWindow.setTabOrder(self.lineEdit_1, self.lineEdit_2)
        MainWindow.setTabOrder(self.lineEdit_2, self.lineEdit_3)
        MainWindow.setTabOrder(self.lineEdit_3, self.lineEdit_4)
        MainWindow.setTabOrder(self.lineEdit_4, self.lineEdit_6)
        MainWindow.setTabOrder(self.lineEdit_6, self.lineEdit_7)
        MainWindow.setTabOrder(self.lineEdit_7, self.lineEdit_8)
        MainWindow.setTabOrder(self.lineEdit_8, self.pushButton)

    def retranslateUi(self, MainWindow):
        _translate = QtCore.QCoreApplication.translate
        MainWindow.setWindowTitle(_translate("MainWindow", "MainWindow"))
        self.pushButton.setText(_translate("MainWindow", "Draw"))
        self.label.setText(_translate("MainWindow", "Computer Graphics\n"
                                                    "Experiment 01"))
        self.label_2.setText(_translate("MainWindow", "Line Generation"))
        self.label_3.setText(_translate("MainWindow", ","))
        self.label_4.setText(_translate("MainWindow", "("))
        self.label_5.setText(_translate("MainWindow", ")"))
        self.label_6.setText(_translate("MainWindow", "Start"))
        self.label_7.setText(_translate("MainWindow", ")"))
        self.label_8.setText(_translate("MainWindow", "("))
        self.label_9.setText(_translate("MainWindow", ","))
        self.label_10.setText(_translate("MainWindow", "End"))
        self.label_12.setText(_translate("MainWindow", ")"))
        self.label_14.setText(_translate("MainWindow", "("))
        self.label_15.setText(_translate("MainWindow", "Circle Generation"))
        self.label_16.setText(_translate("MainWindow", "Radius"))
        self.label_17.setText(_translate("MainWindow", ","))
        self.label_18.setText(_translate("MainWindow", "Center"))
        self.radioButton_1.setText(_translate("MainWindow", "DDA Algorithm"))
        self.radioButton_2.setText(_translate("MainWindow", "Mid-Point Algorithm"))
        self.radioButton_3.setText(_translate("MainWindow", "Bresenham Algorithm"))
        self.radioButton_4.setText(_translate("MainWindow", "Mid-Point Circle Algorithm"))
        self.label_19.setText(_translate("MainWindow", "="))
        self.actionex01.setText(_translate("MainWindow", "Ex01"))
        self.action.setText(_translate("MainWindow", ".."))
        self.actionquit.setText(_translate("MainWindow", "Quit"))

    def clear_text(self):
        self.lineList = [self.lineEdit_1, self.lineEdit_2, self.lineEdit_3, self.lineEdit_4, self.lineEdit_6,
                         self.lineEdit_7, self.lineEdit_8]
        for item in self.lineList:
            item.clear()
Exemplo n.º 4
0
class Ui_MainWindow(object):
    def setupUi(self, MainWindow):
        MainWindow.setObjectName("MainWindow")
        MainWindow.resize(800, 480)
        MainWindow.setContextMenuPolicy(QtCore.Qt.NoContextMenu)
        MainWindow.setStyleSheet(
            "/*---New Edit--*/\n"
            "QWidget\n"
            "{\n"
            "    background: black\n"
            "}\n"
            "QTabBar{ background: #c9cbcd; color: rgb(9,9,9)}\n"
            "QPushButton:hover, QPushButton:pressed{background-color: rgba(255,255,255,0.6)}\n"
            "QPushButton#incrementBtn{}"
            "QPushButton#decrementBtn{}"
            "QGroupBox{color: white}\n"
            "QGroupBox > QLabel{color: white}\n"
            "QGroupBox > QLineEdit, QToolButton{background: white}\n"
            "QGroupBox::indicator:checked\n"
            "{\n"
            "    image: url(Resources/indicator_check.png);\n"
            "}\n"
            "QGroupBox::indicator:unchecked\n"
            "{\n"
            "    image: url(Resources/indicator_uncheck.png);\n"
            "}\n"
            "\n"
            "QGroupBox  {\n"
            "    border: 0.5px solid rgba(255,255,255, 0.5);\n"
            "    border-radius: 3px;\n"
            "    margin-top: 27px;\n"
            "}\n"
            "QGroupBox::title  {\n"
            "    background-color: transparent;\n"
            "    subcontrol-origin: margin;\n"
            "    padding: 5px ;\n"
            "}\n"
            "QTabWidget::pane\n"
            "{\n"
            "    border: 0.5px solid rgba(255,255,255,0.2);\n"
            "    border-radius: 3px;\n"
            "}\n"
            "QPushButton:disabled{ background: #999; color: black}\n"
            "QPushButton{ height: 45px; background: #f3f4f5}\n"
            "PlotWidget{ color: rgb(35, 85, 244) !important}\n"
            "/*QGroupBox{background: #e5e5e5}*/")
        self.centralWidget = QtWidgets.QWidget(MainWindow)
        self.centralWidget.setEnabled(True)
        self.centralWidget.setWhatsThis("")
        self.centralWidget.setObjectName("centralWidget")
        self.gridLayout = QtWidgets.QGridLayout(self.centralWidget)
        self.gridLayout.setContentsMargins(11, 11, 11, 11)
        self.gridLayout.setSpacing(6)
        self.gridLayout.setObjectName("gridLayout")
        self.tabWidget = QtWidgets.QTabWidget(self.centralWidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Maximum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.tabWidget.sizePolicy().hasHeightForWidth())
        self.tabWidget.setSizePolicy(sizePolicy)
        font = QtGui.QFont()
        font.setFamily("Sans Serif")
        font.setPointSize(10)
        self.tabWidget.setFont(font)
        self.tabWidget.setTabPosition(QtWidgets.QTabWidget.North)
        self.tabWidget.setTabShape(QtWidgets.QTabWidget.Rounded)
        self.tabWidget.setObjectName("tabWidget")
        self.Tab1 = QtWidgets.QWidget()
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Maximum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.Tab1.sizePolicy().hasHeightForWidth())
        self.Tab1.setSizePolicy(sizePolicy)
        self.Tab1.setObjectName("Tab1")
        self._2 = QtWidgets.QGridLayout(self.Tab1)
        self._2.setContentsMargins(11, 11, 11, 11)
        self._2.setSpacing(15)
        self._2.setObjectName("_2")
        self.dataloggingGroup = QtWidgets.QGroupBox(self.Tab1)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Maximum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.dataloggingGroup.sizePolicy().hasHeightForWidth())
        self.dataloggingGroup.setSizePolicy(sizePolicy)
        font = QtGui.QFont()
        font.setFamily("Sans Serif")
        font.setPointSize(10)
        self.dataloggingGroup.setFont(font)
        self.dataloggingGroup.setTitle("Data Logging")
        self.dataloggingGroup.setAlignment(QtCore.Qt.AlignLeading
                                           | QtCore.Qt.AlignLeft
                                           | QtCore.Qt.AlignTop)
        self.dataloggingGroup.setCheckable(True)
        self.dataloggingGroup.setChecked(False)
        self.dataloggingGroup.setObjectName("dataloggingGroup")
        self.gridLayout_3 = QtWidgets.QGridLayout(self.dataloggingGroup)
        self.gridLayout_3.setContentsMargins(11, 11, 11, 11)
        self.gridLayout_3.setHorizontalSpacing(6)
        self.gridLayout_3.setVerticalSpacing(20)
        self.gridLayout_3.setObjectName("gridLayout_3")
        self.toolButton = QtWidgets.QToolButton(self.dataloggingGroup)
        self.toolButton.setObjectName("toolButton")
        self.gridLayout_3.addWidget(self.toolButton, 1, 1, 1, 1)
        self.label_3 = QtWidgets.QLabel(self.dataloggingGroup)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Maximum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.label_3.sizePolicy().hasHeightForWidth())
        self.label_3.setSizePolicy(sizePolicy)
        self.label_3.setObjectName("label_3")
        self.gridLayout_3.addWidget(self.label_3, 0, 0, 1, 1)
        self.lineEdit = QtWidgets.QLineEdit(self.dataloggingGroup)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum,
                                           QtWidgets.QSizePolicy.Maximum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.lineEdit.sizePolicy().hasHeightForWidth())
        self.lineEdit.setSizePolicy(sizePolicy)
        self.lineEdit.setObjectName("lineEdit")
        self.gridLayout_3.addWidget(self.lineEdit, 1, 0, 1, 1)
        self._2.addWidget(self.dataloggingGroup, 1, 0, 1, 1,
                          QtCore.Qt.AlignTop)
        self.controlGroup = QtWidgets.QGroupBox(self.Tab1)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Maximum,
                                           QtWidgets.QSizePolicy.Maximum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.controlGroup.sizePolicy().hasHeightForWidth())
        self.controlGroup.setSizePolicy(sizePolicy)
        font = QtGui.QFont()
        font.setFamily("Sans Serif")
        font.setPointSize(10)
        self.controlGroup.setFont(font)
        self.controlGroup.setTitle("Control")
        self.controlGroup.setAlignment(QtCore.Qt.AlignLeading
                                       | QtCore.Qt.AlignLeft
                                       | QtCore.Qt.AlignTop)
        self.controlGroup.setObjectName("controlGroup")
        self.gridLayout_2 = QtWidgets.QGridLayout(self.controlGroup)
        self.gridLayout_2.setContentsMargins(11, 11, 11, 11)
        self.gridLayout_2.setHorizontalSpacing(6)
        self.gridLayout_2.setVerticalSpacing(20)
        self.gridLayout_2.setObjectName("gridLayout_2")
        self.stopBtn = QtWidgets.QPushButton(self.controlGroup)
        font = QtGui.QFont()
        font.setFamily("Monospace")
        font.setPointSize(16)
        font.setBold(True)
        font.setWeight(75)
        self.stopBtn.setFont(font)
        self.stopBtn.setObjectName("stopBtn")
        self.gridLayout_2.addWidget(self.stopBtn, 4, 0, 1, 3)
        self.startBtn = QtWidgets.QPushButton(self.controlGroup)
        font = QtGui.QFont()
        font.setFamily("Monospace")
        font.setPointSize(16)
        font.setBold(True)
        font.setWeight(75)
        self.startBtn.setFont(font)
        self.startBtn.setStyleSheet(
            " QPushButton:enabled{background: #006cb1; color: white} QPushButton:disabled{background: gray; color:black}"
        )
        self.startBtn.setObjectName("startBtn")
        self.gridLayout_2.addWidget(self.startBtn, 3, 0, 1, 3)
        self.setpullspeedLabel = QtWidgets.QLabel(self.controlGroup)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed,
                                           QtWidgets.QSizePolicy.Maximum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.setpullspeedLabel.sizePolicy().hasHeightForWidth())
        self.setpullspeedLabel.setSizePolicy(sizePolicy)
        self.setpullspeedLabel.setMinimumSize(QtCore.QSize(60, 0))
        font = QtGui.QFont()
        font.setFamily("Monospace")
        font.setPointSize(30)
        self.setpullspeedLabel.setFont(font)
        self.setpullspeedLabel.setAlignment(QtCore.Qt.AlignBottom
                                            | QtCore.Qt.AlignHCenter)
        self.setpullspeedLabel.setObjectName("setpullspeedLabel")
        self.gridLayout_2.addWidget(self.setpullspeedLabel, 0, 1, 1, 1)
        self.pullspeedunitLabel = QtWidgets.QLabel(self.controlGroup)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed,
                                           QtWidgets.QSizePolicy.Maximum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.pullspeedunitLabel.sizePolicy().hasHeightForWidth())
        self.pullspeedunitLabel.setSizePolicy(sizePolicy)
        self.pullspeedunitLabel.setMinimumSize(QtCore.QSize(60, 0))
        font = QtGui.QFont()
        font.setFamily("Monospace")
        font.setPointSize(16)
        self.pullspeedunitLabel.setFont(font)
        self.pullspeedunitLabel.setAlignment(QtCore.Qt.AlignHCenter
                                             | QtCore.Qt.AlignTop)
        self.pullspeedunitLabel.setObjectName("pullspeedunitLabel")
        self.gridLayout_2.addWidget(self.pullspeedunitLabel, 1, 1, 1, 1)
        self.incrementBtn = QtWidgets.QPushButton(self.controlGroup)
        self.incrementBtn.setEnabled(True)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.incrementBtn.sizePolicy().hasHeightForWidth())
        self.incrementBtn.setSizePolicy(sizePolicy)
        font = QtGui.QFont()
        font.setFamily("Monospace")
        font.setPointSize(35)
        self.incrementBtn.setFont(font)
        self.incrementBtn.setStyleSheet("")
        self.incrementBtn.setObjectName("incrementBtn")
        self.gridLayout_2.addWidget(self.incrementBtn, 0, 2, 2, 1)
        self.decrementBtn = QtWidgets.QPushButton(self.controlGroup)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.decrementBtn.sizePolicy().hasHeightForWidth())
        self.decrementBtn.setSizePolicy(sizePolicy)
        font = QtGui.QFont()
        font.setFamily("Monospace")
        font.setPointSize(35)
        self.decrementBtn.setFont(font)
        self.decrementBtn.setObjectName("decrementBtn")
        self.gridLayout_2.addWidget(self.decrementBtn, 0, 0, 2, 1)
        self._2.addWidget(self.controlGroup, 0, 0, 1, 1, QtCore.Qt.AlignTop)
        self.tabWidget.addTab(self.Tab1, "")
        self.Tab2 = QtWidgets.QWidget()
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Maximum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.Tab2.sizePolicy().hasHeightForWidth())
        self.Tab2.setSizePolicy(sizePolicy)
        self.Tab2.setObjectName("Tab2")
        self.verticalLayout_4 = QtWidgets.QVBoxLayout(self.Tab2)
        self.verticalLayout_4.setContentsMargins(11, 11, 11, 11)
        self.verticalLayout_4.setSpacing(6)
        self.verticalLayout_4.setObjectName("verticalLayout_4")
        self.groupBox = QtWidgets.QGroupBox(self.Tab2)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Maximum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.groupBox.sizePolicy().hasHeightForWidth())
        self.groupBox.setSizePolicy(sizePolicy)
        font = QtGui.QFont()
        font.setFamily("Sans Serif")
        font.setPointSize(10)
        self.groupBox.setFont(font)
        self.groupBox.setObjectName("groupBox")
        self.gridLayout_4 = QtWidgets.QGridLayout(self.groupBox)
        self.gridLayout_4.setContentsMargins(11, 11, 11, 11)
        self.gridLayout_4.setSpacing(6)
        self.gridLayout_4.setObjectName("gridLayout_4")
        self.currentpositionLabel = QtWidgets.QLabel(self.groupBox)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Maximum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.currentpositionLabel.sizePolicy().hasHeightForWidth())
        self.currentpositionLabel.setSizePolicy(sizePolicy)
        font = QtGui.QFont()
        font.setFamily("Monospace")
        font.setPointSize(16)
        self.currentpositionLabel.setFont(font)
        self.currentpositionLabel.setAlignment(QtCore.Qt.AlignCenter)
        self.currentpositionLabel.setObjectName("currentpositionLabel")
        self.gridLayout_4.addWidget(self.currentpositionLabel, 0, 0, 1, 1)
        self.label = QtWidgets.QLabel(self.groupBox)
        font = QtGui.QFont()
        font.setFamily("Sans Serif")
        self.label.setFont(font)
        self.label.setAlignment(QtCore.Qt.AlignCenter)
        self.label.setObjectName("label")
        self.gridLayout_4.addWidget(self.label, 1, 0, 1, 1)
        self.verticalLayout_4.addWidget(self.groupBox)
        self.manualDial = QtWidgets.QDial(self.Tab2)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.manualDial.sizePolicy().hasHeightForWidth())
        self.manualDial.setSizePolicy(sizePolicy)
        self.manualDial.setProperty("value", 50)
        self.manualDial.setObjectName("manualDial")
        self.verticalLayout_4.addWidget(self.manualDial)
        self.tabWidget.addTab(self.Tab2, "")
        self.gridLayout.addWidget(self.tabWidget, 0, 1, 1, 1,
                                  QtCore.Qt.AlignTop)
        self.plotarea = PlotWidget(self.centralWidget)
        sizePolicy = QtWidgets.QSizePolicy(
            QtWidgets.QSizePolicy.MinimumExpanding,
            QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.plotarea.sizePolicy().hasHeightForWidth())
        self.plotarea.setSizePolicy(sizePolicy)
        font = QtGui.QFont()
        font.setFamily("Sans Serif")
        self.plotarea.setFont(font)
        self.plotarea.setObjectName("plotarea")
        self.gridLayout.addWidget(self.plotarea, 0, 0, 1, 1)
        MainWindow.setCentralWidget(self.centralWidget)

        self.retranslateUi(MainWindow)
        self.tabWidget.setCurrentIndex(0)
        QtCore.QMetaObject.connectSlotsByName(MainWindow)

    def retranslateUi(self, MainWindow):
        _translate = QtCore.QCoreApplication.translate
        MainWindow.setWindowTitle(
            _translate("MainWindow", "Tom Accelerated Pull Test"))
        self.toolButton.setText(_translate("MainWindow", "..."))
        self.label_3.setText(
            _translate("MainWindow", "Current logging directory"))
        self.stopBtn.setText(_translate("MainWindow", "Stop"))
        self.startBtn.setText(_translate("MainWindow", "Start"))
        self.setpullspeedLabel.setText(_translate("MainWindow", "50"))
        self.pullspeedunitLabel.setText(_translate("MainWindow", "in/s"))
        self.incrementBtn.setText(_translate("MainWindow", "+"))
        self.decrementBtn.setText(_translate("MainWindow", "-"))
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.Tab1),
                                  _translate("MainWindow", "Test Mode"))
        self.groupBox.setTitle(_translate("MainWindow", "Current Position "))
        self.currentpositionLabel.setText(_translate("MainWindow", "50%"))
        self.label.setText(
            _translate("MainWindow", "[relative to rail length]"))
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.Tab2),
                                  _translate("MainWindow", "Manual Control"))
Exemplo n.º 5
0
class Ui_MainWindow(object):
    def setupUi(self, MainWindow):
        MainWindow.setObjectName("MainWindow")
        MainWindow.resize(773, 593)
        self.centralwidget = QtWidgets.QWidget(MainWindow)
        self.centralwidget.setObjectName("centralwidget")
        self.gridLayout_5 = QtWidgets.QGridLayout(self.centralwidget)
        self.gridLayout_5.setObjectName("gridLayout_5")
        self.frame = QtWidgets.QFrame(self.centralwidget)
        self.frame.setFrameShape(QtWidgets.QFrame.StyledPanel)
        self.frame.setFrameShadow(QtWidgets.QFrame.Raised)
        self.frame.setObjectName("frame")
        self.gridLayout = QtWidgets.QGridLayout(self.frame)
        self.gridLayout.setObjectName("gridLayout")
        self.Data_File_Label = QtWidgets.QLabel(self.frame)
        self.Data_File_Label.setObjectName("Data_File_Label")
        self.gridLayout.addWidget(self.Data_File_Label, 0, 0, 1, 1)
        self.Data_File_lineEdit = QtWidgets.QLineEdit(self.frame)
        self.Data_File_lineEdit.setObjectName("Data_File_lineEdit")
        self.gridLayout.addWidget(self.Data_File_lineEdit, 0, 1, 1, 1)
        self.Browse_path_Button = QtWidgets.QToolButton(self.frame)
        self.Browse_path_Button.setObjectName("Browse_path_Button")
        self.gridLayout.addWidget(self.Browse_path_Button, 0, 2, 1, 1)
        self.Plot_PushButton = QtWidgets.QPushButton(self.frame)
        self.Plot_PushButton.setObjectName("Plot_PushButton")
        self.gridLayout.addWidget(self.Plot_PushButton, 0, 3, 1, 1)
        self.Clear_PushButton = QtWidgets.QPushButton(self.frame)
        self.Clear_PushButton.setObjectName("Clear_PushButton")
        self.gridLayout.addWidget(self.Clear_PushButton, 0, 4, 1, 1)
        spacerItem = QtWidgets.QSpacerItem(229, 20,
                                           QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Minimum)
        self.gridLayout.addItem(spacerItem, 0, 5, 1, 1)
        self.gridLayout_5.addWidget(self.frame, 0, 0, 1, 1)
        self.frame_2 = QtWidgets.QFrame(self.centralwidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.frame_2.sizePolicy().hasHeightForWidth())
        self.frame_2.setSizePolicy(sizePolicy)
        self.frame_2.setFrameShape(QtWidgets.QFrame.StyledPanel)
        self.frame_2.setFrameShadow(QtWidgets.QFrame.Raised)
        self.frame_2.setObjectName("frame_2")
        self.gridLayout_4 = QtWidgets.QGridLayout(self.frame_2)
        self.gridLayout_4.setObjectName("gridLayout_4")
        self.graphicsView = PlotWidget(self.frame_2)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(2)
        sizePolicy.setVerticalStretch(1)
        sizePolicy.setHeightForWidth(
            self.graphicsView.sizePolicy().hasHeightForWidth())
        self.graphicsView.setSizePolicy(sizePolicy)
        font = QtGui.QFont()
        font.setBold(True)
        font.setWeight(75)
        self.graphicsView.setFont(font)
        self.graphicsView.setObjectName("graphicsView")
        self.gridLayout_4.addWidget(self.graphicsView, 0, 0, 1, 1)
        self.treeView = QtWidgets.QTreeView(self.frame_2)
        self.treeView.setObjectName("treeView")
        self.gridLayout_4.addWidget(self.treeView, 1, 0, 1, 1)
        self.gridLayout_5.addWidget(self.frame_2, 1, 0, 1, 1)
        MainWindow.setCentralWidget(self.centralwidget)
        self.menubar = QtWidgets.QMenuBar(MainWindow)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 773, 21))
        self.menubar.setObjectName("menubar")
        MainWindow.setMenuBar(self.menubar)
        self.statusbar = QtWidgets.QStatusBar(MainWindow)
        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", "MainWindow"))
        self.Data_File_Label.setText(_translate("MainWindow", "Data File"))
        self.Browse_path_Button.setText(_translate("MainWindow", "Browse"))
        self.Plot_PushButton.setText(_translate("MainWindow", "Plot"))
        self.Clear_PushButton.setText(_translate("MainWindow", "Clear"))
class Ui_MainWindow(object):
    def setupUi(self, MainWindow):
        MainWindow.setObjectName("MainWindow")
        MainWindow.resize(1397, 813)
        font = QtGui.QFont()
        font.setFamily("Ubuntu")
        font.setPointSize(10)
        MainWindow.setFont(font)
        MainWindow.setLayoutDirection(QtCore.Qt.LeftToRight)
        MainWindow.setAutoFillBackground(False)
        MainWindow.setTabShape(QtWidgets.QTabWidget.Rounded)
        self.centralWidget = QtWidgets.QWidget(MainWindow)
        self.centralWidget.setObjectName("centralWidget")
        self.verticalLayout_7 = QtWidgets.QVBoxLayout(self.centralWidget)
        self.verticalLayout_7.setContentsMargins(11, 11, 11, 11)
        self.verticalLayout_7.setSpacing(6)
        self.verticalLayout_7.setObjectName("verticalLayout_7")
        self.splitter_horizontal = QtWidgets.QSplitter(self.centralWidget)
        self.splitter_horizontal.setOrientation(QtCore.Qt.Horizontal)
        self.splitter_horizontal.setHandleWidth(10)
        self.splitter_horizontal.setChildrenCollapsible(False)
        self.splitter_horizontal.setObjectName("splitter_horizontal")
        self.splitter_meta_widget_left_pane = QtWidgets.QWidget(self.splitter_horizontal)
        self.splitter_meta_widget_left_pane.setMinimumSize(QtCore.QSize(250, 250))
        self.splitter_meta_widget_left_pane.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.splitter_meta_widget_left_pane.setBaseSize(QtCore.QSize(0, 0))
        font = QtGui.QFont()
        font.setPointSize(10)
        self.splitter_meta_widget_left_pane.setFont(font)
        self.splitter_meta_widget_left_pane.setObjectName("splitter_meta_widget_left_pane")
        self.verticalLayout_5 = QtWidgets.QVBoxLayout(self.splitter_meta_widget_left_pane)
        self.verticalLayout_5.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout_5.setSpacing(6)
        self.verticalLayout_5.setObjectName("verticalLayout_5")
        self.btnStop = QtWidgets.QPushButton(self.splitter_meta_widget_left_pane)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.btnStop.sizePolicy().hasHeightForWidth())
        self.btnStop.setSizePolicy(sizePolicy)
        self.btnStop.setMinimumSize(QtCore.QSize(0, 150))
        font = QtGui.QFont()
        font.setPointSize(14)
        self.btnStop.setFont(font)
        self.btnStop.setStyleSheet("background-color: red")
        self.btnStop.setObjectName("btnStop")
        self.verticalLayout_5.addWidget(self.btnStop)
        self.splitter_vertical = QtWidgets.QSplitter(self.splitter_meta_widget_left_pane)
        self.splitter_vertical.setOrientation(QtCore.Qt.Vertical)
        self.splitter_vertical.setHandleWidth(10)
        self.splitter_vertical.setChildrenCollapsible(False)
        self.splitter_vertical.setObjectName("splitter_vertical")
        self.splitter_meta_widget_pinned_plot = QtWidgets.QWidget(self.splitter_vertical)
        self.splitter_meta_widget_pinned_plot.setObjectName("splitter_meta_widget_pinned_plot")
        self.verticalLayout_8 = QtWidgets.QVBoxLayout(self.splitter_meta_widget_pinned_plot)
        self.verticalLayout_8.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout_8.setSpacing(6)
        self.verticalLayout_8.setObjectName("verticalLayout_8")
        self.gbPinnedPlot = QtWidgets.QGroupBox(self.splitter_meta_widget_pinned_plot)
        self.gbPinnedPlot.setMinimumSize(QtCore.QSize(0, 250))
        self.gbPinnedPlot.setMaximumSize(QtCore.QSize(16777215, 16777215))
        font = QtGui.QFont()
        font.setFamily("MS Shell Dlg 2")
        font.setPointSize(10)
        self.gbPinnedPlot.setFont(font)
        self.gbPinnedPlot.setObjectName("gbPinnedPlot")
        self.verticalLayout_6 = QtWidgets.QVBoxLayout(self.gbPinnedPlot)
        self.verticalLayout_6.setContentsMargins(11, 11, 11, 11)
        self.verticalLayout_6.setSpacing(6)
        self.verticalLayout_6.setObjectName("verticalLayout_6")
        self.pltPinned = PlotWidget(self.gbPinnedPlot)
        font = QtGui.QFont()
        font.setPointSize(10)
        self.pltPinned.setFont(font)
        self.pltPinned.setObjectName("pltPinned")
        self.verticalLayout_6.addWidget(self.pltPinned)
        self.horizontalLayout_4 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_4.setSpacing(6)
        self.horizontalLayout_4.setObjectName("horizontalLayout_4")
        spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_4.addItem(spacerItem)
        self.btnResetPinnedPlot = QtWidgets.QPushButton(self.gbPinnedPlot)
        self.btnResetPinnedPlot.setObjectName("btnResetPinnedPlot")
        self.horizontalLayout_4.addWidget(self.btnResetPinnedPlot)
        spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_4.addItem(spacerItem1)
        self.verticalLayout_6.addLayout(self.horizontalLayout_4)
        self.verticalLayout_8.addWidget(self.gbPinnedPlot)
        self.splitter_meta_widget_server_com = QtWidgets.QWidget(self.splitter_vertical)
        self.splitter_meta_widget_server_com.setObjectName("splitter_meta_widget_server_com")
        self.verticalLayout_9 = QtWidgets.QVBoxLayout(self.splitter_meta_widget_server_com)
        self.verticalLayout_9.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout_9.setSpacing(6)
        self.verticalLayout_9.setObjectName("verticalLayout_9")
        self.groupBox = QtWidgets.QGroupBox(self.splitter_meta_widget_server_com)
        font = QtGui.QFont()
        font.setFamily("MS Shell Dlg 2")
        font.setPointSize(10)
        self.groupBox.setFont(font)
        self.groupBox.setObjectName("groupBox")
        self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.groupBox)
        self.verticalLayout_2.setContentsMargins(11, 11, 11, 11)
        self.verticalLayout_2.setSpacing(6)
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        self.lblServPoll = QtWidgets.QLabel(self.groupBox)
        font = QtGui.QFont()
        font.setPointSize(10)
        font.setBold(True)
        font.setWeight(75)
        self.lblServPoll.setFont(font)
        self.lblServPoll.setObjectName("lblServPoll")
        self.verticalLayout_2.addWidget(self.lblServPoll)
        spacerItem2 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
        self.verticalLayout_2.addItem(spacerItem2)
        self.horizontalLayout_3 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_3.setSpacing(6)
        self.horizontalLayout_3.setObjectName("horizontalLayout_3")
        spacerItem3 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_3.addItem(spacerItem3)
        self.btnStartPause = QtWidgets.QPushButton(self.groupBox)
        self.btnStartPause.setObjectName("btnStartPause")
        self.horizontalLayout_3.addWidget(self.btnStartPause)
        self.btnStop_2 = QtWidgets.QPushButton(self.groupBox)
        self.btnStop_2.setObjectName("btnStop_2")
        self.horizontalLayout_3.addWidget(self.btnStop_2)
        spacerItem4 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_3.addItem(spacerItem4)
        self.verticalLayout_2.addLayout(self.horizontalLayout_3)
        self.verticalLayout_9.addWidget(self.groupBox)
        self.verticalLayout_5.addWidget(self.splitter_vertical)
        self.splitter_meta_widget_tab = QtWidgets.QWidget(self.splitter_horizontal)
        self.splitter_meta_widget_tab.setObjectName("splitter_meta_widget_tab")
        self.verticalLayout = QtWidgets.QVBoxLayout(self.splitter_meta_widget_tab)
        self.verticalLayout.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout.setSpacing(6)
        self.verticalLayout.setObjectName("verticalLayout")
        self.tabMain = TabWindowWidget(self.splitter_meta_widget_tab)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.tabMain.sizePolicy().hasHeightForWidth())
        self.tabMain.setSizePolicy(sizePolicy)
        self.tabMain.setMinimumSize(QtCore.QSize(500, 450))
        font = QtGui.QFont()
        font.setFamily("MS Shell Dlg 2")
        font.setPointSize(10)
        self.tabMain.setFont(font)
        self.tabMain.setTabShape(QtWidgets.QTabWidget.Rounded)
        self.tabMain.setObjectName("tabMain")
        self.overview = QtWidgets.QWidget()
        self.overview.setObjectName("overview")
        self.gridLayout_2 = QtWidgets.QGridLayout(self.overview)
        self.gridLayout_2.setContentsMargins(11, 11, 11, 11)
        self.gridLayout_2.setSpacing(6)
        self.gridLayout_2.setObjectName("gridLayout_2")
        self.scroller = QtWidgets.QScrollArea(self.overview)
        font = QtGui.QFont()
        font.setPointSize(10)
        self.scroller.setFont(font)
        self.scroller.setAutoFillBackground(False)
        self.scroller.setFrameShape(QtWidgets.QFrame.NoFrame)
        self.scroller.setWidgetResizable(True)
        self.scroller.setObjectName("scroller")
        self.scrollAreaWidgetContents = QtWidgets.QWidget()
        self.scrollAreaWidgetContents.setGeometry(QtCore.QRect(0, 0, 472, 677))
        self.scrollAreaWidgetContents.setObjectName("scrollAreaWidgetContents")
        self.gridLayout_6 = QtWidgets.QGridLayout(self.scrollAreaWidgetContents)
        self.gridLayout_6.setContentsMargins(0, 0, 0, 0)
        self.gridLayout_6.setSpacing(6)
        self.gridLayout_6.setObjectName("gridLayout_6")
        self.fmOverview = QtWidgets.QFrame(self.scrollAreaWidgetContents)
        font = QtGui.QFont()
        font.setFamily("MS Shell Dlg 2")
        font.setPointSize(10)
        self.fmOverview.setFont(font)
        self.fmOverview.setStyleSheet("")
        self.fmOverview.setFrameShape(QtWidgets.QFrame.StyledPanel)
        self.fmOverview.setFrameShadow(QtWidgets.QFrame.Plain)
        self.fmOverview.setObjectName("fmOverview")
        self.gridLayout_6.addWidget(self.fmOverview, 0, 0, 1, 1)
        self.scroller.setWidget(self.scrollAreaWidgetContents)
        self.gridLayout_2.addWidget(self.scroller, 0, 0, 1, 1)
        self.tabMain.addTab(self.overview, "")
        self.devices = QtWidgets.QWidget()
        self.devices.setObjectName("devices")
        self.gridLayout_5 = QtWidgets.QGridLayout(self.devices)
        self.gridLayout_5.setContentsMargins(11, 11, 11, 11)
        self.gridLayout_5.setSpacing(6)
        self.gridLayout_5.setObjectName("gridLayout_5")
        self.splitSettings = QtWidgets.QSplitter(self.devices)
        self.splitSettings.setOrientation(QtCore.Qt.Horizontal)
        self.splitSettings.setObjectName("splitSettings")
        self.layoutWidget = QtWidgets.QWidget(self.splitSettings)
        self.layoutWidget.setObjectName("layoutWidget")
        self.verticalLayout_4 = QtWidgets.QVBoxLayout(self.layoutWidget)
        self.verticalLayout_4.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout_4.setSpacing(6)
        self.verticalLayout_4.setObjectName("verticalLayout_4")
        self.treeDevices = QtWidgets.QTreeWidget(self.layoutWidget)
        self.treeDevices.setFrameShadow(QtWidgets.QFrame.Plain)
        self.treeDevices.setColumnCount(2)
        self.treeDevices.setObjectName("treeDevices")
        self.treeDevices.headerItem().setText(0, "1")
        self.treeDevices.headerItem().setText(1, "2")
        self.treeDevices.header().setDefaultSectionSize(300)
        self.verticalLayout_4.addWidget(self.treeDevices)
        self.horizontalLayout = QtWidgets.QHBoxLayout()
        self.horizontalLayout.setSizeConstraint(QtWidgets.QLayout.SetDefaultConstraint)
        self.horizontalLayout.setContentsMargins(0, 0, 0, 0)
        self.horizontalLayout.setSpacing(6)
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.btnExpand = QtWidgets.QPushButton(self.layoutWidget)
        self.btnExpand.setObjectName("btnExpand")
        self.horizontalLayout.addWidget(self.btnExpand)
        self.btnCollapse = QtWidgets.QPushButton(self.layoutWidget)
        self.btnCollapse.setObjectName("btnCollapse")
        self.horizontalLayout.addWidget(self.btnCollapse)
        self.verticalLayout_4.addLayout(self.horizontalLayout)
        self.fmDeviceSettings = QtWidgets.QFrame(self.splitSettings)
        self.fmDeviceSettings.setMinimumSize(QtCore.QSize(300, 0))
        self.fmDeviceSettings.setBaseSize(QtCore.QSize(600, 0))
        self.fmDeviceSettings.setFrameShape(QtWidgets.QFrame.StyledPanel)
        self.fmDeviceSettings.setFrameShadow(QtWidgets.QFrame.Plain)
        self.fmDeviceSettings.setObjectName("fmDeviceSettings")
        self.gridLayout_5.addWidget(self.splitSettings, 0, 0, 1, 1)
        self.tabMain.addTab(self.devices, "")
        self.plotting = QtWidgets.QWidget()
        self.plotting.setObjectName("plotting")
        self.verticalLayout_3 = QtWidgets.QVBoxLayout(self.plotting)
        self.verticalLayout_3.setContentsMargins(11, 11, 11, 11)
        self.verticalLayout_3.setSpacing(6)
        self.verticalLayout_3.setObjectName("verticalLayout_3")
        self.frame_4 = QtWidgets.QFrame(self.plotting)
        self.frame_4.setMaximumSize(QtCore.QSize(16777215, 50))
        font = QtGui.QFont()
        font.setPointSize(10)
        self.frame_4.setFont(font)
        self.frame_4.setFrameShape(QtWidgets.QFrame.NoFrame)
        self.frame_4.setFrameShadow(QtWidgets.QFrame.Plain)
        self.frame_4.setLineWidth(1)
        self.frame_4.setObjectName("frame_4")
        self.horizontalLayout_2 = QtWidgets.QHBoxLayout(self.frame_4)
        self.horizontalLayout_2.setContentsMargins(0, 0, 0, 0)
        self.horizontalLayout_2.setSpacing(7)
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.btnSetupDevicePlots = QtWidgets.QPushButton(self.frame_4)
        self.btnSetupDevicePlots.setMinimumSize(QtCore.QSize(0, 35))
        font = QtGui.QFont()
        font.setPointSize(10)
        self.btnSetupDevicePlots.setFont(font)
        self.btnSetupDevicePlots.setFlat(False)
        self.btnSetupDevicePlots.setObjectName("btnSetupDevicePlots")
        self.horizontalLayout_2.addWidget(self.btnSetupDevicePlots)
        self.verticalLayout_3.addWidget(self.frame_4)
        self.scrollArea = QtWidgets.QScrollArea(self.plotting)
        font = QtGui.QFont()
        font.setPointSize(10)
        self.scrollArea.setFont(font)
        self.scrollArea.setFrameShape(QtWidgets.QFrame.NoFrame)
        self.scrollArea.setWidgetResizable(True)
        self.scrollArea.setObjectName("scrollArea")
        self.scrollAreaWidgetContents_2 = QtWidgets.QWidget()
        self.scrollAreaWidgetContents_2.setGeometry(QtCore.QRect(0, 0, 476, 640))
        self.scrollAreaWidgetContents_2.setObjectName("scrollAreaWidgetContents_2")
        self.gridLayout_4 = QtWidgets.QGridLayout(self.scrollAreaWidgetContents_2)
        self.gridLayout_4.setContentsMargins(0, 0, 0, 0)
        self.gridLayout_4.setSpacing(6)
        self.gridLayout_4.setObjectName("gridLayout_4")
        self.fmPlots = QtWidgets.QFrame(self.scrollAreaWidgetContents_2)
        font = QtGui.QFont()
        font.setPointSize(10)
        self.fmPlots.setFont(font)
        self.fmPlots.setStyleSheet("")
        self.fmPlots.setFrameShape(QtWidgets.QFrame.StyledPanel)
        self.fmPlots.setFrameShadow(QtWidgets.QFrame.Plain)
        self.fmPlots.setObjectName("fmPlots")
        self.gridLayout_4.addWidget(self.fmPlots, 0, 0, 1, 1)
        self.scrollArea.setWidget(self.scrollAreaWidgetContents_2)
        self.verticalLayout_3.addWidget(self.scrollArea)
        self.tabMain.addTab(self.plotting, "")
        self.procedures = QtWidgets.QWidget()
        self.procedures.setObjectName("procedures")
        self.gridLayout_9 = QtWidgets.QGridLayout(self.procedures)
        self.gridLayout_9.setContentsMargins(11, 11, 11, 11)
        self.gridLayout_9.setSpacing(6)
        self.gridLayout_9.setObjectName("gridLayout_9")
        self.btnAddProcedure = QtWidgets.QPushButton(self.procedures)
        self.btnAddProcedure.setMinimumSize(QtCore.QSize(0, 35))
        font = QtGui.QFont()
        font.setPointSize(10)
        self.btnAddProcedure.setFont(font)
        self.btnAddProcedure.setFlat(False)
        self.btnAddProcedure.setObjectName("btnAddProcedure")
        self.gridLayout_9.addWidget(self.btnAddProcedure, 0, 0, 1, 1)
        self.scrollArea_2 = QtWidgets.QScrollArea(self.procedures)
        self.scrollArea_2.setFrameShape(QtWidgets.QFrame.NoFrame)
        self.scrollArea_2.setWidgetResizable(True)
        self.scrollArea_2.setObjectName("scrollArea_2")
        self.scrollAreaWidgetContents_3 = QtWidgets.QWidget()
        self.scrollAreaWidgetContents_3.setGeometry(QtCore.QRect(0, 0, 476, 640))
        self.scrollAreaWidgetContents_3.setObjectName("scrollAreaWidgetContents_3")
        self.gridLayout_10 = QtWidgets.QGridLayout(self.scrollAreaWidgetContents_3)
        self.gridLayout_10.setContentsMargins(0, 0, 0, 11)
        self.gridLayout_10.setSpacing(6)
        self.gridLayout_10.setObjectName("gridLayout_10")
        self.fmProcedures = QtWidgets.QFrame(self.scrollAreaWidgetContents_3)
        font = QtGui.QFont()
        font.setPointSize(10)
        self.fmProcedures.setFont(font)
        self.fmProcedures.setStyleSheet("")
        self.fmProcedures.setFrameShape(QtWidgets.QFrame.StyledPanel)
        self.fmProcedures.setFrameShadow(QtWidgets.QFrame.Plain)
        self.fmProcedures.setObjectName("fmProcedures")
        self.vboxProcedures = QtWidgets.QVBoxLayout(self.fmProcedures)
        self.vboxProcedures.setContentsMargins(11, 11, 11, 11)
        self.vboxProcedures.setSpacing(6)
        self.vboxProcedures.setObjectName("vboxProcedures")
        self.gridLayout_10.addWidget(self.fmProcedures, 0, 0, 1, 1)
        self.scrollArea_2.setWidget(self.scrollAreaWidgetContents_3)
        self.gridLayout_9.addWidget(self.scrollArea_2, 1, 0, 1, 1)
        self.tabMain.addTab(self.procedures, "")
        self.log = QtWidgets.QWidget()
        self.log.setObjectName("log")
        self.gridLayout = QtWidgets.QGridLayout(self.log)
        self.gridLayout.setContentsMargins(11, 11, 11, 11)
        self.gridLayout.setSpacing(6)
        self.gridLayout.setObjectName("gridLayout")
        self.txtMessageLog = QtWidgets.QTextEdit(self.log)
        self.txtMessageLog.setFrameShape(QtWidgets.QFrame.StyledPanel)
        self.txtMessageLog.setFrameShadow(QtWidgets.QFrame.Plain)
        self.txtMessageLog.setReadOnly(True)
        self.txtMessageLog.setObjectName("txtMessageLog")
        self.gridLayout.addWidget(self.txtMessageLog, 0, 0, 1, 1)
        self.tabMain.addTab(self.log, "")
        self.verticalLayout.addWidget(self.tabMain)
        self.verticalLayout_7.addWidget(self.splitter_horizontal)
        MainWindow.setCentralWidget(self.centralWidget)
        self.statusBar = QtWidgets.QStatusBar(MainWindow)
        self.statusBar.setObjectName("statusBar")
        MainWindow.setStatusBar(self.statusBar)
        self.toolBar = QtWidgets.QToolBar(MainWindow)
        font = QtGui.QFont()
        font.setFamily("MS Shell Dlg 2")
        font.setPointSize(10)
        self.toolBar.setFont(font)
        self.toolBar.setToolButtonStyle(QtCore.Qt.ToolButtonTextBesideIcon)
        self.toolBar.setObjectName("toolBar")
        MainWindow.addToolBar(QtCore.Qt.TopToolBarArea, self.toolBar)
        self.menuBar = QtWidgets.QMenuBar(MainWindow)
        self.menuBar.setGeometry(QtCore.QRect(0, 0, 1397, 21))
        self.menuBar.setObjectName("menuBar")
        self.menu_File = QtWidgets.QMenu(self.menuBar)
        self.menu_File.setObjectName("menu_File")
        self.menu_Configure = QtWidgets.QMenu(self.menuBar)
        self.menu_Configure.setObjectName("menu_Configure")
        self.menuHelp = QtWidgets.QMenu(self.menuBar)
        self.menuHelp.setObjectName("menuHelp")
        self.menuPrint = QtWidgets.QMenu(self.menuBar)
        self.menuPrint.setObjectName("menuPrint")
        MainWindow.setMenuBar(self.menuBar)
        self.btnQuit = QtWidgets.QAction(MainWindow)
        self.btnQuit.setObjectName("btnQuit")
        self.btnLoad = QtWidgets.QAction(MainWindow)
        self.btnLoad.setObjectName("btnLoad")
        self.btnSave = QtWidgets.QAction(MainWindow)
        self.btnSave.setObjectName("btnSave")
        self.btnSaveAs = QtWidgets.QAction(MainWindow)
        self.btnSaveAs.setObjectName("btnSaveAs")
        self.action_new_session = QtWidgets.QAction(MainWindow)
        self.action_new_session.setObjectName("action_new_session")
        self.action_load_session = QtWidgets.QAction(MainWindow)
        self.action_load_session.setObjectName("action_load_session")
        self.action_save_session = QtWidgets.QAction(MainWindow)
        self.action_save_session.setObjectName("action_save_session")
        self.action_save_session_as = QtWidgets.QAction(MainWindow)
        self.action_save_session_as.setObjectName("action_save_session_as")
        self.action_quit = QtWidgets.QAction(MainWindow)
        self.action_quit.setObjectName("action_quit")
        self.action_slack = QtWidgets.QAction(MainWindow)
        self.action_slack.setObjectName("action_slack")
        self.action_help = QtWidgets.QAction(MainWindow)
        self.action_help.setObjectName("action_help")
        self.action_about = QtWidgets.QAction(MainWindow)
        self.action_about.setObjectName("action_about")
        self.btnAbout = QtWidgets.QAction(MainWindow)
        self.btnAbout.setObjectName("btnAbout")
        self.action_settings = QtWidgets.QAction(MainWindow)
        self.action_settings.setObjectName("action_settings")
        self.action_print = QtWidgets.QAction(MainWindow)
        self.action_print.setObjectName("action_print")
        self.action_print_preview = QtWidgets.QAction(MainWindow)
        self.action_print_preview.setObjectName("action_print_preview")
        self.toolBar.addAction(self.btnQuit)
        self.toolBar.addAction(self.btnLoad)
        self.toolBar.addAction(self.btnSave)
        self.toolBar.addAction(self.btnSaveAs)
        self.toolBar.addAction(self.btnAbout)
        self.menu_File.addAction(self.action_new_session)
        self.menu_File.addAction(self.action_load_session)
        self.menu_File.addAction(self.action_save_session)
        self.menu_File.addAction(self.action_save_session_as)
        self.menu_File.addSeparator()
        self.menu_File.addAction(self.action_quit)
        self.menu_Configure.addAction(self.action_slack)
        self.menu_Configure.addAction(self.action_settings)
        self.menuHelp.addAction(self.action_help)
        self.menuHelp.addSeparator()
        self.menuHelp.addAction(self.action_about)
        self.menuPrint.addAction(self.action_print)
        self.menuPrint.addAction(self.action_print_preview)
        self.menuBar.addAction(self.menu_File.menuAction())
        self.menuBar.addAction(self.menu_Configure.menuAction())
        self.menuBar.addAction(self.menuPrint.menuAction())
        self.menuBar.addAction(self.menuHelp.menuAction())

        self.retranslateUi(MainWindow)
        self.tabMain.setCurrentIndex(0)
        QtCore.QMetaObject.connectSlotsByName(MainWindow)

    def retranslateUi(self, MainWindow):
        _translate = QtCore.QCoreApplication.translate
        MainWindow.setWindowTitle(_translate("MainWindow", "Ion Source Control System"))
        self.btnStop.setText(_translate("MainWindow", "Emergency Stop"))
        self.gbPinnedPlot.setTitle(_translate("MainWindow", "Pinned Plot"))
        self.btnResetPinnedPlot.setText(_translate("MainWindow", "Reset"))
        self.groupBox.setTitle(_translate("MainWindow", "Server Communication"))
        self.lblServPoll.setText(_translate("MainWindow", "Server polling rate: 15 Hz"))
        self.btnStartPause.setText(_translate("MainWindow", "Start Polling"))
        self.btnStop_2.setText(_translate("MainWindow", "Stop"))
        self.tabMain.setTabText(self.tabMain.indexOf(self.overview), _translate("MainWindow", "Overview"))
        self.treeDevices.setSortingEnabled(True)
        self.btnExpand.setText(_translate("MainWindow", "Expand All"))
        self.btnCollapse.setText(_translate("MainWindow", "Collapse All"))
        self.tabMain.setTabText(self.tabMain.indexOf(self.devices), _translate("MainWindow", "Devices"))
        self.btnSetupDevicePlots.setText(_translate("MainWindow", "Choose Channels to Plot"))
        self.tabMain.setTabText(self.tabMain.indexOf(self.plotting), _translate("MainWindow", "Plotting"))
        self.btnAddProcedure.setText(_translate("MainWindow", "Add Procedure"))
        self.tabMain.setTabText(self.tabMain.indexOf(self.procedures), _translate("MainWindow", "Procedures"))
        self.tabMain.setTabText(self.tabMain.indexOf(self.log), _translate("MainWindow", "Message Log"))
        self.toolBar.setWindowTitle(_translate("MainWindow", "toolBar"))
        self.menu_File.setTitle(_translate("MainWindow", "&File"))
        self.menu_Configure.setTitle(_translate("MainWindow", "&Configure"))
        self.menuHelp.setTitle(_translate("MainWindow", "Help"))
        self.menuPrint.setTitle(_translate("MainWindow", "Print"))
        self.btnQuit.setText(_translate("MainWindow", "Quit"))
        self.btnLoad.setText(_translate("MainWindow", "Load Session"))
        self.btnLoad.setToolTip(_translate("MainWindow", "Load Session"))
        self.btnSave.setText(_translate("MainWindow", "Save Session"))
        self.btnSaveAs.setText(_translate("MainWindow", "Save Session As"))
        self.action_new_session.setText(_translate("MainWindow", "&New Session"))
        self.action_load_session.setText(_translate("MainWindow", "&Load Session..."))
        self.action_save_session.setText(_translate("MainWindow", "&Save Session"))
        self.action_save_session_as.setText(_translate("MainWindow", "Save Session As..."))
        self.action_quit.setText(_translate("MainWindow", "&Quit"))
        self.action_slack.setText(_translate("MainWindow", "Slack..."))
        self.action_help.setText(_translate("MainWindow", "Help"))
        self.action_about.setText(_translate("MainWindow", "About"))
        self.btnAbout.setText(_translate("MainWindow", "About"))
        self.btnAbout.setToolTip(_translate("MainWindow", "About..."))
        self.action_settings.setText(_translate("MainWindow", "Settings..."))
        self.action_print.setText(_translate("MainWindow", "Print..."))
        self.action_print_preview.setText(_translate("MainWindow", "Print Preview..."))
Exemplo n.º 7
0
class Ui_MainWindow(object):
    def setupUi(self, MainWindow):
        MainWindow.setObjectName("MainWindow")
        MainWindow.resize(1043, 858)
        self.centralwidget = QtWidgets.QWidget(MainWindow)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.centralwidget.sizePolicy().hasHeightForWidth())
        self.centralwidget.setSizePolicy(sizePolicy)
        self.centralwidget.setObjectName("centralwidget")
        self.gridLayoutWidget = QtWidgets.QWidget(self.centralwidget)
        self.gridLayoutWidget.setGeometry(QtCore.QRect(20, 90, 1001, 691))
        self.gridLayoutWidget.setObjectName("gridLayoutWidget")
        self.gridLayout = QtWidgets.QGridLayout(self.gridLayoutWidget)
        self.gridLayout.setSizeConstraint(QtWidgets.QLayout.SetMaximumSize)
        self.gridLayout.setContentsMargins(10, 10, 10, 10)
        self.gridLayout.setSpacing(20)
        self.gridLayout.setObjectName("gridLayout")
        self.graphicsView_Green = PlotWidget(self.gridLayoutWidget)
        font = QtGui.QFont()
        font.setPointSize(12)
        self.graphicsView_Green.setFont(font)
        self.graphicsView_Green.setObjectName("graphicsView_Green")
        self.gridLayout.addWidget(self.graphicsView_Green, 0, 1, 1, 1)
        self.graphicsView_White = PlotWidget(self.gridLayoutWidget)
        font = QtGui.QFont()
        font.setPointSize(12)
        self.graphicsView_White.setFont(font)
        self.graphicsView_White.setObjectName("graphicsView_White")
        self.gridLayout.addWidget(self.graphicsView_White, 1, 1, 1, 1)
        self.graphicsView_Red = PlotWidget(self.gridLayoutWidget)
        font = QtGui.QFont()
        font.setPointSize(12)
        self.graphicsView_Red.setFont(font)
        self.graphicsView_Red.setStyleSheet(
            "color: rgb(255, 255, 255);\n"
            "background-color: rgb(255, 255, 255);")
        self.graphicsView_Red.setObjectName("graphicsView_Red")
        self.gridLayout.addWidget(self.graphicsView_Red, 0, 0, 1, 1)
        self.graphicsView_Blue = PlotWidget(self.gridLayoutWidget)
        font = QtGui.QFont()
        font.setPointSize(12)
        self.graphicsView_Blue.setFont(font)
        self.graphicsView_Blue.setObjectName("graphicsView_Blue")
        self.gridLayout.addWidget(self.graphicsView_Blue, 1, 0, 1, 1)
        self.groupBox = QtWidgets.QGroupBox(self.centralwidget)
        self.groupBox.setGeometry(QtCore.QRect(430, 20, 326, 51))
        self.groupBox.setTitle("")
        self.groupBox.setObjectName("groupBox")
        self.dependence_IC = QtWidgets.QRadioButton(self.groupBox)
        self.dependence_IC.setGeometry(QtCore.QRect(85, 17, 82, 17))
        font = QtGui.QFont()
        font.setPointSize(12)
        self.dependence_IC.setFont(font)
        self.dependence_IC.setObjectName("dependence_IC")
        self.dependence_LI = QtWidgets.QRadioButton(self.groupBox)
        self.dependence_LI.setGeometry(QtCore.QRect(20, 17, 82, 17))
        font = QtGui.QFont()
        font.setPointSize(12)
        self.dependence_LI.setFont(font)
        self.dependence_LI.setChecked(True)
        self.dependence_LI.setObjectName("dependence_LI")
        self.dependence_LC = QtWidgets.QRadioButton(self.groupBox)
        self.dependence_LC.setGeometry(QtCore.QRect(175, 17, 82, 17))
        font = QtGui.QFont()
        font.setPointSize(12)
        self.dependence_LC.setFont(font)
        self.dependence_LC.setObjectName("dependence_LC")
        self.dependence_All = QtWidgets.QRadioButton(self.groupBox)
        self.dependence_All.setGeometry(QtCore.QRect(270, 17, 56, 17))
        font = QtGui.QFont()
        font.setPointSize(12)
        self.dependence_All.setFont(font)
        self.dependence_All.setObjectName("dependence_All")
        self.groupBox_2 = QtWidgets.QGroupBox(self.centralwidget)
        self.groupBox_2.setGeometry(QtCore.QRect(20, 20, 401, 51))
        self.groupBox_2.setTitle("")
        self.groupBox_2.setObjectName("groupBox_2")
        self.comboBox_Port = QtWidgets.QComboBox(self.groupBox_2)
        self.comboBox_Port.setGeometry(QtCore.QRect(10, 10, 111, 31))
        font = QtGui.QFont()
        font.setPointSize(12)
        self.comboBox_Port.setFont(font)
        self.comboBox_Port.setObjectName("comboBox_Port")
        self.pushButton_GO = QtWidgets.QPushButton(self.groupBox_2)
        self.pushButton_GO.setGeometry(QtCore.QRect(265, 10, 41, 31))
        font = QtGui.QFont()
        font.setPointSize(12)
        self.pushButton_GO.setFont(font)
        self.pushButton_GO.setObjectName("pushButton_GO")
        self.comboBox_LED_Model = QtWidgets.QComboBox(self.groupBox_2)
        self.comboBox_LED_Model.setGeometry(QtCore.QRect(130, 10, 131, 31))
        font = QtGui.QFont()
        font.setPointSize(12)
        self.comboBox_LED_Model.setFont(font)
        self.comboBox_LED_Model.setObjectName("comboBox_LED_Model")
        self.comboBox_LED_Model.addItem("")
        self.comboBox_LED_Model.addItem("")
        self.comboBox_LED_Model.addItem("")
        self.comboBox_LED_Model.addItem("")
        self.comboBox_LED_Model.addItem("")
        self.pushButton_GO_FAST = QtWidgets.QPushButton(self.groupBox_2)
        self.pushButton_GO_FAST.setGeometry(QtCore.QRect(310, 10, 81, 31))
        font = QtGui.QFont()
        font.setPointSize(12)
        self.pushButton_GO_FAST.setFont(font)
        self.pushButton_GO_FAST.setObjectName("pushButton_GO_FAST")
        self.progressBar = QtWidgets.QProgressBar(self.centralwidget)
        self.progressBar.setEnabled(True)
        self.progressBar.setGeometry(QtCore.QRect(770, 30, 266, 31))
        font = QtGui.QFont()
        font.setPointSize(12)
        font.setStrikeOut(False)
        self.progressBar.setFont(font)
        self.progressBar.setProperty("value", 0)
        self.progressBar.setObjectName("progressBar")
        MainWindow.setCentralWidget(self.centralwidget)
        self.menubar = QtWidgets.QMenuBar(MainWindow)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 1043, 21))
        self.menubar.setObjectName("menubar")
        MainWindow.setMenuBar(self.menubar)
        self.statusbar = QtWidgets.QStatusBar(MainWindow)
        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", "LED Test"))
        self.dependence_IC.setText(_translate("MainWindow", "I(Code)"))
        self.dependence_LI.setText(_translate("MainWindow", "L(I)"))
        self.dependence_LC.setText(_translate("MainWindow", "L(Code)"))
        self.dependence_All.setText(_translate("MainWindow", "All"))
        self.pushButton_GO.setText(_translate("MainWindow", "GO"))
        self.comboBox_LED_Model.setItemText(
            0, _translate("MainWindow", "WS2812b"))
        self.comboBox_LED_Model.setItemText(1,
                                            _translate("MainWindow", "WS2813"))
        self.comboBox_LED_Model.setItemText(
            2, _translate("MainWindow", "SK6812RGBW"))
        self.comboBox_LED_Model.setItemText(3,
                                            _translate("MainWindow", "SK9822"))
        self.comboBox_LED_Model.setItemText(4,
                                            _translate("MainWindow", "APA102"))
        self.pushButton_GO_FAST.setText(_translate("MainWindow", "GO FAST"))
Exemplo n.º 8
0
class Ui_MainWindow(object):
    def setupUi(self, MainWindow):
        MainWindow.setObjectName("MainWindow")
        MainWindow.resize(921, 390)
        MainWindow.setMinimumSize(QtCore.QSize(921, 390))
        MainWindow.setMaximumSize(QtCore.QSize(921, 390))
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap(":/image/image/JLUgeo.ico"),
                       QtGui.QIcon.Normal, QtGui.QIcon.Off)
        MainWindow.setWindowIcon(icon)
        self.centralwidget = QtWidgets.QWidget(MainWindow)
        font = QtGui.QFont()
        font.setFamily("Microsoft YaHei UI")
        self.centralwidget.setFont(font)
        self.centralwidget.setObjectName("centralwidget")
        self.pyqtgraph = PlotWidget(self.centralwidget)
        self.pyqtgraph.setGeometry(QtCore.QRect(20, 9, 461, 331))
        font = QtGui.QFont()
        font.setFamily("Microsoft YaHei UI Light")
        self.pyqtgraph.setFont(font)
        self.pyqtgraph.setObjectName("pyqtgraph")
        self.verticalLayoutWidget_2 = QtWidgets.QWidget(self.centralwidget)
        self.verticalLayoutWidget_2.setGeometry(QtCore.QRect(
            500, 10, 401, 331))
        self.verticalLayoutWidget_2.setObjectName("verticalLayoutWidget_2")
        self.verticalLayout_2 = QtWidgets.QVBoxLayout(
            self.verticalLayoutWidget_2)
        self.verticalLayout_2.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.lineEdit = QtWidgets.QLineEdit(self.verticalLayoutWidget_2)
        self.lineEdit.setEnabled(True)
        font = QtGui.QFont()
        font.setFamily("Microsoft YaHei UI")
        self.lineEdit.setFont(font)
        self.lineEdit.setReadOnly(True)
        self.lineEdit.setObjectName("lineEdit")
        self.horizontalLayout_2.addWidget(self.lineEdit)
        self.searchbutton = QtWidgets.QPushButton(self.verticalLayoutWidget_2)
        font = QtGui.QFont()
        font.setFamily("Microsoft YaHei UI")
        self.searchbutton.setFont(font)
        self.searchbutton.setObjectName("searchbutton")
        self.horizontalLayout_2.addWidget(self.searchbutton)
        self.browsebutton = QtWidgets.QPushButton(self.verticalLayoutWidget_2)
        font = QtGui.QFont()
        font.setFamily("Microsoft YaHei UI")
        self.browsebutton.setFont(font)
        self.browsebutton.setObjectName("browsebutton")
        self.horizontalLayout_2.addWidget(self.browsebutton)
        self.verticalLayout_2.addLayout(self.horizontalLayout_2)
        self.treeView = QtWidgets.QTreeView(self.verticalLayoutWidget_2)
        self.treeView.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
        self.treeView.setHorizontalScrollBarPolicy(
            QtCore.Qt.ScrollBarAlwaysOff)
        self.treeView.setAutoScroll(False)
        self.treeView.setObjectName("treeView")
        self.verticalLayout_2.addWidget(self.treeView)
        self.horizontalLayout = QtWidgets.QHBoxLayout()
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.verticalLayout = QtWidgets.QVBoxLayout()
        self.verticalLayout.setObjectName("verticalLayout")
        self.crosshaircheckbox = QtWidgets.QCheckBox(
            self.verticalLayoutWidget_2)
        font = QtGui.QFont()
        font.setFamily("Microsoft YaHei UI")
        self.crosshaircheckbox.setFont(font)
        self.crosshaircheckbox.setObjectName("crosshaircheckbox")
        self.verticalLayout.addWidget(self.crosshaircheckbox)
        self.showgridcheckbox = QtWidgets.QCheckBox(
            self.verticalLayoutWidget_2)
        font = QtGui.QFont()
        font.setFamily("Microsoft YaHei UI")
        self.showgridcheckbox.setFont(font)
        self.showgridcheckbox.setChecked(True)
        self.showgridcheckbox.setObjectName("showgridcheckbox")
        self.verticalLayout.addWidget(self.showgridcheckbox)
        self.horizontalLayout.addLayout(self.verticalLayout)
        self.clearbutton = QtWidgets.QPushButton(self.verticalLayoutWidget_2)
        font = QtGui.QFont()
        font.setFamily("Microsoft YaHei UI")
        self.clearbutton.setFont(font)
        self.clearbutton.setObjectName("clearbutton")
        self.horizontalLayout.addWidget(self.clearbutton)
        self.verticalLayout_2.addLayout(self.horizontalLayout)
        MainWindow.setCentralWidget(self.centralwidget)
        self.statusbar = QtWidgets.QStatusBar(MainWindow)
        self.statusbar.setObjectName("statusbar")
        MainWindow.setStatusBar(self.statusbar)
        self.menuBar = QtWidgets.QMenuBar(MainWindow)
        self.menuBar.setGeometry(QtCore.QRect(0, 0, 921, 23))
        self.menuBar.setObjectName("menuBar")
        self.menuSetting = QtWidgets.QMenu(self.menuBar)
        self.menuSetting.setObjectName("menuSetting")
        MainWindow.setMenuBar(self.menuBar)
        self.About = QtWidgets.QAction(MainWindow)
        font = QtGui.QFont()
        font.setFamily("Microsoft YaHei UI")
        self.About.setFont(font)
        self.About.setObjectName("About")
        self.Help = QtWidgets.QAction(MainWindow)
        self.Help.setObjectName("Help")
        self.Notepad = QtWidgets.QAction(MainWindow)
        self.Notepad.setObjectName("Notepad")
        self.Findpeaks = QtWidgets.QAction(MainWindow)
        self.Findpeaks.setObjectName("Findpeaks")
        self.menuSetting.addAction(self.Findpeaks)
        self.menuSetting.addAction(self.Notepad)
        self.menuSetting.addSeparator()
        self.menuSetting.addAction(self.Help)
        self.menuSetting.addAction(self.About)
        self.menuBar.addAction(self.menuSetting.menuAction())

        self.retranslateUi(MainWindow)
        QtCore.QMetaObject.connectSlotsByName(MainWindow)
        MainWindow.setTabOrder(self.browsebutton, self.treeView)
        MainWindow.setTabOrder(self.treeView, self.lineEdit)

    def retranslateUi(self, MainWindow):
        _translate = QtCore.QCoreApplication.translate
        MainWindow.setWindowTitle(
            _translate("MainWindow", "Rock Spectrum Assistant"))
        self.pyqtgraph.setWhatsThis(
            _translate("MainWindow",
                       "<html><head/><body><p>根据选择数据绘出的结果图</p></body></html>"))
        self.lineEdit.setText(_translate("MainWindow", "Working directory"))
        self.searchbutton.setText(_translate("MainWindow", "search"))
        self.browsebutton.setText(_translate("MainWindow", "browse"))
        self.crosshaircheckbox.setText(_translate("MainWindow", "Crosshair"))
        self.showgridcheckbox.setText(_translate("MainWindow", "ShowGrid"))
        self.clearbutton.setText(_translate("MainWindow", "Clear"))
        self.menuSetting.setTitle(_translate("MainWindow", "Modules"))
        self.About.setText(_translate("MainWindow", "About"))
        self.Help.setText(_translate("MainWindow", "Help"))
        self.Notepad.setText(_translate("MainWindow", "Notepad"))
        self.Findpeaks.setText(_translate("MainWindow", "Findpeaks"))
Exemplo n.º 9
0
class Ui_MainWindow(object):
    def setupUi(self, MainWindow):
        MainWindow.setObjectName("MainWindow")
        MainWindow.resize(1680, 917)
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap("../../.designer/backup/ico.svg"),
                       QtGui.QIcon.Normal, QtGui.QIcon.Off)
        MainWindow.setWindowIcon(icon)
        self.centralwidget = QtWidgets.QWidget(MainWindow)
        self.centralwidget.setObjectName("centralwidget")
        self.verticalLayout_14 = QtWidgets.QVBoxLayout(self.centralwidget)
        self.verticalLayout_14.setObjectName("verticalLayout_14")
        self.verticalLayout_13 = QtWidgets.QVBoxLayout()
        self.verticalLayout_13.setObjectName("verticalLayout_13")
        self.verticalLayout_9 = QtWidgets.QVBoxLayout()
        self.verticalLayout_9.setObjectName("verticalLayout_9")
        self.horizontalLayout_9 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_9.setObjectName("horizontalLayout_9")
        self.groupBox_7 = QtWidgets.QGroupBox(self.centralwidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.groupBox_7.sizePolicy().hasHeightForWidth())
        self.groupBox_7.setSizePolicy(sizePolicy)
        self.groupBox_7.setObjectName("groupBox_7")
        self.horizontalLayout_10 = QtWidgets.QHBoxLayout(self.groupBox_7)
        self.horizontalLayout_10.setObjectName("horizontalLayout_10")
        self.consolle = QtWidgets.QPushButton(self.groupBox_7)
        self.consolle.setObjectName("consolle")
        self.horizontalLayout_10.addWidget(self.consolle)
        self.b_protocol = QtWidgets.QPushButton(self.groupBox_7)
        self.b_protocol.setObjectName("b_protocol")
        self.horizontalLayout_10.addWidget(self.b_protocol)
        self.b_load = QtWidgets.QPushButton(self.groupBox_7)
        self.b_load.setObjectName("b_load")
        self.horizontalLayout_10.addWidget(self.b_load)
        self.horizontalLayout_9.addWidget(self.groupBox_7)
        spacerItem = QtWidgets.QSpacerItem(1110, 20,
                                           QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_9.addItem(spacerItem)
        self.groupBox_8 = QtWidgets.QGroupBox(self.centralwidget)
        self.groupBox_8.setObjectName("groupBox_8")
        self.horizontalLayout_11 = QtWidgets.QHBoxLayout(self.groupBox_8)
        self.horizontalLayout_11.setObjectName("horizontalLayout_11")
        self.b_saveprotocol = QtWidgets.QPushButton(self.groupBox_8)
        self.b_saveprotocol.setObjectName("b_saveprotocol")
        self.horizontalLayout_11.addWidget(self.b_saveprotocol)
        self.b_saveEdata = QtWidgets.QPushButton(self.groupBox_8)
        self.b_saveEdata.setObjectName("b_saveEdata")
        self.horizontalLayout_11.addWidget(self.b_saveEdata)
        self.b_saveFdata = QtWidgets.QPushButton(self.groupBox_8)
        self.b_saveFdata.setObjectName("b_saveFdata")
        self.horizontalLayout_11.addWidget(self.b_saveFdata)
        self.b_saveexperiment = QtWidgets.QPushButton(self.groupBox_8)
        self.b_saveexperiment.setObjectName("b_saveexperiment")
        self.horizontalLayout_11.addWidget(self.b_saveexperiment)
        self.horizontalLayout_9.addWidget(self.groupBox_8)
        self.verticalLayout_9.addLayout(self.horizontalLayout_9)
        spacerItem1 = QtWidgets.QSpacerItem(20, 10,
                                            QtWidgets.QSizePolicy.Minimum,
                                            QtWidgets.QSizePolicy.Preferred)
        self.verticalLayout_9.addItem(spacerItem1)
        self.splitter = QtWidgets.QSplitter(self.centralwidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.splitter.sizePolicy().hasHeightForWidth())
        self.splitter.setSizePolicy(sizePolicy)
        self.splitter.setOrientation(QtCore.Qt.Horizontal)
        self.splitter.setObjectName("splitter")
        self.layoutWidget = QtWidgets.QWidget(self.splitter)
        self.layoutWidget.setObjectName("layoutWidget")
        self.verticalLayout = QtWidgets.QVBoxLayout(self.layoutWidget)
        self.verticalLayout.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout.setObjectName("verticalLayout")
        self.g_fz_all = PlotWidget(self.layoutWidget)
        self.g_fz_all.setObjectName("g_fz_all")
        self.verticalLayout.addWidget(self.g_fz_all)
        self.g_fz_single = PlotWidget(self.layoutWidget)
        self.g_fz_single.setObjectName("g_fz_single")
        self.verticalLayout.addWidget(self.g_fz_single)
        self.layoutWidget1 = QtWidgets.QWidget(self.splitter)
        self.layoutWidget1.setObjectName("layoutWidget1")
        self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.layoutWidget1)
        self.verticalLayout_2.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        self.g_fizi_all = PlotWidget(self.layoutWidget1)
        self.g_fizi_all.setObjectName("g_fizi_all")
        self.verticalLayout_2.addWidget(self.g_fizi_all)
        self.g_fizi_single = PlotWidget(self.layoutWidget1)
        self.g_fizi_single.setEnabled(True)
        self.g_fizi_single.setInteractive(True)
        self.g_fizi_single.setObjectName("g_fizi_single")
        self.verticalLayout_2.addWidget(self.g_fizi_single)
        self.layoutWidget2 = QtWidgets.QWidget(self.splitter)
        self.layoutWidget2.setObjectName("layoutWidget2")
        self.verticalLayout_3 = QtWidgets.QVBoxLayout(self.layoutWidget2)
        self.verticalLayout_3.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout_3.setObjectName("verticalLayout_3")
        self.horizontalLayout_4 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_4.setObjectName("horizontalLayout_4")
        self.horizontalLayout_3 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_3.setObjectName("horizontalLayout_3")
        self.label_13 = QtWidgets.QLabel(self.layoutWidget2)
        self.label_13.setObjectName("label_13")
        self.horizontalLayout_3.addWidget(self.label_13)
        self.es_interpolate = QtWidgets.QCheckBox(self.layoutWidget2)
        self.es_interpolate.setText("")
        self.es_interpolate.setChecked(True)
        self.es_interpolate.setObjectName("es_interpolate")
        self.horizontalLayout_3.addWidget(self.es_interpolate)
        self.horizontalLayout_4.addLayout(self.horizontalLayout_3)
        self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.label_8 = QtWidgets.QLabel(self.layoutWidget2)
        self.label_8.setObjectName("label_8")
        self.horizontalLayout_2.addWidget(self.label_8)
        self.es_win = QtWidgets.QSpinBox(self.layoutWidget2)
        self.es_win.setMinimum(3)
        self.es_win.setMaximum(9999)
        self.es_win.setProperty("value", 21)
        self.es_win.setObjectName("es_win")
        self.horizontalLayout_2.addWidget(self.es_win)
        self.horizontalLayout_4.addLayout(self.horizontalLayout_2)
        self.horizontalLayout = QtWidgets.QHBoxLayout()
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.label_21 = QtWidgets.QLabel(self.layoutWidget2)
        self.label_21.setObjectName("label_21")
        self.horizontalLayout.addWidget(self.label_21)
        self.es_order = QtWidgets.QSpinBox(self.layoutWidget2)
        self.es_order.setMinimum(1)
        self.es_order.setMaximum(9)
        self.es_order.setProperty("value", 3)
        self.es_order.setObjectName("es_order")
        self.horizontalLayout.addWidget(self.es_order)
        self.horizontalLayout_4.addLayout(self.horizontalLayout)
        self.verticalLayout_3.addLayout(self.horizontalLayout_4)
        self.g_eze_all = PlotWidget(self.layoutWidget2)
        self.g_eze_all.setEnabled(True)
        font = QtGui.QFont()
        font.setBold(True)
        self.g_eze_all.setFont(font)
        self.g_eze_all.setAcceptDrops(True)
        self.g_eze_all.setInteractive(True)
        self.g_eze_all.setObjectName("g_eze_all")
        self.verticalLayout_3.addWidget(self.g_eze_all)
        self.g_eze_single = PlotWidget(self.layoutWidget2)
        self.g_eze_single.setEnabled(True)
        self.g_eze_single.setObjectName("g_eze_single")
        self.verticalLayout_3.addWidget(self.g_eze_single)
        self.layoutWidget3 = QtWidgets.QWidget(self.splitter)
        self.layoutWidget3.setObjectName("layoutWidget3")
        self.verticalLayout_8 = QtWidgets.QVBoxLayout(self.layoutWidget3)
        self.verticalLayout_8.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout_8.setObjectName("verticalLayout_8")
        self.g_scatter1 = PlotWidget(self.layoutWidget3)
        self.g_scatter1.setEnabled(True)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.g_scatter1.sizePolicy().hasHeightForWidth())
        self.g_scatter1.setSizePolicy(sizePolicy)
        self.g_scatter1.setLineWidth(0)
        self.g_scatter1.setMidLineWidth(0)
        self.g_scatter1.setAlignment(QtCore.Qt.AlignCenter)
        self.g_scatter1.setObjectName("g_scatter1")
        self.verticalLayout_8.addWidget(self.g_scatter1)
        self.g_scatter2 = PlotWidget(self.layoutWidget3)
        self.g_scatter2.setEnabled(True)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.g_scatter2.sizePolicy().hasHeightForWidth())
        self.g_scatter2.setSizePolicy(sizePolicy)
        self.g_scatter2.setLineWidth(0)
        self.g_scatter2.setMidLineWidth(0)
        self.g_scatter2.setAlignment(QtCore.Qt.AlignCenter)
        self.g_scatter2.setObjectName("g_scatter2")
        self.verticalLayout_8.addWidget(self.g_scatter2)
        self.verticalLayout_9.addWidget(self.splitter)
        self.verticalLayout_13.addLayout(self.verticalLayout_9)
        self.horizontalLayout_8 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_8.setObjectName("horizontalLayout_8")
        self.horizontalLayout_5 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_5.setObjectName("horizontalLayout_5")
        self.groupBox_5 = QtWidgets.QGroupBox(self.centralwidget)
        self.groupBox_5.setObjectName("groupBox_5")
        self.verticalLayout_5 = QtWidgets.QVBoxLayout(self.groupBox_5)
        self.verticalLayout_5.setObjectName("verticalLayout_5")
        self.sel_filter = QtWidgets.QComboBox(self.groupBox_5)
        self.sel_filter.setLayoutDirection(QtCore.Qt.LeftToRight)
        self.sel_filter.setAutoFillBackground(False)
        self.sel_filter.setFrame(True)
        self.sel_filter.setObjectName("sel_filter")
        self.sel_filter.addItem("")
        self.verticalLayout_5.addWidget(self.sel_filter)
        self.tabfilters = QtWidgets.QTabWidget(self.groupBox_5)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.tabfilters.sizePolicy().hasHeightForWidth())
        self.tabfilters.setSizePolicy(sizePolicy)
        self.tabfilters.setTabPosition(QtWidgets.QTabWidget.North)
        self.tabfilters.setUsesScrollButtons(True)
        self.tabfilters.setDocumentMode(False)
        self.tabfilters.setTabsClosable(True)
        self.tabfilters.setMovable(True)
        self.tabfilters.setTabBarAutoHide(False)
        self.tabfilters.setObjectName("tabfilters")
        self.verticalLayout_5.addWidget(self.tabfilters)
        self.horizontalLayout_5.addWidget(self.groupBox_5)
        self.boxCP = QtWidgets.QGroupBox(self.centralwidget)
        self.boxCP.setObjectName("boxCP")
        self.verticalLayout_4 = QtWidgets.QVBoxLayout(self.boxCP)
        self.verticalLayout_4.setObjectName("verticalLayout_4")
        self.sel_cp = QtWidgets.QComboBox(self.boxCP)
        self.sel_cp.setObjectName("sel_cp")
        self.sel_cp.addItem("")
        self.verticalLayout_4.addWidget(self.sel_cp)
        self.box_cp = QtWidgets.QGroupBox(self.boxCP)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.box_cp.sizePolicy().hasHeightForWidth())
        self.box_cp.setSizePolicy(sizePolicy)
        self.box_cp.setObjectName("box_cp")
        self.verticalLayout_4.addWidget(self.box_cp)
        self.setZeroForce = QtWidgets.QCheckBox(self.boxCP)
        self.setZeroForce.setChecked(True)
        self.setZeroForce.setObjectName("setZeroForce")
        self.verticalLayout_4.addWidget(self.setZeroForce)
        self.horizontalLayout_5.addWidget(self.boxCP)
        self.horizontalLayout_8.addLayout(self.horizontalLayout_5)
        self.horizontalLayout_6 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_6.setObjectName("horizontalLayout_6")
        self.groupBox_10 = QtWidgets.QGroupBox(self.centralwidget)
        self.groupBox_10.setObjectName("groupBox_10")
        self.verticalLayout_6 = QtWidgets.QVBoxLayout(self.groupBox_10)
        self.verticalLayout_6.setObjectName("verticalLayout_6")
        self.sel_fmodel = QtWidgets.QComboBox(self.groupBox_10)
        self.sel_fmodel.setObjectName("sel_fmodel")
        self.sel_fmodel.addItem("")
        self.verticalLayout_6.addWidget(self.sel_fmodel)
        self.box_fmodel = QtWidgets.QGroupBox(self.groupBox_10)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.box_fmodel.sizePolicy().hasHeightForWidth())
        self.box_fmodel.setSizePolicy(sizePolicy)
        self.box_fmodel.setObjectName("box_fmodel")
        self.verticalLayout_6.addWidget(self.box_fmodel)
        self.formLayout = QtWidgets.QFormLayout()
        self.formLayout.setObjectName("formLayout")
        self.label_9 = QtWidgets.QLabel(self.groupBox_10)
        self.label_9.setObjectName("label_9")
        self.formLayout.setWidget(0, QtWidgets.QFormLayout.LabelRole,
                                  self.label_9)
        self.zi_min = QtWidgets.QSpinBox(self.groupBox_10)
        self.zi_min.setMinimum(0)
        self.zi_min.setMaximum(9999)
        self.zi_min.setProperty("value", 0)
        self.zi_min.setObjectName("zi_min")
        self.formLayout.setWidget(0, QtWidgets.QFormLayout.FieldRole,
                                  self.zi_min)
        self.label_11 = QtWidgets.QLabel(self.groupBox_10)
        self.label_11.setObjectName("label_11")
        self.formLayout.setWidget(1, QtWidgets.QFormLayout.LabelRole,
                                  self.label_11)
        self.zi_max = QtWidgets.QSpinBox(self.groupBox_10)
        self.zi_max.setMinimum(0)
        self.zi_max.setMaximum(9999)
        self.zi_max.setProperty("value", 800)
        self.zi_max.setObjectName("zi_max")
        self.formLayout.setWidget(1, QtWidgets.QFormLayout.FieldRole,
                                  self.zi_max)
        self.verticalLayout_6.addLayout(self.formLayout)
        self.horizontalLayout_6.addWidget(self.groupBox_10)
        self.groupBox_11 = QtWidgets.QGroupBox(self.centralwidget)
        self.groupBox_11.setObjectName("groupBox_11")
        self.verticalLayout_7 = QtWidgets.QVBoxLayout(self.groupBox_11)
        self.verticalLayout_7.setObjectName("verticalLayout_7")
        self.sel_emodel = QtWidgets.QComboBox(self.groupBox_11)
        self.sel_emodel.setObjectName("sel_emodel")
        self.sel_emodel.addItem("")
        self.verticalLayout_7.addWidget(self.sel_emodel)
        self.box_emodel = QtWidgets.QGroupBox(self.groupBox_11)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.box_emodel.sizePolicy().hasHeightForWidth())
        self.box_emodel.setSizePolicy(sizePolicy)
        self.box_emodel.setObjectName("box_emodel")
        self.verticalLayout_7.addWidget(self.box_emodel)
        self.formLayout_3 = QtWidgets.QFormLayout()
        self.formLayout_3.setObjectName("formLayout_3")
        self.label_12 = QtWidgets.QLabel(self.groupBox_11)
        self.label_12.setObjectName("label_12")
        self.formLayout_3.setWidget(0, QtWidgets.QFormLayout.LabelRole,
                                    self.label_12)
        self.ze_min = QtWidgets.QSpinBox(self.groupBox_11)
        self.ze_min.setMinimum(0)
        self.ze_min.setMaximum(9999)
        self.ze_min.setProperty("value", 0)
        self.ze_min.setObjectName("ze_min")
        self.formLayout_3.setWidget(0, QtWidgets.QFormLayout.FieldRole,
                                    self.ze_min)
        self.label_14 = QtWidgets.QLabel(self.groupBox_11)
        self.label_14.setObjectName("label_14")
        self.formLayout_3.setWidget(1, QtWidgets.QFormLayout.LabelRole,
                                    self.label_14)
        self.ze_max = QtWidgets.QSpinBox(self.groupBox_11)
        self.ze_max.setMinimum(0)
        self.ze_max.setMaximum(9999)
        self.ze_max.setProperty("value", 800)
        self.ze_max.setObjectName("ze_max")
        self.formLayout_3.setWidget(1, QtWidgets.QFormLayout.FieldRole,
                                    self.ze_max)
        self.verticalLayout_7.addLayout(self.formLayout_3)
        self.horizontalLayout_6.addWidget(self.groupBox_11)
        self.horizontalLayout_8.addLayout(self.horizontalLayout_6)
        self.horizontalLayout_7 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_7.setObjectName("horizontalLayout_7")
        self.f_params = QtWidgets.QGroupBox(self.centralwidget)
        self.f_params.setObjectName("f_params")
        self.horizontalLayout_7.addWidget(self.f_params)
        self.e_params = QtWidgets.QGroupBox(self.centralwidget)
        self.e_params.setObjectName("e_params")
        self.horizontalLayout_7.addWidget(self.e_params)
        self.horizontalLayout_8.addLayout(self.horizontalLayout_7)
        self.groupBox_9 = QtWidgets.QGroupBox(self.centralwidget)
        self.groupBox_9.setObjectName("groupBox_9")
        self.verticalLayout_12 = QtWidgets.QVBoxLayout(self.groupBox_9)
        self.verticalLayout_12.setObjectName("verticalLayout_12")
        self.label = QtWidgets.QLabel(self.groupBox_9)
        self.label.setObjectName("label")
        self.verticalLayout_12.addWidget(self.label)
        self.slid_cv = QtWidgets.QSlider(self.groupBox_9)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.slid_cv.sizePolicy().hasHeightForWidth())
        self.slid_cv.setSizePolicy(sizePolicy)
        self.slid_cv.setOrientation(QtCore.Qt.Horizontal)
        self.slid_cv.setObjectName("slid_cv")
        self.verticalLayout_12.addWidget(self.slid_cv)
        self.label_2 = QtWidgets.QLabel(self.groupBox_9)
        self.label_2.setObjectName("label_2")
        self.verticalLayout_12.addWidget(self.label_2)
        self.slid_alpha = QtWidgets.QSlider(self.groupBox_9)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed,
                                           QtWidgets.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.slid_alpha.sizePolicy().hasHeightForWidth())
        self.slid_alpha.setSizePolicy(sizePolicy)
        self.slid_alpha.setMaximum(255)
        self.slid_alpha.setSingleStep(1)
        self.slid_alpha.setProperty("value", 100)
        self.slid_alpha.setOrientation(QtCore.Qt.Horizontal)
        self.slid_alpha.setObjectName("slid_alpha")
        self.verticalLayout_12.addWidget(self.slid_alpha)
        self.horizontalLayout_8.addWidget(self.groupBox_9)
        self.verticalLayout_13.addLayout(self.horizontalLayout_8)
        self.verticalLayout_14.addLayout(self.verticalLayout_13)
        MainWindow.setCentralWidget(self.centralwidget)
        self.statusbar = QtWidgets.QStatusBar(MainWindow)
        self.statusbar.setObjectName("statusbar")
        MainWindow.setStatusBar(self.statusbar)

        self.retranslateUi(MainWindow)
        self.tabfilters.setCurrentIndex(-1)
        QtCore.QMetaObject.connectSlotsByName(MainWindow)

    def retranslateUi(self, MainWindow):
        _translate = QtCore.QCoreApplication.translate
        MainWindow.setWindowTitle(_translate("MainWindow", "SoftMech2021"))
        self.groupBox_7.setTitle(_translate("MainWindow", "Load"))
        self.consolle.setText(_translate("MainWindow", "Consolle"))
        self.b_protocol.setText(_translate("MainWindow", "Load protocol"))
        self.b_load.setText(_translate("MainWindow", "Load experiment"))
        self.groupBox_8.setTitle(_translate("MainWindow", "Save"))
        self.b_saveprotocol.setText(_translate("MainWindow", "Save protocol"))
        self.b_saveEdata.setText(
            _translate("MainWindow", "Save Elastography analysis"))
        self.b_saveFdata.setText(
            _translate("MainWindow", "Save Indentation Analysis"))
        self.b_saveexperiment.setText(
            _translate("MainWindow", "Save experiment"))
        self.label_13.setText(_translate("MainWindow", "Interpolate"))
        self.label_8.setText(_translate("MainWindow", "Window"))
        self.label_21.setText(_translate("MainWindow", "Order"))
        self.groupBox_5.setTitle(_translate("MainWindow", "Filters"))
        self.sel_filter.setItemText(0, _translate("MainWindow", "-- add --"))
        self.boxCP.setTitle(_translate("MainWindow", "Contact Point "))
        self.sel_cp.setItemText(0, _translate("MainWindow", "-- none --"))
        self.setZeroForce.setText(_translate("MainWindow",
                                             "Set CP force to 0"))
        self.groupBox_10.setTitle(_translate("MainWindow", "Force-ind model"))
        self.sel_fmodel.setItemText(0, _translate("MainWindow", "-- none --"))
        self.label_9.setText(_translate("MainWindow", "Min ind [nm]"))
        self.label_11.setText(_translate("MainWindow", "Max ind [nm]"))
        self.groupBox_11.setTitle(
            _translate("MainWindow", "Elasticity Spectra model"))
        self.sel_emodel.setItemText(0, _translate("MainWindow", "-- none --"))
        self.label_12.setText(_translate("MainWindow", "Min ind [nm]"))
        self.label_14.setText(_translate("MainWindow", "Max ind [nm]"))
        self.f_params.setTitle(
            _translate("MainWindow", "Force-ind model params"))
        self.e_params.setTitle(
            _translate("MainWindow", "Elasticity Spectra model params"))
        self.groupBox_9.setTitle(_translate("MainWindow", "Sliders"))
        self.label.setText(_translate("MainWindow", "Slide through curves"))
        self.label_2.setText(_translate("MainWindow", "Trasnparency "))