Пример #1
0
class Ui_Dialog(object):
    def setupUi(self, Dialog):
        Dialog.setObjectName("Dialog")
        Dialog.resize(800, 450)
        self.verticalLayout = QtWidgets.QVBoxLayout(Dialog)
        self.verticalLayout.setObjectName("verticalLayout")
        self.widget = QtWidgets.QWidget(Dialog)
        self.widget.setObjectName("widget")
        self.horizontalLayout_2 = QtWidgets.QHBoxLayout(self.widget)
        self.horizontalLayout_2.setContentsMargins(0, 0, 0, 0)
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.widget_3 = QtWidgets.QWidget(self.widget)
        self.widget_3.setObjectName("widget_3")
        self.label = QtWidgets.QLabel(self.widget_3)
        self.label.setGeometry(QtCore.QRect(30, 340, 67, 17))
        self.label.setObjectName("label")
        self.label_2 = QtWidgets.QLabel(self.widget_3)
        self.label_2.setGeometry(QtCore.QRect(20, 0, 67, 17))
        self.label_2.setObjectName("label_2")
        self.lineEdit = QtWidgets.QLineEdit(self.widget_3)
        self.lineEdit.setGeometry(QtCore.QRect(10, 30, 113, 27))
        self.lineEdit.setObjectName("lineEdit")
        self.horizontalLayout_2.addWidget(self.widget_3)
        self.graphicsView = PlotWidget(self.widget)
        self.graphicsView.setMaximumSize(QtCore.QSize(640, 16777215))
        self.graphicsView.setObjectName("graphicsView")
        self.horizontalLayout_2.addWidget(self.graphicsView)
        self.verticalLayout.addWidget(self.widget)
        self.widget_2 = QtWidgets.QWidget(Dialog)
        self.widget_2.setMaximumSize(QtCore.QSize(16777215, 30))
        self.widget_2.setObjectName("widget_2")
        self.horizontalLayout = QtWidgets.QHBoxLayout(self.widget_2)
        self.horizontalLayout.setContentsMargins(100, 0, 100, 0)
        self.horizontalLayout.setSpacing(100)
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.pushButton = QtWidgets.QPushButton(self.widget_2)
        self.pushButton.setObjectName("pushButton")
        self.horizontalLayout.addWidget(self.pushButton)
        self.pushButton_3 = QtWidgets.QPushButton(self.widget_2)
        self.pushButton_3.setObjectName("pushButton_3")
        self.horizontalLayout.addWidget(self.pushButton_3)
        self.pushButton_2 = QtWidgets.QPushButton(self.widget_2)
        self.pushButton_2.setObjectName("pushButton_2")
        self.horizontalLayout.addWidget(self.pushButton_2)
        self.verticalLayout.addWidget(self.widget_2)

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

    def retranslateUi(self, Dialog):
        _translate = QtCore.QCoreApplication.translate
        Dialog.setWindowTitle(_translate("Dialog", "Dialog"))
        self.label.setText(_translate("Dialog", "TextLabel"))
        self.label_2.setText(_translate("Dialog", "TextLabel"))
        self.pushButton.setText(_translate("Dialog", "PushButton"))
        self.pushButton_3.setText(_translate("Dialog", "PushButton"))
        self.pushButton_2.setText(_translate("Dialog", "PushButton"))
Пример #2
0
class Ui_Dialog(object):
    def setupUi(self, Dialog):
        Dialog.setObjectName("Dialog")
        Dialog.resize(800, 450)
        self.verticalLayout = QtWidgets.QVBoxLayout(Dialog)
        self.verticalLayout.setObjectName("verticalLayout")
        self.widget = QtWidgets.QWidget(Dialog)
        self.widget.setObjectName("widget")
        self.horizontalLayout_2 = QtWidgets.QHBoxLayout(self.widget)
        self.horizontalLayout_2.setContentsMargins(0, 0, 0, 0)
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.widget_3 = QtWidgets.QWidget(self.widget)
        self.widget_3.setObjectName("widget_3")
        self.label = QtWidgets.QLabel(self.widget_3)
        self.label.setGeometry(QtCore.QRect(30, 340, 67, 17))
        self.label.setObjectName("label")
        self.label_2 = QtWidgets.QLabel(self.widget_3)
        self.label_2.setGeometry(QtCore.QRect(20, 0, 67, 17))
        self.label_2.setObjectName("label_2")
        self.lineEdit = QtWidgets.QLineEdit(self.widget_3)
        self.lineEdit.setGeometry(QtCore.QRect(10, 30, 113, 27))
        self.lineEdit.setObjectName("lineEdit")
        self.horizontalLayout_2.addWidget(self.widget_3)
        self.graphicsView = PlotWidget(self.widget)
        self.graphicsView.setMaximumSize(QtCore.QSize(640, 16777215))
        self.graphicsView.setObjectName("graphicsView")
        self.horizontalLayout_2.addWidget(self.graphicsView)
        self.verticalLayout.addWidget(self.widget)
        self.widget_2 = QtWidgets.QWidget(Dialog)
        self.widget_2.setMaximumSize(QtCore.QSize(16777215, 30))
        self.widget_2.setObjectName("widget_2")
        self.horizontalLayout = QtWidgets.QHBoxLayout(self.widget_2)
        self.horizontalLayout.setContentsMargins(100, 0, 100, 0)
        self.horizontalLayout.setSpacing(100)
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.pushButton = QtWidgets.QPushButton(self.widget_2)
        self.pushButton.setObjectName("pushButton")
        self.horizontalLayout.addWidget(self.pushButton)
        self.pushButton_3 = QtWidgets.QPushButton(self.widget_2)
        self.pushButton_3.setObjectName("pushButton_3")
        self.horizontalLayout.addWidget(self.pushButton_3)
        self.pushButton_2 = QtWidgets.QPushButton(self.widget_2)
        self.pushButton_2.setObjectName("pushButton_2")
        self.horizontalLayout.addWidget(self.pushButton_2)
        self.verticalLayout.addWidget(self.widget_2)

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

    def retranslateUi(self, Dialog):
        _translate = QtCore.QCoreApplication.translate
        Dialog.setWindowTitle(_translate("Dialog", "Dialog"))
        self.label.setText(_translate("Dialog", "TextLabel"))
        self.label_2.setText(_translate("Dialog", "TextLabel"))
        self.pushButton.setText(_translate("Dialog", "PushButton"))
        self.pushButton_3.setText(_translate("Dialog", "PushButton"))
        self.pushButton_2.setText(_translate("Dialog", "PushButton"))
Пример #3
0
class Ui_MainWindow(object):
    def setupUi(self, MainWindow):
        MainWindow.setObjectName("MainWindow")
        MainWindow.resize(600, 600)
        MainWindow.setMinimumSize(QtCore.QSize(600, 600))
        MainWindow.setMaximumSize(QtCore.QSize(600, 600))
        self.centralwidget = QtWidgets.QWidget(MainWindow)
        self.centralwidget.setObjectName("centralwidget")
        self.grPlot = PlotWidget(self.centralwidget)
        self.grPlot.setGeometry(QtCore.QRect(50, 60, 500, 500))
        self.grPlot.setMinimumSize(QtCore.QSize(500, 500))
        self.grPlot.setMaximumSize(QtCore.QSize(500, 500))
        self.grPlot.setObjectName("grPlot")
        MainWindow.setCentralWidget(self.centralwidget)

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

    def retranslateUi(self, MainWindow):
        _translate = QtCore.QCoreApplication.translate
        MainWindow.setWindowTitle(_translate("MainWindow", "MainWindow"))
Пример #4
0
class Ui_MainWindow(object):
    def setupUi(self, MainWindow):
        MainWindow.setObjectName("MainWindow")
        MainWindow.resize(786, 601)
        self.centralwidget = QtWidgets.QWidget(MainWindow)
        self.centralwidget.setObjectName("centralwidget")
        self.gridLayout_3 = QtWidgets.QGridLayout(self.centralwidget)
        self.gridLayout_3.setObjectName("gridLayout_3")
        self.frame = QtWidgets.QFrame(self.centralwidget)
        self.frame.setFrameShape(QtWidgets.QFrame.StyledPanel)
        self.frame.setFrameShadow(QtWidgets.QFrame.Raised)
        self.frame.setObjectName("frame")
        self.gridLayout_2 = QtWidgets.QGridLayout(self.frame)
        self.gridLayout_2.setObjectName("gridLayout_2")
        self.Pause_Button = QtWidgets.QPushButton(self.frame)
        self.Pause_Button.setObjectName("Pause_Button")
        self.gridLayout_2.addWidget(self.Pause_Button, 0, 5, 1, 1)
        self.Data_File = QtWidgets.QLabel(self.frame)
        self.Data_File.setObjectName("Data_File")
        self.gridLayout_2.addWidget(self.Data_File, 0, 0, 1, 1)
        self.Stop_Button = QtWidgets.QPushButton(self.frame)
        self.Stop_Button.setObjectName("Stop_Button")
        self.gridLayout_2.addWidget(self.Stop_Button, 0, 4, 1, 1)
        self.DATA_File_lineEdit = QtWidgets.QLineEdit(self.frame)
        self.DATA_File_lineEdit.setObjectName("DATA_File_lineEdit")
        self.gridLayout_2.addWidget(self.DATA_File_lineEdit, 0, 1, 1, 1)
        self.Start_Button = QtWidgets.QPushButton(self.frame)
        self.Start_Button.setObjectName("Start_Button")
        self.gridLayout_2.addWidget(self.Start_Button, 0, 3, 1, 1)
        self.Browse_Path_Button = QtWidgets.QToolButton(self.frame)
        self.Browse_Path_Button.setFocusPolicy(QtCore.Qt.StrongFocus)
        self.Browse_Path_Button.setToolTipDuration(4)
        self.Browse_Path_Button.setAutoRaise(False)
        self.Browse_Path_Button.setObjectName("Browse_Path_Button")
        self.gridLayout_2.addWidget(self.Browse_Path_Button, 0, 2, 1, 1)
        spacerItem = QtWidgets.QSpacerItem(195, 20,
                                           QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Minimum)
        self.gridLayout_2.addItem(spacerItem, 0, 6, 1, 1)
        self.gridLayout_3.addWidget(self.frame, 0, 0, 1, 1)
        self.frame_2 = QtWidgets.QFrame(self.centralwidget)
        self.frame_2.setFrameShape(QtWidgets.QFrame.StyledPanel)
        self.frame_2.setFrameShadow(QtWidgets.QFrame.Raised)
        self.frame_2.setObjectName("frame_2")
        self.gridLayout = QtWidgets.QGridLayout(self.frame_2)
        self.gridLayout.setObjectName("gridLayout")
        self.graphicsView = PlotWidget(self.frame_2)
        self.graphicsView.setMaximumSize(QtCore.QSize(900, 16777215))
        self.graphicsView.setObjectName("graphicsView")
        self.gridLayout.addWidget(self.graphicsView, 0, 0, 1, 1)
        self.treeWidget = QtWidgets.QTreeWidget(self.frame_2)
        self.treeWidget.setMaximumSize(QtCore.QSize(16777215, 500))
        self.treeWidget.setObjectName("treeWidget")
        self.treeWidget.headerItem().setText(0, "1")
        self.gridLayout.addWidget(self.treeWidget, 1, 0, 1, 1)
        self.gridLayout_3.addWidget(self.frame_2, 1, 0, 1, 1)
        MainWindow.setCentralWidget(self.centralwidget)
        self.menubar = QtWidgets.QMenuBar(MainWindow)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 786, 21))
        self.menubar.setObjectName("menubar")
        self.menuFile = QtWidgets.QMenu(self.menubar)
        self.menuFile.setObjectName("menuFile")
        self.menuHelp = QtWidgets.QMenu(self.menubar)
        self.menuHelp.setObjectName("menuHelp")
        MainWindow.setMenuBar(self.menubar)
        self.statusbar = QtWidgets.QStatusBar(MainWindow)
        self.statusbar.setObjectName("statusbar")
        MainWindow.setStatusBar(self.statusbar)
        self.actionExit = QtWidgets.QAction(MainWindow)
        self.actionExit.setObjectName("actionExit")
        self.actionReadMe = QtWidgets.QAction(MainWindow)
        self.actionReadMe.setObjectName("actionReadMe")
        self.actionOpen_File = QtWidgets.QAction(MainWindow)
        self.actionOpen_File.setObjectName("actionOpen_File")
        self.menuFile.addAction(self.actionExit)
        self.menuHelp.addAction(self.actionReadMe)
        self.menubar.addAction(self.menuFile.menuAction())
        self.menubar.addAction(self.menuHelp.menuAction())

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

    def retranslateUi(self, MainWindow):
        _translate = QtCore.QCoreApplication.translate
        MainWindow.setWindowTitle(
            _translate("MainWindow", "Simulation Tool - 0.112345"))
        self.Pause_Button.setText(_translate("MainWindow", "Pause"))
        self.Data_File.setText(_translate("MainWindow", "Data File"))
        self.Stop_Button.setText(_translate("MainWindow", "Stop"))
        self.DATA_File_lineEdit.setPlaceholderText(
            _translate("MainWindow", "Choose your Data File"))
        self.Start_Button.setText(_translate("MainWindow", "Start"))
        self.Browse_Path_Button.setText(_translate("MainWindow", "Browse"))
        self.menuFile.setTitle(_translate("MainWindow", "File"))
        self.menuHelp.setTitle(_translate("MainWindow", "Help"))
        self.actionExit.setText(_translate("MainWindow", "Exit"))
        self.actionExit.setShortcut(_translate("MainWindow", "Ctrl+E"))
        self.actionReadMe.setText(_translate("MainWindow", "ReadMe"))
        self.actionReadMe.setShortcut(_translate("MainWindow", "Ctrl+R"))
        self.actionOpen_File.setText(_translate("MainWindow", "Open File"))
        self.actionOpen_File.setToolTip(_translate("MainWindow", "Open File"))
        self.actionOpen_File.setShortcut(_translate("MainWindow", "Ctrl+O"))
Пример #5
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"))
Пример #6
0
class Ui_MainWindow(object):
    def setupUi(self, MainWindow):
        MainWindow.setObjectName("MainWindow")
        MainWindow.resize(693, 348)
        self.centralwidget = QtWidgets.QWidget(MainWindow)
        self.centralwidget.setObjectName("centralwidget")
        self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.centralwidget)
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        spacerItem = QtWidgets.QSpacerItem(20, 10, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed)
        self.verticalLayout_2.addItem(spacerItem)
        self.horizontalLayout_12 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_12.setObjectName("horizontalLayout_12")
        self.horizontalLayout = QtWidgets.QHBoxLayout()
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.horizontalLayout_13 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_13.setObjectName("horizontalLayout_13")
        self.btnSheppCreate = QtWidgets.QPushButton(self.centralwidget)
        self.btnSheppCreate.setCheckable(False)
        self.btnSheppCreate.setFlat(True)
        self.btnSheppCreate.setObjectName("btnSheppCreate")
        self.horizontalLayout_13.addWidget(self.btnSheppCreate)
        self.comboSheppSize = QtWidgets.QComboBox(self.centralwidget)
        self.comboSheppSize.setObjectName("comboSheppSize")
        self.comboSheppSize.addItem("")
        self.comboSheppSize.addItem("")
        self.comboSheppSize.addItem("")
        self.comboSheppSize.addItem("")
        self.comboSheppSize.addItem("")
        self.horizontalLayout_13.addWidget(self.comboSheppSize)
        self.horizontalLayout.addLayout(self.horizontalLayout_13)
        spacerItem1 = QtWidgets.QSpacerItem(20, 20, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed)
        self.horizontalLayout.addItem(spacerItem1)
        self.btnBrowse = QtWidgets.QPushButton(self.centralwidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.btnBrowse.sizePolicy().hasHeightForWidth())
        self.btnBrowse.setSizePolicy(sizePolicy)
        self.btnBrowse.setMinimumSize(QtCore.QSize(100, 0))
        self.btnBrowse.setObjectName("btnBrowse")
        self.horizontalLayout.addWidget(self.btnBrowse)
        self.horizontalLayout_12.addLayout(self.horizontalLayout)
        spacerItem2 = QtWidgets.QSpacerItem(10, 20, QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_12.addItem(spacerItem2)
        self.verticalLayout_2.addLayout(self.horizontalLayout_12)
        self.horizontalLayout_14 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_14.setObjectName("horizontalLayout_14")
        self.phantomlbl = QtWidgets.QLabel(self.centralwidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.phantomlbl.sizePolicy().hasHeightForWidth())
        self.phantomlbl.setSizePolicy(sizePolicy)
        self.phantomlbl.setMouseTracking(True)
        self.phantomlbl.setFrameShape(QtWidgets.QFrame.Box)
        self.phantomlbl.setText("")
        self.phantomlbl.setObjectName("phantomlbl")
        self.horizontalLayout_14.addWidget(self.phantomlbl)
        self.tabWidget = QtWidgets.QTabWidget(self.centralwidget)
        self.tabWidget.setObjectName("tabWidget")
        self.tabGraph = QtWidgets.QWidget()
        self.tabGraph.setObjectName("tabGraph")
        self.verticalLayout_3 = QtWidgets.QVBoxLayout(self.tabGraph)
        self.verticalLayout_3.setObjectName("verticalLayout_3")
        self.verticalLayout_6 = QtWidgets.QVBoxLayout()
        self.verticalLayout_6.setObjectName("verticalLayout_6")
        self.graphicsPlotT1 = PlotWidget(self.tabGraph)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.graphicsPlotT1.sizePolicy().hasHeightForWidth())
        self.graphicsPlotT1.setSizePolicy(sizePolicy)
        self.graphicsPlotT1.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.graphicsPlotT1.setObjectName("graphicsPlotT1")
        self.verticalLayout_6.addWidget(self.graphicsPlotT1)
        self.graphicsPlotT2 = PlotWidget(self.tabGraph)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.graphicsPlotT2.sizePolicy().hasHeightForWidth())
        self.graphicsPlotT2.setSizePolicy(sizePolicy)
        self.graphicsPlotT2.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.graphicsPlotT2.setObjectName("graphicsPlotT2")
        self.verticalLayout_6.addWidget(self.graphicsPlotT2)
        self.verticalLayout_3.addLayout(self.verticalLayout_6)
        self.tabWidget.addTab(self.tabGraph, "")
        self.tabKspace = QtWidgets.QWidget()
        self.tabKspace.setObjectName("tabKspace")
        self.verticalLayout_4 = QtWidgets.QVBoxLayout(self.tabKspace)
        self.verticalLayout_4.setObjectName("verticalLayout_4")
        self.verticalLayout = QtWidgets.QVBoxLayout()
        self.verticalLayout.setObjectName("verticalLayout")
        self.kspaceLbl = QtWidgets.QLabel(self.tabKspace)
        self.kspaceLbl.setMinimumSize(QtCore.QSize(128, 128))
        self.kspaceLbl.setMouseTracking(True)
        self.kspaceLbl.setFrameShape(QtWidgets.QFrame.Box)
        self.kspaceLbl.setText("")
        self.kspaceLbl.setObjectName("kspaceLbl")
        self.verticalLayout.addWidget(self.kspaceLbl)
        self.verticalLayout_4.addLayout(self.verticalLayout)
        self.startSeq = QtWidgets.QPushButton(self.tabKspace)
        self.startSeq.setObjectName("startSeq")
        self.verticalLayout_4.addWidget(self.startSeq)
        self.tabWidget.addTab(self.tabKspace, "")
        self.horizontalLayout_14.addWidget(self.tabWidget)
        self.verticalLayout_2.addLayout(self.horizontalLayout_14)
        self.horizontalLayout_15 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_15.setSizeConstraint(QtWidgets.QLayout.SetDefaultConstraint)
        self.horizontalLayout_15.setObjectName("horizontalLayout_15")
        self.label_12 = QtWidgets.QLabel(self.centralwidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.label_12.sizePolicy().hasHeightForWidth())
        self.label_12.setSizePolicy(sizePolicy)
        self.label_12.setObjectName("label_12")
        self.horizontalLayout_15.addWidget(self.label_12, 0, QtCore.Qt.AlignRight)
        spacerItem3 = QtWidgets.QSpacerItem(13, 20, QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_15.addItem(spacerItem3)
        self.comboViewMode = QtWidgets.QComboBox(self.centralwidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.comboViewMode.sizePolicy().hasHeightForWidth())
        self.comboViewMode.setSizePolicy(sizePolicy)
        self.comboViewMode.setObjectName("comboViewMode")
        self.comboViewMode.addItem("")
        self.comboViewMode.addItem("")
        self.comboViewMode.addItem("")
        self.horizontalLayout_15.addWidget(self.comboViewMode)
        spacerItem4 = QtWidgets.QSpacerItem(90, 17, QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_15.addItem(spacerItem4)
        self.label_13 = QtWidgets.QLabel(self.centralwidget)
        self.label_13.setObjectName("label_13")
        self.horizontalLayout_15.addWidget(self.label_13, 0, QtCore.Qt.AlignRight)
        self.TimeEcho = QtWidgets.QLineEdit(self.centralwidget)
        self.TimeEcho.setMaximumSize(QtCore.QSize(40, 15))
        self.TimeEcho.setObjectName("TimeEcho")
        self.horizontalLayout_15.addWidget(self.TimeEcho)
        spacerItem5 = QtWidgets.QSpacerItem(13, 20, QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_15.addItem(spacerItem5)
        self.label_14 = QtWidgets.QLabel(self.centralwidget)
        self.label_14.setObjectName("label_14")
        self.horizontalLayout_15.addWidget(self.label_14, 0, QtCore.Qt.AlignRight)
        self.TimeRepeat = QtWidgets.QLineEdit(self.centralwidget)
        self.TimeRepeat.setMaximumSize(QtCore.QSize(40, 15))
        self.TimeRepeat.setObjectName("TimeRepeat")
        self.horizontalLayout_15.addWidget(self.TimeRepeat)
        spacerItem6 = QtWidgets.QSpacerItem(13, 20, QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_15.addItem(spacerItem6)
        self.label_15 = QtWidgets.QLabel(self.centralwidget)
        self.label_15.setObjectName("label_15")
        self.horizontalLayout_15.addWidget(self.label_15, 0, QtCore.Qt.AlignRight)
        self.FlipAngle = QtWidgets.QLineEdit(self.centralwidget)
        self.FlipAngle.setMaximumSize(QtCore.QSize(40, 15))
        self.FlipAngle.setObjectName("FlipAngle")
        self.horizontalLayout_15.addWidget(self.FlipAngle)
        spacerItem7 = QtWidgets.QSpacerItem(13, 20, QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_15.addItem(spacerItem7)
        self.verticalLayout_2.addLayout(self.horizontalLayout_15)
        MainWindow.setCentralWidget(self.centralwidget)
        self.menubar = QtWidgets.QMenuBar(MainWindow)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 693, 18))
        self.menubar.setObjectName("menubar")
        MainWindow.setMenuBar(self.menubar)
        self.statusbar = QtWidgets.QStatusBar(MainWindow)
        self.statusbar.setObjectName("statusbar")
        MainWindow.setStatusBar(self.statusbar)

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

    def retranslateUi(self, MainWindow):
        _translate = QtCore.QCoreApplication.translate
        MainWindow.setWindowTitle(_translate("MainWindow", "MRI Sequence Simulator"))
        self.btnSheppCreate.setText(_translate("MainWindow", "Shepp-Logan"))
        self.comboSheppSize.setItemText(0, _translate("MainWindow", "32"))
        self.comboSheppSize.setItemText(1, _translate("MainWindow", "64"))
        self.comboSheppSize.setItemText(2, _translate("MainWindow", "128"))
        self.comboSheppSize.setItemText(3, _translate("MainWindow", "256"))
        self.comboSheppSize.setItemText(4, _translate("MainWindow", "512"))
        self.btnBrowse.setText(_translate("MainWindow", "Browse"))
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.tabGraph), _translate("MainWindow", "Graphs"))
        self.startSeq.setText(_translate("MainWindow", "Start Sequence"))
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.tabKspace), _translate("MainWindow", "K-space "))
        self.label_12.setText(_translate("MainWindow", "Show"))
        self.comboViewMode.setItemText(0, _translate("MainWindow", "PD"))
        self.comboViewMode.setItemText(1, _translate("MainWindow", "T1"))
        self.comboViewMode.setItemText(2, _translate("MainWindow", "T2"))
        self.label_13.setText(_translate("MainWindow", "TE"))
        self.label_14.setText(_translate("MainWindow", "TR"))
        self.label_15.setText(_translate("MainWindow", "FA"))
Пример #7
0
class Ui_MainWindow(object):
    def setupUi(self, MainWindow):
        MainWindow.setObjectName("MainWindow")
        MainWindow.resize(800, 600)
        MainWindow.setMinimumSize(QtCore.QSize(800, 600))
        MainWindow.setMaximumSize(QtCore.QSize(800, 600))
        font = QtGui.QFont()
        font.setFamily("Ubuntu")
        font.setBold(False)
        font.setItalic(False)
        font.setUnderline(False)
        font.setWeight(50)
        font.setStrikeOut(False)
        MainWindow.setFont(font)
        MainWindow.setContextMenuPolicy(QtCore.Qt.DefaultContextMenu)
        self.centralwidget = QtWidgets.QWidget(MainWindow)
        self.centralwidget.setMinimumSize(QtCore.QSize(800, 600))
        self.centralwidget.setMaximumSize(QtCore.QSize(800, 600))
        font = QtGui.QFont()
        font.setKerning(True)
        font.setStyleStrategy(QtGui.QFont.PreferAntialias)
        self.centralwidget.setFont(font)
        self.centralwidget.setObjectName("centralwidget")
        self.graphicsView = PlotWidget(self.centralwidget)
        self.graphicsView.setGeometry(QtCore.QRect(0, 100, 800, 500))
        sizePolicy = QtWidgets.QSizePolicy(
            QtWidgets.QSizePolicy.MinimumExpanding,
            QtWidgets.QSizePolicy.MinimumExpanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.graphicsView.sizePolicy().hasHeightForWidth())
        self.graphicsView.setSizePolicy(sizePolicy)
        self.graphicsView.setMinimumSize(QtCore.QSize(800, 500))
        self.graphicsView.setMaximumSize(QtCore.QSize(800, 500))
        self.graphicsView.setObjectName("graphicsView")
        self.splitter = QtWidgets.QSplitter(self.centralwidget)
        self.splitter.setGeometry(QtCore.QRect(0, 0, 800, 100))
        self.splitter.setMinimumSize(QtCore.QSize(800, 100))
        self.splitter.setMaximumSize(QtCore.QSize(812, 104))
        self.splitter.setOrientation(QtCore.Qt.Horizontal)
        self.splitter.setObjectName("splitter")
        self.splitter_4 = QtWidgets.QSplitter(self.splitter)
        self.splitter_4.setOrientation(QtCore.Qt.Vertical)
        self.splitter_4.setObjectName("splitter_4")
        self.label_3 = QtWidgets.QLabel(self.splitter_4)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(200)
        sizePolicy.setVerticalStretch(40)
        sizePolicy.setHeightForWidth(
            self.label_3.sizePolicy().hasHeightForWidth())
        self.label_3.setSizePolicy(sizePolicy)
        self.label_3.setMinimumSize(QtCore.QSize(200, 40))
        self.label_3.setMaximumSize(QtCore.QSize(200, 40))
        self.label_3.setAlignment(QtCore.Qt.AlignCenter)
        self.label_3.setObjectName("label_3")
        self.doubleSpinBox_3 = QtWidgets.QDoubleSpinBox(self.splitter_4)
        sizePolicy = QtWidgets.QSizePolicy(
            QtWidgets.QSizePolicy.MinimumExpanding,
            QtWidgets.QSizePolicy.MinimumExpanding)
        sizePolicy.setHorizontalStretch(200)
        sizePolicy.setVerticalStretch(60)
        sizePolicy.setHeightForWidth(
            self.doubleSpinBox_3.sizePolicy().hasHeightForWidth())
        self.doubleSpinBox_3.setSizePolicy(sizePolicy)
        self.doubleSpinBox_3.setObjectName("doubleSpinBox_3")
        self.splitter_1 = QtWidgets.QSplitter(self.splitter)
        self.splitter_1.setOrientation(QtCore.Qt.Vertical)
        self.splitter_1.setObjectName("splitter_1")
        self.label_1 = QtWidgets.QLabel(self.splitter_1)
        sizePolicy = QtWidgets.QSizePolicy(
            QtWidgets.QSizePolicy.MinimumExpanding,
            QtWidgets.QSizePolicy.MinimumExpanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.label_1.sizePolicy().hasHeightForWidth())
        self.label_1.setSizePolicy(sizePolicy)
        self.label_1.setMinimumSize(QtCore.QSize(200, 40))
        self.label_1.setMaximumSize(QtCore.QSize(200, 40))
        self.label_1.setAlignment(QtCore.Qt.AlignCenter)
        self.label_1.setObjectName("label_1")
        self.doubleSpinBox_1 = QtWidgets.QDoubleSpinBox(self.splitter_1)
        self.doubleSpinBox_1.setEnabled(True)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(200)
        sizePolicy.setVerticalStretch(60)
        sizePolicy.setHeightForWidth(
            self.doubleSpinBox_1.sizePolicy().hasHeightForWidth())
        self.doubleSpinBox_1.setSizePolicy(sizePolicy)
        self.doubleSpinBox_1.setMinimumSize(QtCore.QSize(200, 60))
        self.doubleSpinBox_1.setMaximumSize(QtCore.QSize(200, 60))
        self.doubleSpinBox_1.setObjectName("doubleSpinBox_1")
        self.splitter_3 = QtWidgets.QSplitter(self.splitter)
        self.splitter_3.setOrientation(QtCore.Qt.Vertical)
        self.splitter_3.setObjectName("splitter_3")
        self.label_4 = QtWidgets.QLabel(self.splitter_3)
        sizePolicy = QtWidgets.QSizePolicy(
            QtWidgets.QSizePolicy.MinimumExpanding,
            QtWidgets.QSizePolicy.MinimumExpanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.label_4.sizePolicy().hasHeightForWidth())
        self.label_4.setSizePolicy(sizePolicy)
        self.label_4.setMinimumSize(QtCore.QSize(200, 40))
        self.label_4.setMaximumSize(QtCore.QSize(200, 40))
        self.label_4.setAlignment(QtCore.Qt.AlignCenter)
        self.label_4.setObjectName("label_4")
        self.doubleSpinBox_4 = QtWidgets.QDoubleSpinBox(self.splitter_3)
        sizePolicy = QtWidgets.QSizePolicy(
            QtWidgets.QSizePolicy.MinimumExpanding,
            QtWidgets.QSizePolicy.MinimumExpanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.doubleSpinBox_4.sizePolicy().hasHeightForWidth())
        self.doubleSpinBox_4.setSizePolicy(sizePolicy)
        self.doubleSpinBox_4.setWrapping(False)
        self.doubleSpinBox_4.setObjectName("doubleSpinBox_4")
        self.splitter_2 = QtWidgets.QSplitter(self.splitter)
        self.splitter_2.setOrientation(QtCore.Qt.Vertical)
        self.splitter_2.setObjectName("splitter_2")
        self.label_2 = QtWidgets.QLabel(self.splitter_2)
        sizePolicy = QtWidgets.QSizePolicy(
            QtWidgets.QSizePolicy.MinimumExpanding,
            QtWidgets.QSizePolicy.MinimumExpanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.label_2.sizePolicy().hasHeightForWidth())
        self.label_2.setSizePolicy(sizePolicy)
        self.label_2.setMinimumSize(QtCore.QSize(200, 40))
        self.label_2.setMaximumSize(QtCore.QSize(200, 40))
        self.label_2.setAlignment(QtCore.Qt.AlignCenter)
        self.label_2.setObjectName("label_2")
        self.doubleSpinBox_2 = QtWidgets.QDoubleSpinBox(self.splitter_2)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(200)
        sizePolicy.setVerticalStretch(60)
        sizePolicy.setHeightForWidth(
            self.doubleSpinBox_2.sizePolicy().hasHeightForWidth())
        self.doubleSpinBox_2.setSizePolicy(sizePolicy)
        self.doubleSpinBox_2.setMinimumSize(QtCore.QSize(200, 60))
        self.doubleSpinBox_2.setMaximumSize(QtCore.QSize(200, 60))
        self.doubleSpinBox_2.setObjectName("doubleSpinBox_2")
        MainWindow.setCentralWidget(self.centralwidget)

        self.retranslateUi(MainWindow)
        self.doubleSpinBox_1.editingFinished.connect(self.update_graphics)
        self.doubleSpinBox_4.editingFinished.connect(self.update_graphics)
        self.doubleSpinBox_3.editingFinished.connect(self.update_graphics)
        self.doubleSpinBox_2.editingFinished.connect(self.update_graphics)
        QtCore.QMetaObject.connectSlotsByName(MainWindow)

    def retranslateUi(self, MainWindow):
        _translate = QtCore.QCoreApplication.translate
        MainWindow.setWindowTitle(
            _translate("MainWindow", "Затухающие колебания"))
        self.label_3.setText(_translate("MainWindow", "m - масса тела"))
        self.label_1.setText(
            _translate("MainWindow", "A0 - начальная амплитуда"))
        self.label_4.setText(
            _translate("MainWindow", "в - коэффицент затухания"))
        self.label_2.setText(
            _translate("MainWindow", "k - коэффициент жёсткости"))

    def update_graphics(self):
        pass
Пример #8
0
class Ui_MainWindow(object):
    def setupUi(self, MainWindow):
        MainWindow.setObjectName(_fromUtf8("MainWindow"))
        MainWindow.resize(2005, 1009)
        MainWindow.setMinimumSize(QtCore.QSize(1280, 720))
        self.centralwidget = QtGui.QWidget(MainWindow)
        self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
        self.verticalLayout = QtGui.QVBoxLayout(self.centralwidget)
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.label = QtGui.QLabel(self.centralwidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.label.sizePolicy().hasHeightForWidth())
        self.label.setSizePolicy(sizePolicy)
        self.label.setMinimumSize(QtCore.QSize(800, 100))
        self.label.setMaximumSize(QtCore.QSize(800, 100))
        self.label.setAutoFillBackground(False)
        self.label.setText(_fromUtf8(""))
        self.label.setPixmap(QtGui.QPixmap(_fromUtf8("UBCR White Border.png")))
        self.label.setScaledContents(True)
        self.label.setAlignment(QtCore.Qt.AlignCenter)
        self.label.setObjectName(_fromUtf8("label"))
        self.verticalLayout.addWidget(self.label, 0, QtCore.Qt.AlignHCenter)
        self.plotLayout = QtGui.QGridLayout()
        self.plotLayout.setObjectName(_fromUtf8("plotLayout"))
        self.loxTemperaturePlot = PlotWidget(self.centralwidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.loxTemperaturePlot.sizePolicy().hasHeightForWidth())
        self.loxTemperaturePlot.setSizePolicy(sizePolicy)
        self.loxTemperaturePlot.setMinimumSize(QtCore.QSize(800, 200))
        self.loxTemperaturePlot.setMaximumSize(QtCore.QSize(800, 250))
        self.loxTemperaturePlot.setObjectName(_fromUtf8("loxTemperaturePlot"))
        self.plotLayout.addWidget(self.loxTemperaturePlot, 1, 0, 1, 1)
        self.fuelTemperaturePlot = PlotWidget(self.centralwidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.fuelTemperaturePlot.sizePolicy().hasHeightForWidth())
        self.fuelTemperaturePlot.setSizePolicy(sizePolicy)
        self.fuelTemperaturePlot.setMinimumSize(QtCore.QSize(800, 200))
        self.fuelTemperaturePlot.setMaximumSize(QtCore.QSize(800, 250))
        self.fuelTemperaturePlot.setObjectName(
            _fromUtf8("fuelTemperaturePlot"))
        self.plotLayout.addWidget(self.fuelTemperaturePlot, 1, 1, 1, 1)
        self.engineTemperaturePlot = PlotWidget(self.centralwidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.engineTemperaturePlot.sizePolicy().hasHeightForWidth())
        self.engineTemperaturePlot.setSizePolicy(sizePolicy)
        self.engineTemperaturePlot.setMinimumSize(QtCore.QSize(800, 200))
        self.engineTemperaturePlot.setMaximumSize(QtCore.QSize(800, 250))
        self.engineTemperaturePlot.setObjectName(
            _fromUtf8("engineTemperaturePlot"))
        self.plotLayout.addWidget(self.engineTemperaturePlot, 2, 0, 1, 1)
        self.loxPressurePlot = PlotWidget(self.centralwidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.loxPressurePlot.sizePolicy().hasHeightForWidth())
        self.loxPressurePlot.setSizePolicy(sizePolicy)
        self.loxPressurePlot.setMinimumSize(QtCore.QSize(800, 200))
        self.loxPressurePlot.setMaximumSize(QtCore.QSize(800, 250))
        self.loxPressurePlot.setObjectName(_fromUtf8("loxPressurePlot"))
        self.plotLayout.addWidget(self.loxPressurePlot, 0, 0, 1, 1)
        self.enginePerformancePlot = PlotWidget(self.centralwidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.enginePerformancePlot.sizePolicy().hasHeightForWidth())
        self.enginePerformancePlot.setSizePolicy(sizePolicy)
        self.enginePerformancePlot.setMinimumSize(QtCore.QSize(800, 200))
        self.enginePerformancePlot.setMaximumSize(QtCore.QSize(800, 250))
        self.enginePerformancePlot.setObjectName(
            _fromUtf8("enginePerformancePlot"))
        self.plotLayout.addWidget(self.enginePerformancePlot, 2, 1, 1, 1)
        self.fuelPressurePlot = PlotWidget(self.centralwidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.fuelPressurePlot.sizePolicy().hasHeightForWidth())
        self.fuelPressurePlot.setSizePolicy(sizePolicy)
        self.fuelPressurePlot.setMinimumSize(QtCore.QSize(800, 200))
        self.fuelPressurePlot.setMaximumSize(QtCore.QSize(800, 250))
        self.fuelPressurePlot.setObjectName(_fromUtf8("fuelPressurePlot"))
        self.plotLayout.addWidget(self.fuelPressurePlot, 0, 1, 1, 1)
        self.verticalLayout.addLayout(self.plotLayout)
        MainWindow.setCentralWidget(self.centralwidget)

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

    def retranslateUi(self, MainWindow):
        MainWindow.setWindowTitle(_translate("MainWindow", "MainWindow", None))
Пример #9
0
class Ui_Form(object):
    def setupUi(self, Form):
        Form.setObjectName("Form")
        Form.resize(459, 831)
        self.verticalLayout_6 = QtWidgets.QVBoxLayout(Form)
        self.verticalLayout_6.setObjectName("verticalLayout_6")
        self.horizontalLayout = QtWidgets.QHBoxLayout()
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.image_view = ImageView(Form)
        sizePolicy = QtWidgets.QSizePolicy(
            QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding
        )
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(80)
        sizePolicy.setHeightForWidth(self.image_view.sizePolicy().hasHeightForWidth())
        self.image_view.setSizePolicy(sizePolicy)
        self.image_view.setObjectName("image_view")
        self.horizontalLayout.addWidget(self.image_view)
        self.verticalLayout_5 = QtWidgets.QVBoxLayout()
        self.verticalLayout_5.setSizeConstraint(QtWidgets.QLayout.SetFixedSize)
        self.verticalLayout_5.setObjectName("verticalLayout_5")
        self.verticalLayout = QtWidgets.QVBoxLayout()
        self.verticalLayout.setObjectName("verticalLayout")
        self.label_3 = QtWidgets.QLabel(Form)
        sizePolicy = QtWidgets.QSizePolicy(
            QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred
        )
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.label_3.sizePolicy().hasHeightForWidth())
        self.label_3.setSizePolicy(sizePolicy)
        font = QtGui.QFont()
        font.setPointSize(12)
        font.setUnderline(True)
        self.label_3.setFont(font)
        self.label_3.setAlignment(QtCore.Qt.AlignCenter)
        self.label_3.setObjectName("label_3")
        self.verticalLayout.addWidget(self.label_3)
        self.rec_blobs = QtWidgets.QLabel(Form)
        sizePolicy = QtWidgets.QSizePolicy(
            QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred
        )
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.rec_blobs.sizePolicy().hasHeightForWidth())
        self.rec_blobs.setSizePolicy(sizePolicy)
        font = QtGui.QFont()
        font.setPointSize(16)
        self.rec_blobs.setFont(font)
        self.rec_blobs.setAlignment(QtCore.Qt.AlignCenter)
        self.rec_blobs.setObjectName("rec_blobs")
        self.verticalLayout.addWidget(self.rec_blobs)
        self.verticalLayout_5.addLayout(self.verticalLayout)
        self.verticalLayout_2 = QtWidgets.QVBoxLayout()
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        self.label_4 = QtWidgets.QLabel(Form)
        font = QtGui.QFont()
        font.setPointSize(12)
        font.setUnderline(True)
        self.label_4.setFont(font)
        self.label_4.setAlignment(QtCore.Qt.AlignCenter)
        self.label_4.setObjectName("label_4")
        self.verticalLayout_2.addWidget(self.label_4)
        self.int_blobs = QtWidgets.QLabel(Form)
        font = QtGui.QFont()
        font.setPointSize(16)
        self.int_blobs.setFont(font)
        self.int_blobs.setAlignment(QtCore.Qt.AlignCenter)
        self.int_blobs.setObjectName("int_blobs")
        self.verticalLayout_2.addWidget(self.int_blobs)
        self.verticalLayout_5.addLayout(self.verticalLayout_2)
        self.gridLayout = QtWidgets.QGridLayout()
        self.gridLayout.setObjectName("gridLayout")
        self.trig_avg_spin = QtWidgets.QSpinBox(Form)
        self.trig_avg_spin.setMaximum(10)
        self.trig_avg_spin.setSingleStep(1)
        self.trig_avg_spin.setProperty("value", 0)
        self.trig_avg_spin.setObjectName("trig_avg_spin")
        self.gridLayout.addWidget(self.trig_avg_spin, 2, 0, 1, 1)
        self.avg_roi = QtWidgets.QCheckBox(Form)
        self.avg_roi.setObjectName("avg_roi")
        self.gridLayout.addWidget(self.avg_roi, 2, 1, 1, 1)
        self.int_blobs_roi = QtWidgets.QLabel(Form)
        font = QtGui.QFont()
        font.setPointSize(16)
        self.int_blobs_roi.setFont(font)
        self.int_blobs_roi.setAlignment(QtCore.Qt.AlignCenter)
        self.int_blobs_roi.setObjectName("int_blobs_roi")
        self.gridLayout.addWidget(self.int_blobs_roi, 3, 0, 1, 2)
        self.label_int_blobs_roi = QtWidgets.QLabel(Form)
        font = QtGui.QFont()
        font.setPointSize(12)
        font.setUnderline(True)
        self.label_int_blobs_roi.setFont(font)
        self.label_int_blobs_roi.setAlignment(QtCore.Qt.AlignCenter)
        self.label_int_blobs_roi.setObjectName("label_int_blobs_roi")
        self.gridLayout.addWidget(self.label_int_blobs_roi, 0, 0, 1, 2)
        self.verticalLayout_5.addLayout(self.gridLayout)
        self.verticalLayout_3 = QtWidgets.QVBoxLayout()
        self.verticalLayout_3.setObjectName("verticalLayout_3")
        self.label_5 = QtWidgets.QLabel(Form)
        font = QtGui.QFont()
        font.setPointSize(12)
        font.setUnderline(True)
        self.label_5.setFont(font)
        self.label_5.setAlignment(QtCore.Qt.AlignCenter)
        self.label_5.setObjectName("label_5")
        self.verticalLayout_3.addWidget(self.label_5)
        self.cos_theta = QtWidgets.QLabel(Form)
        font = QtGui.QFont()
        font.setPointSize(16)
        self.cos_theta.setFont(font)
        self.cos_theta.setAlignment(QtCore.Qt.AlignCenter)
        self.cos_theta.setObjectName("cos_theta")
        self.verticalLayout_3.addWidget(self.cos_theta)
        self.verticalLayout_5.addLayout(self.verticalLayout_3)
        self.verticalLayout_4 = QtWidgets.QVBoxLayout()
        self.verticalLayout_4.setObjectName("verticalLayout_4")
        self.label_9 = QtWidgets.QLabel(Form)
        font = QtGui.QFont()
        font.setPointSize(12)
        font.setUnderline(True)
        self.label_9.setFont(font)
        self.label_9.setAlignment(QtCore.Qt.AlignCenter)
        self.label_9.setObjectName("label_9")
        self.verticalLayout_4.addWidget(self.label_9)
        self.cos2_theta = QtWidgets.QLabel(Form)
        font = QtGui.QFont()
        font.setPointSize(16)
        self.cos2_theta.setFont(font)
        self.cos2_theta.setAlignment(QtCore.Qt.AlignCenter)
        self.cos2_theta.setObjectName("cos2_theta")
        self.verticalLayout_4.addWidget(self.cos2_theta)
        self.verticalLayout_5.addLayout(self.verticalLayout_4)
        spacerItem = QtWidgets.QSpacerItem(
            17, 13, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding
        )
        self.verticalLayout_5.addItem(spacerItem)
        self.checkBox = QtWidgets.QCheckBox(Form)
        self.checkBox.setObjectName("checkBox")
        self.verticalLayout_5.addWidget(self.checkBox)
        self.label = QtWidgets.QLabel(Form)
        self.label.setObjectName("label")
        self.verticalLayout_5.addWidget(self.label)
        self.histo_binning = QtWidgets.QSpinBox(Form)
        self.histo_binning.setMinimum(8)
        self.histo_binning.setMaximum(1024)
        self.histo_binning.setProperty("value", 256)
        self.histo_binning.setDisplayIntegerBase(10)
        self.histo_binning.setObjectName("histo_binning")
        self.verticalLayout_5.addWidget(self.histo_binning)
        self.x0_label = QtWidgets.QLabel(Form)
        self.x0_label.setObjectName("x0_label")
        self.verticalLayout_5.addWidget(self.x0_label)
        self.x0_spin = QtWidgets.QSpinBox(Form)
        self.x0_spin.setMaximum(255)
        self.x0_spin.setProperty("value", 127)
        self.x0_spin.setObjectName("x0_spin")
        self.verticalLayout_5.addWidget(self.x0_spin)
        self.y0_label = QtWidgets.QLabel(Form)
        self.y0_label.setObjectName("y0_label")
        self.verticalLayout_5.addWidget(self.y0_label)
        self.y0_spin = QtWidgets.QSpinBox(Form)
        self.y0_spin.setMaximum(255)
        self.y0_spin.setProperty("value", 127)
        self.y0_spin.setObjectName("y0_spin")
        self.verticalLayout_5.addWidget(self.y0_spin)
        self.radius_label = QtWidgets.QLabel(Form)
        self.radius_label.setObjectName("radius_label")
        self.verticalLayout_5.addWidget(self.radius_label)
        self.r_inner = QtWidgets.QSpinBox(Form)
        self.r_inner.setMinimum(0)
        self.r_inner.setMaximum(255)
        self.r_inner.setProperty("value", 0)
        self.r_inner.setObjectName("r_inner")
        self.verticalLayout_5.addWidget(self.r_inner)
        self.label_2 = QtWidgets.QLabel(Form)
        self.label_2.setObjectName("label_2")
        self.verticalLayout_5.addWidget(self.label_2)
        self.r_outer = QtWidgets.QSpinBox(Form)
        self.r_outer.setMaximum(300)
        self.r_outer.setProperty("value", 300)
        self.r_outer.setObjectName("r_outer")
        self.verticalLayout_5.addWidget(self.r_outer)
        self.horizontalLayout.addLayout(self.verticalLayout_5)
        self.verticalLayout_6.addLayout(self.horizontalLayout)
        self.horizontalLayout_6 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_6.setObjectName("horizontalLayout_6")
        self.blob_trend_check = QtWidgets.QCheckBox(Form)
        self.blob_trend_check.setEnabled(True)
        self.blob_trend_check.setChecked(True)
        self.blob_trend_check.setObjectName("blob_trend_check")
        self.horizontalLayout_6.addWidget(self.blob_trend_check)
        self.roi_trend_check = QtWidgets.QCheckBox(Form)
        self.roi_trend_check.setChecked(True)
        self.roi_trend_check.setObjectName("roi_trend_check")
        self.horizontalLayout_6.addWidget(self.roi_trend_check)
        self.show_center = QtWidgets.QCheckBox(Form)
        self.show_center.setObjectName("show_center")
        self.horizontalLayout_6.addWidget(self.show_center)
        self.verticalLayout_6.addLayout(self.horizontalLayout_6)
        self.horizontalLayout_61 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_61.setObjectName("horizontalLayout_61")
        self.blob_trend = PlotWidget(Form)
        sizePolicy = QtWidgets.QSizePolicy(
            QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding
        )
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.blob_trend.sizePolicy().hasHeightForWidth())
        self.blob_trend.setSizePolicy(sizePolicy)
        self.blob_trend.setMaximumSize(QtCore.QSize(1100000, 3000))
        self.blob_trend.setObjectName("blob_trend")
        self.horizontalLayout_61.addWidget(self.blob_trend)
        self.blob_trend_roi = PlotWidget(Form)
        sizePolicy = QtWidgets.QSizePolicy(
            QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding
        )
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.blob_trend_roi.sizePolicy().hasHeightForWidth()
        )
        self.blob_trend_roi.setSizePolicy(sizePolicy)
        self.blob_trend_roi.setMaximumSize(QtCore.QSize(1100000, 3000))
        self.blob_trend_roi.setObjectName("blob_trend_roi")
        self.horizontalLayout_61.addWidget(self.blob_trend_roi)
        self.verticalLayout_6.addLayout(self.horizontalLayout_61)

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

    def retranslateUi(self, Form):
        _translate = QtCore.QCoreApplication.translate
        Form.setWindowTitle(_translate("Form", "Form"))
        self.label_3.setText(_translate("Form", "Blobs per shot"))
        self.rec_blobs.setText(_translate("Form", "0"))
        self.label_4.setText(_translate("Form", "Integrated Blobs"))
        self.int_blobs.setText(_translate("Form", "0"))
        self.avg_roi.setText(_translate("Form", "avg"))
        self.int_blobs_roi.setText(_translate("Form", "0"))
        self.label_int_blobs_roi.setText(_translate("Form", "Int. Blobs ROI"))
        self.label_5.setText(_translate("Form", "cos theta"))
        self.cos_theta.setText(_translate("Form", "0"))
        self.label_9.setText(_translate("Form", "cos2 theta"))
        self.cos2_theta.setText(_translate("Form", "0"))
        self.checkBox.setText(_translate("Form", "Histogram"))
        self.label.setText(_translate("Form", "Binning"))
        self.x0_label.setText(_translate("Form", "y0"))
        self.y0_label.setText(_translate("Form", "x0"))
        self.radius_label.setText(_translate("Form", "inner-radius"))
        self.label_2.setText(_translate("Form", "outer-radius"))
        self.blob_trend_check.setText(_translate("Form", "Show Blob Trend"))
        self.roi_trend_check.setText(_translate("Form", "Show ROI trend"))
        self.show_center.setText(_translate("Form", "Show Crosshair"))
Пример #10
0
class Ui_MainWindow(object):

    windowMoved = QtCore.pyqtSignal(QtCore.QPoint)

    def update2(self):
        data3 = self.data3
        ptr3 = self.ptr3
        data3[ptr3] = np.random.normal()

        ptr3 += 1
        if ptr3 >= data3.shape[0]:
            tmp = data3
            data3 = np.empty(data3.shape[0] * 2)
            data3[:tmp.shape[0]] = tmp
        self.pen1.setData(data3[:ptr3])
        self.data3 = data3
        if (ptr3 > 100):
            self.pen1.setPen(pg.mkPen('r', width=3))
        self.pen1.setPos(-ptr3, 0)
        self.ptr3 = ptr3

    def setupUi(self, MainWindow):

        MainWindow.setObjectName("MainWindow")
        MainWindow.resize(782, 511)
        MainWindow.setTabShape(QtWidgets.QTabWidget.Rounded)
        self.centralwidget = QtWidgets.QWidget(MainWindow)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.centralwidget.sizePolicy().hasHeightForWidth())
        self.centralwidget.setSizePolicy(sizePolicy)
        self.centralwidget.setObjectName("centralwidget")
        self.verticalLayout = QtWidgets.QVBoxLayout(self.centralwidget)
        self.verticalLayout.setContentsMargins(5, 5, 5, 0)
        self.verticalLayout.setSpacing(0)
        self.verticalLayout.setObjectName("verticalLayout")
        self.bar = QtWidgets.QWidget(self.centralwidget)
        self.bar.setMaximumSize(QtCore.QSize(16777215, 25))
        self.bar.setObjectName("bar")
        self.horizontalLayout = QtWidgets.QHBoxLayout(self.bar)
        self.horizontalLayout.setContentsMargins(-1, 5, -1, 5)
        self.horizontalLayout.setSpacing(9)
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.exit = QtWidgets.QPushButton(self.bar)
        self.exit.setMaximumSize(QtCore.QSize(30, 20))
        self.exit.setText("")
        self.exit.setObjectName("close")
        self.horizontalLayout.addWidget(self.exit)
        self.visit = QtWidgets.QPushButton(self.bar)
        self.visit.setMaximumSize(QtCore.QSize(30, 20))
        self.visit.setText("")
        self.visit.setObjectName("visit")
        self.horizontalLayout.addWidget(self.visit)
        self.mini = QtWidgets.QPushButton(self.bar)
        self.mini.setMaximumSize(QtCore.QSize(30, 20))
        self.mini.setFocusPolicy(QtCore.Qt.StrongFocus)
        self.mini.setText("")
        self.mini.setAutoDefault(False)
        self.mini.setDefault(False)
        self.mini.setFlat(False)
        self.mini.setObjectName("mini")
        self.horizontalLayout.addWidget(self.mini)
        spacerItem = QtWidgets.QSpacerItem(40, 15,
                                           QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout.addItem(spacerItem)
        self.verticalLayout.addWidget(self.bar)
        self.Menu = QtWidgets.QGridLayout()
        self.Menu.setObjectName("Menu")
        self.down = QtWidgets.QWidget(self.centralwidget)
        self.down.setMaximumSize(QtCore.QSize(16777215, 120))
        self.down.setObjectName("down")
        self.gridLayout_down = QtWidgets.QGridLayout(self.down)
        self.gridLayout_down.setHorizontalSpacing(5)
        self.gridLayout_down.setObjectName("gridLayout_down")
        self.widget = PlotWidget(self.down)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.widget.sizePolicy().hasHeightForWidth())
        self.widget.setSizePolicy(sizePolicy)
        self.widget.setMinimumSize(QtCore.QSize(0, 0))
        self.widget.setMaximumSize(QtCore.QSize(300, 120))
        self.widget.setLayoutDirection(QtCore.Qt.LeftToRight)
        self.widget.setObjectName("widget")
        self.gridLayout_down.addWidget(self.widget, 0, 0, 1, 1)
        self.CurrentScore = QtWidgets.QLabel(self.down)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.CurrentScore.sizePolicy().hasHeightForWidth())
        self.CurrentScore.setSizePolicy(sizePolicy)
        self.CurrentScore.setMinimumSize(QtCore.QSize(20, 60))
        self.CurrentScore.setMaximumSize(QtCore.QSize(300, 120))
        font = QtGui.QFont()
        font.setFamily("JetBrains Mono")
        font.setPointSize(50)
        font.setBold(True)
        font.setWeight(75)
        self.CurrentScore.setFont(font)
        self.CurrentScore.setAlignment(QtCore.Qt.AlignCenter)
        self.CurrentScore.setObjectName("CurrentScore")
        self.gridLayout_down.addWidget(self.CurrentScore, 0, 1, 1, 1)
        self.TotalScore = QtWidgets.QLabel(self.down)
        self.TotalScore.setMinimumSize(QtCore.QSize(0, 0))
        self.TotalScore.setMaximumSize(QtCore.QSize(250, 120))
        font = QtGui.QFont()
        font.setPointSize(15)
        font.setKerning(True)
        self.TotalScore.setFont(font)
        self.TotalScore.setLayoutDirection(QtCore.Qt.RightToLeft)
        self.TotalScore.setAlignment(QtCore.Qt.AlignCenter)
        self.TotalScore.setObjectName("TotalScore")
        self.gridLayout_down.addWidget(self.TotalScore, 0, 2, 1, 1)
        self.Menu.addWidget(self.down, 4, 0, 1, 1)
        self.line = QtWidgets.QFrame(self.centralwidget)
        self.line.setFrameShadow(QtWidgets.QFrame.Plain)
        self.line.setLineWidth(10)
        self.line.setFrameShape(QtWidgets.QFrame.HLine)
        self.line.setObjectName("line")
        self.Menu.addWidget(self.line, 1, 0, 1, 1)
        self.up = QtWidgets.QWidget(self.centralwidget)
        self.up.setMinimumSize(QtCore.QSize(0, 0))
        self.up.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.up.setObjectName("up")
        self.gridLayout_up = QtWidgets.QGridLayout(self.up)
        self.gridLayout_up.setHorizontalSpacing(5)
        self.gridLayout_up.setVerticalSpacing(7)
        self.gridLayout_up.setObjectName("gridLayout_up")
        self.Turn_bar = QtWidgets.QWidget(self.up)
        self.Turn_bar.setMaximumSize(QtCore.QSize(70, 200))
        self.Turn_bar.setObjectName("Turn_bar")
        self.gridLayout_up.addWidget(self.Turn_bar, 0, 5, 1, 1)
        self.Turn_level = QtWidgets.QWidget(self.up)
        self.Turn_level.setMaximumSize(QtCore.QSize(80, 50))
        self.Turn_level.setObjectName("Turn_level")
        self.gridLayout_up.addWidget(self.Turn_level, 1, 5, 1, 1)
        self.Acc_bar = QtWidgets.QWidget(self.up)
        self.Acc_bar.setMaximumSize(QtCore.QSize(70, 200))
        self.Acc_bar.setObjectName("Acc_bar")
        self.gridLayout_up.addWidget(self.Acc_bar, 0, 0, 1, 1)
        spacer1 = QtWidgets.QSpacerItem(35, 20, QtWidgets.QSizePolicy.Fixed,
                                        QtWidgets.QSizePolicy.Minimum)
        self.gridLayout_up.addItem(spacer1, 0, 2, 1, 1)
        self.feedback = QtWidgets.QToolButton(self.up)
        self.feedback.setMinimumSize(QtCore.QSize(50, 50))
        self.feedback.setMaximumSize(QtCore.QSize(320, 320))
        self.feedback.setFocusPolicy(QtCore.Qt.TabFocus)
        self.feedback.setObjectName("feedback")
        self.gridLayout_up.addWidget(self.feedback, 0, 3, 2, 1)
        self.Brake_bar = QtWidgets.QWidget(self.up)
        self.Brake_bar.setMaximumSize(QtCore.QSize(70, 200))
        self.Brake_bar.setObjectName("Brake_bar")
        self.gridLayout_up.addWidget(self.Brake_bar, 0, 1, 1, 1)
        self.Swerve_level = QtWidgets.QWidget(self.up)
        self.Swerve_level.setMaximumSize(QtCore.QSize(80, 50))
        self.Swerve_level.setObjectName("Swerve_level")
        self.gridLayout_up.addWidget(self.Swerve_level, 1, 6, 1, 1)
        self.Swerve_bar = QtWidgets.QWidget(self.up)
        self.Swerve_bar.setMaximumSize(QtCore.QSize(70, 200))
        self.Swerve_bar.setObjectName("Swerve_bar")
        self.gridLayout_up.addWidget(self.Swerve_bar, 0, 6, 1, 1)
        self.Acc_level = QtWidgets.QWidget(self.up)
        self.Acc_level.setMaximumSize(QtCore.QSize(80, 50))
        self.Acc_level.setObjectName("Acc_level")
        self.gridLayout_up.addWidget(self.Acc_level, 1, 0, 1, 1)
        self.Brake_level = QtWidgets.QWidget(self.up)
        self.Brake_level.setMaximumSize(QtCore.QSize(80, 50))
        self.Brake_level.setObjectName("Brake_level")
        self.gridLayout_up.addWidget(self.Brake_level, 1, 1, 1, 1)
        spacer2 = QtWidgets.QSpacerItem(35, 20, QtWidgets.QSizePolicy.Fixed,
                                        QtWidgets.QSizePolicy.Minimum)
        self.gridLayout_up.addItem(spacer2, 0, 4, 1, 1)
        self.Menu.addWidget(self.up, 0, 0, 1, 1)
        self.verticalLayout.addLayout(self.Menu)
        MainWindow.setCentralWidget(self.centralwidget)
        self.menubar = QtWidgets.QMenuBar(MainWindow)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 782, 21))
        self.menubar.setObjectName("menubar")
        MainWindow.setMenuBar(self.menubar)
        self.statusbar = QtWidgets.QStatusBar(MainWindow)
        self.statusbar.setObjectName("statusbar")
        MainWindow.setStatusBar(self.statusbar)

        self.exit.setFixedSize(15, 15)
        self.visit.setFixedSize(15, 15)
        self.mini.setFixedSize(15, 15)
        self.exit.setStyleSheet(
            '''QPushButton{background:#F76677;border-radius:5px;}QPushButton:hover{background:red;}'''
        )
        # self.visit.setStyleSheet('''QPushButton{background:#F7D674;border-radius:5px;}QPushButton:hover{background:yellow;}''')
        # self.mini.setStyleSheet('''QPushButton{background:#6DDF6D;border-radius:5px;}QPushButton:hover{background:green;}''')

        self.setWindowFlag(QtCore.Qt.FramelessWindowHint)  # hide the boarder
        self.setWindowOpacity(0.98)
        self.setAttribute(
            QtCore.Qt.WA_TranslucentBackground)  # set transparent window
        self.exit.clicked.connect(self.close)  # close window
        self.mini.clicked.connect(self.showMinimized)  # minimum window
        self.windowMoved.connect(self.move)  # move window

        # draw graph of lines
        self.widget.setDownsampling(mode='peak')
        self.widget.setClipToView(True)
        self.widget.setXRange(0, 100)
        self.widget.setLimits(xMax=0)
        self.pen1 = self.widget.plot()
        self.pen1.setPen(pg.mkPen('y', width=3))
        self.data3 = np.empty(10)
        self.ptr3 = 0

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

    def mousePressEvent(self, event):
        if event.button() == QtCore.Qt.LeftButton:
            self.mPos = event.pos()
        event.accept()

    def mouseReleaseEvent(self, event):
        self.mPos = None
        event.accept()

    def mouseMoveEvent(self, event):
        if event.buttons() == QtCore.Qt.LeftButton and self.mPos:
            self.windowMoved.emit(self.mapToGlobal(event.pos() - self.mPos))
        event.accept()

    # set current score and update
    def setCurrentScore(self, score):
        self.CurrentScore.setText(str(score))

    # set Total score for trip
    def setTotalScore(self, score):
        self.TotalScore.setText(str(score) + ' points')

    def retranslateUi(self, MainWindow):
        _translate = QtCore.QCoreApplication.translate
        MainWindow.setWindowTitle(_translate("MainWindow", "MainWindow"))
        self.CurrentScore.setText(_translate("MainWindow", "86"))
        self.TotalScore.setText(_translate("MainWindow", "1240 points"))
        self.feedback.setText(_translate("MainWindow", "..."))
Пример #11
0
class Ui_MainWindow(object):
    def setupUi(self, MainWindow):
        MainWindow.setObjectName("MainWindow")
        MainWindow.resize(1080, 720)
        MainWindow.setMinimumSize(QtCore.QSize(1080, 720))
        MainWindow.setMaximumSize(QtCore.QSize(1080, 720))
        self.centralwidget = QtWidgets.QWidget(MainWindow)
        self.centralwidget.setMinimumSize(QtCore.QSize(1080, 720))
        self.centralwidget.setMaximumSize(QtCore.QSize(1080, 720))
        self.centralwidget.setObjectName("centralwidget")
        self.tabWidget = QtWidgets.QTabWidget(self.centralwidget)
        self.tabWidget.setGeometry(QtCore.QRect(0, 0, 1080, 720))
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.tabWidget.sizePolicy().hasHeightForWidth())
        self.tabWidget.setSizePolicy(sizePolicy)
        self.tabWidget.setMaximumSize(QtCore.QSize(1080, 720))
        self.tabWidget.setObjectName("tabWidget")
        self.tabDashboard = QtWidgets.QWidget()
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed,
                                           QtWidgets.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.tabDashboard.sizePolicy().hasHeightForWidth())
        self.tabDashboard.setSizePolicy(sizePolicy)
        self.tabDashboard.setMinimumSize(QtCore.QSize(1080, 0))
        self.tabDashboard.setObjectName("tabDashboard")
        self.horizontalLayout = QtWidgets.QHBoxLayout(self.tabDashboard)
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.leftHandSide = QtWidgets.QVBoxLayout()
        self.leftHandSide.setSizeConstraint(
            QtWidgets.QLayout.SetDefaultConstraint)
        self.leftHandSide.setSpacing(6)
        self.leftHandSide.setObjectName("leftHandSide")
        self.inputBox = QtWidgets.QGroupBox(self.tabDashboard)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum,
                                           QtWidgets.QSizePolicy.Maximum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.inputBox.sizePolicy().hasHeightForWidth())
        self.inputBox.setSizePolicy(sizePolicy)
        self.inputBox.setMinimumSize(QtCore.QSize(0, 0))
        self.inputBox.setObjectName("inputBox")
        self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.inputBox)
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        self.formLayout = QtWidgets.QFormLayout()
        self.formLayout.setLabelAlignment(QtCore.Qt.AlignLeading
                                          | QtCore.Qt.AlignLeft
                                          | QtCore.Qt.AlignVCenter)
        self.formLayout.setFormAlignment(QtCore.Qt.AlignHCenter
                                         | QtCore.Qt.AlignTop)
        self.formLayout.setObjectName("formLayout")
        self.inputNZeroLabel = QtWidgets.QLabel(self.inputBox)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.inputNZeroLabel.sizePolicy().hasHeightForWidth())
        self.inputNZeroLabel.setSizePolicy(sizePolicy)
        self.inputNZeroLabel.setToolTip("")
        self.inputNZeroLabel.setObjectName("inputNZeroLabel")
        self.formLayout.setWidget(1, QtWidgets.QFormLayout.LabelRole,
                                  self.inputNZeroLabel)
        self.inputHalfLifeLabel = QtWidgets.QLabel(self.inputBox)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.inputHalfLifeLabel.sizePolicy().hasHeightForWidth())
        self.inputHalfLifeLabel.setSizePolicy(sizePolicy)
        self.inputHalfLifeLabel.setToolTip("")
        self.inputHalfLifeLabel.setObjectName("inputHalfLifeLabel")
        self.formLayout.setWidget(4, QtWidgets.QFormLayout.LabelRole,
                                  self.inputHalfLifeLabel)
        self.inputTimeScaleLabel = QtWidgets.QLabel(self.inputBox)
        self.inputTimeScaleLabel.setObjectName("inputTimeScaleLabel")
        self.formLayout.setWidget(5, QtWidgets.QFormLayout.LabelRole,
                                  self.inputTimeScaleLabel)
        self.inputTimeScaleComboBox = QtWidgets.QComboBox(self.inputBox)
        self.inputTimeScaleComboBox.setObjectName("inputTimeScaleComboBox")
        self.inputTimeScaleComboBox.addItem("")
        self.inputTimeScaleComboBox.addItem("")
        self.inputTimeScaleComboBox.addItem("")
        self.inputTimeScaleComboBox.addItem("")
        self.inputTimeScaleComboBox.addItem("")
        self.formLayout.setWidget(5, QtWidgets.QFormLayout.FieldRole,
                                  self.inputTimeScaleComboBox)
        self.inputNZeroDoubleSpinBox = QtWidgets.QDoubleSpinBox(self.inputBox)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.inputNZeroDoubleSpinBox.sizePolicy().hasHeightForWidth())
        self.inputNZeroDoubleSpinBox.setSizePolicy(sizePolicy)
        self.inputNZeroDoubleSpinBox.setMaximum(10000000000000.0)
        self.inputNZeroDoubleSpinBox.setObjectName("inputNZeroDoubleSpinBox")
        self.formLayout.setWidget(1, QtWidgets.QFormLayout.FieldRole,
                                  self.inputNZeroDoubleSpinBox)
        self.inputHalfLifeDoubleSpinBox = QtWidgets.QDoubleSpinBox(
            self.inputBox)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.inputHalfLifeDoubleSpinBox.sizePolicy().hasHeightForWidth())
        self.inputHalfLifeDoubleSpinBox.setSizePolicy(sizePolicy)
        self.inputHalfLifeDoubleSpinBox.setToolTip("")
        self.inputHalfLifeDoubleSpinBox.setMaximum(10000000000000.0)
        self.inputHalfLifeDoubleSpinBox.setObjectName(
            "inputHalfLifeDoubleSpinBox")
        self.formLayout.setWidget(4, QtWidgets.QFormLayout.FieldRole,
                                  self.inputHalfLifeDoubleSpinBox)
        self.inputNZeroUnitLabel = QtWidgets.QLabel(self.inputBox)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.inputNZeroUnitLabel.sizePolicy().hasHeightForWidth())
        self.inputNZeroUnitLabel.setSizePolicy(sizePolicy)
        self.inputNZeroUnitLabel.setObjectName("inputNZeroUnitLabel")
        self.formLayout.setWidget(2, QtWidgets.QFormLayout.LabelRole,
                                  self.inputNZeroUnitLabel)
        self.inputNZeroLineEdit = QtWidgets.QLineEdit(self.inputBox)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum,
                                           QtWidgets.QSizePolicy.Maximum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.inputNZeroLineEdit.sizePolicy().hasHeightForWidth())
        self.inputNZeroLineEdit.setSizePolicy(sizePolicy)
        self.inputNZeroLineEdit.setObjectName("inputNZeroLineEdit")
        self.formLayout.setWidget(2, QtWidgets.QFormLayout.FieldRole,
                                  self.inputNZeroLineEdit)
        self.inputPresetsLabel = QtWidgets.QLabel(self.inputBox)
        self.inputPresetsLabel.setObjectName("inputPresetsLabel")
        self.formLayout.setWidget(0, QtWidgets.QFormLayout.LabelRole,
                                  self.inputPresetsLabel)
        self.inputPresetsComboBox = QtWidgets.QComboBox(self.inputBox)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Maximum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.inputPresetsComboBox.sizePolicy().hasHeightForWidth())
        self.inputPresetsComboBox.setSizePolicy(sizePolicy)
        self.inputPresetsComboBox.setObjectName("inputPresetsComboBox")
        self.formLayout.setWidget(0, QtWidgets.QFormLayout.FieldRole,
                                  self.inputPresetsComboBox)
        self.verticalLayout_2.addLayout(self.formLayout)
        self.horizontalLayout_3 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_3.setSizeConstraint(
            QtWidgets.QLayout.SetDefaultConstraint)
        self.horizontalLayout_3.setContentsMargins(-1, -1, 0, -1)
        self.horizontalLayout_3.setObjectName("horizontalLayout_3")
        self.inputRealTimeLabel = QtWidgets.QLabel(self.inputBox)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Maximum,
                                           QtWidgets.QSizePolicy.Maximum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.inputRealTimeLabel.sizePolicy().hasHeightForWidth())
        self.inputRealTimeLabel.setSizePolicy(sizePolicy)
        self.inputRealTimeLabel.setLayoutDirection(QtCore.Qt.LeftToRight)
        self.inputRealTimeLabel.setObjectName("inputRealTimeLabel")
        self.horizontalLayout_3.addWidget(self.inputRealTimeLabel)
        self.inputSimulatedTimeSpinBox = QtWidgets.QSpinBox(self.inputBox)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum,
                                           QtWidgets.QSizePolicy.Maximum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.inputSimulatedTimeSpinBox.sizePolicy().hasHeightForWidth())
        self.inputSimulatedTimeSpinBox.setSizePolicy(sizePolicy)
        self.inputSimulatedTimeSpinBox.setMaximum(999999999)
        self.inputSimulatedTimeSpinBox.setObjectName(
            "inputSimulatedTimeSpinBox")
        self.horizontalLayout_3.addWidget(self.inputSimulatedTimeSpinBox)
        self.inputSimulatedTimeLabel = QtWidgets.QLabel(self.inputBox)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Maximum,
                                           QtWidgets.QSizePolicy.Maximum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.inputSimulatedTimeLabel.sizePolicy().hasHeightForWidth())
        self.inputSimulatedTimeLabel.setSizePolicy(sizePolicy)
        self.inputSimulatedTimeLabel.setObjectName("inputSimulatedTimeLabel")
        self.horizontalLayout_3.addWidget(self.inputSimulatedTimeLabel)
        self.verticalLayout_2.addLayout(self.horizontalLayout_3)
        self.leftHandSide.addWidget(self.inputBox)
        self.controlsBox = QtWidgets.QGroupBox(self.tabDashboard)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum,
                                           QtWidgets.QSizePolicy.Maximum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.controlsBox.sizePolicy().hasHeightForWidth())
        self.controlsBox.setSizePolicy(sizePolicy)
        self.controlsBox.setMinimumSize(QtCore.QSize(0, 0))
        self.controlsBox.setObjectName("controlsBox")
        self.verticalLayout = QtWidgets.QVBoxLayout(self.controlsBox)
        self.verticalLayout.setObjectName("verticalLayout")
        self.controlsStartStopButton = QtWidgets.QPushButton(self.controlsBox)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum,
                                           QtWidgets.QSizePolicy.Maximum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.controlsStartStopButton.sizePolicy().hasHeightForWidth())
        self.controlsStartStopButton.setSizePolicy(sizePolicy)
        self.controlsStartStopButton.setObjectName("controlsStartStopButton")
        self.verticalLayout.addWidget(self.controlsStartStopButton)
        self.controlsSimulationSpeedLabel = QtWidgets.QLabel(self.controlsBox)
        self.controlsSimulationSpeedLabel.setAlignment(QtCore.Qt.AlignCenter)
        self.controlsSimulationSpeedLabel.setObjectName(
            "controlsSimulationSpeedLabel")
        self.verticalLayout.addWidget(self.controlsSimulationSpeedLabel)
        self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_2.setContentsMargins(0, -1, 0, -1)
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.controlsSimSpeedButton_1 = QtWidgets.QPushButton(self.controlsBox)
        self.controlsSimSpeedButton_1.setObjectName("controlsSimSpeedButton_1")
        self.horizontalLayout_2.addWidget(self.controlsSimSpeedButton_1)
        self.controlsSimSpeedButton_2 = QtWidgets.QPushButton(self.controlsBox)
        self.controlsSimSpeedButton_2.setObjectName("controlsSimSpeedButton_2")
        self.horizontalLayout_2.addWidget(self.controlsSimSpeedButton_2)
        self.controlsSimSpeedButton_3 = QtWidgets.QPushButton(self.controlsBox)
        self.controlsSimSpeedButton_3.setObjectName("controlsSimSpeedButton_3")
        self.horizontalLayout_2.addWidget(self.controlsSimSpeedButton_3)
        self.controlsSimSpeedButton_4 = QtWidgets.QPushButton(self.controlsBox)
        self.controlsSimSpeedButton_4.setObjectName("controlsSimSpeedButton_4")
        self.horizontalLayout_2.addWidget(self.controlsSimSpeedButton_4)
        self.controlsSimSpeedButton_5 = QtWidgets.QPushButton(self.controlsBox)
        self.controlsSimSpeedButton_5.setObjectName("controlsSimSpeedButton_5")
        self.horizontalLayout_2.addWidget(self.controlsSimSpeedButton_5)
        self.verticalLayout.addLayout(self.horizontalLayout_2)
        self.controlsResetButton = QtWidgets.QPushButton(self.controlsBox)
        self.controlsResetButton.setAutoRepeatDelay(300)
        self.controlsResetButton.setFlat(False)
        self.controlsResetButton.setObjectName("controlsResetButton")
        self.verticalLayout.addWidget(self.controlsResetButton)
        self.leftHandSide.addWidget(self.controlsBox)
        self.statsBox = QtWidgets.QGroupBox(self.tabDashboard)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum,
                                           QtWidgets.QSizePolicy.Maximum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.statsBox.sizePolicy().hasHeightForWidth())
        self.statsBox.setSizePolicy(sizePolicy)
        self.statsBox.setMinimumSize(QtCore.QSize(0, 0))
        self.statsBox.setAlignment(QtCore.Qt.AlignLeading | QtCore.Qt.AlignLeft
                                   | QtCore.Qt.AlignVCenter)
        self.statsBox.setObjectName("statsBox")
        self.gridLayout = QtWidgets.QGridLayout(self.statsBox)
        self.gridLayout.setObjectName("gridLayout")
        self.statsYAxisLabelStatUnit = QtWidgets.QLabel(self.statsBox)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Maximum,
                                           QtWidgets.QSizePolicy.Maximum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.statsYAxisLabelStatUnit.sizePolicy().hasHeightForWidth())
        self.statsYAxisLabelStatUnit.setSizePolicy(sizePolicy)
        self.statsYAxisLabelStatUnit.setObjectName("statsYAxisLabelStatUnit")
        self.gridLayout.addWidget(self.statsYAxisLabelStatUnit, 0, 2, 1, 1)
        self.linerow2 = QtWidgets.QFrame(self.statsBox)
        self.linerow2.setFrameShape(QtWidgets.QFrame.VLine)
        self.linerow2.setFrameShadow(QtWidgets.QFrame.Sunken)
        self.linerow2.setObjectName("linerow2")
        self.gridLayout.addWidget(self.linerow2, 1, 4, 1, 1)
        self.statsRealTimeLabel = QtWidgets.QLabel(self.statsBox)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum,
                                           QtWidgets.QSizePolicy.Maximum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.statsRealTimeLabel.sizePolicy().hasHeightForWidth())
        self.statsRealTimeLabel.setSizePolicy(sizePolicy)
        self.statsRealTimeLabel.setAlignment(QtCore.Qt.AlignLeading
                                             | QtCore.Qt.AlignLeft
                                             | QtCore.Qt.AlignVCenter)
        self.statsRealTimeLabel.setObjectName("statsRealTimeLabel")
        self.gridLayout.addWidget(self.statsRealTimeLabel, 1, 0, 1, 1)
        self.linerow1 = QtWidgets.QFrame(self.statsBox)
        self.linerow1.setFrameShape(QtWidgets.QFrame.VLine)
        self.linerow1.setFrameShadow(QtWidgets.QFrame.Sunken)
        self.linerow1.setObjectName("linerow1")
        self.gridLayout.addWidget(self.linerow1, 0, 4, 1, 1)
        self.statsRealTimeStatUnit = QtWidgets.QLabel(self.statsBox)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Maximum,
                                           QtWidgets.QSizePolicy.Maximum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.statsRealTimeStatUnit.sizePolicy().hasHeightForWidth())
        self.statsRealTimeStatUnit.setSizePolicy(sizePolicy)
        self.statsRealTimeStatUnit.setObjectName("statsRealTimeStatUnit")
        self.gridLayout.addWidget(self.statsRealTimeStatUnit, 1, 2, 1, 1)
        self.statsSimulatedTimeLabel = QtWidgets.QLabel(self.statsBox)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum,
                                           QtWidgets.QSizePolicy.Maximum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.statsSimulatedTimeLabel.sizePolicy().hasHeightForWidth())
        self.statsSimulatedTimeLabel.setSizePolicy(sizePolicy)
        self.statsSimulatedTimeLabel.setAlignment(QtCore.Qt.AlignLeading
                                                  | QtCore.Qt.AlignLeft
                                                  | QtCore.Qt.AlignVCenter)
        self.statsSimulatedTimeLabel.setObjectName("statsSimulatedTimeLabel")
        self.gridLayout.addWidget(self.statsSimulatedTimeLabel, 1, 6, 1, 1)
        self.statsXAxisLabelStatUnit = QtWidgets.QLabel(self.statsBox)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Maximum,
                                           QtWidgets.QSizePolicy.Maximum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.statsXAxisLabelStatUnit.sizePolicy().hasHeightForWidth())
        self.statsXAxisLabelStatUnit.setSizePolicy(sizePolicy)
        self.statsXAxisLabelStatUnit.setObjectName("statsXAxisLabelStatUnit")
        self.gridLayout.addWidget(self.statsXAxisLabelStatUnit, 0, 9, 1, 1)
        self.statsYAxisLabel = QtWidgets.QLabel(self.statsBox)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum,
                                           QtWidgets.QSizePolicy.Maximum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.statsYAxisLabel.sizePolicy().hasHeightForWidth())
        self.statsYAxisLabel.setSizePolicy(sizePolicy)
        self.statsYAxisLabel.setAlignment(QtCore.Qt.AlignLeading
                                          | QtCore.Qt.AlignLeft
                                          | QtCore.Qt.AlignVCenter)
        self.statsYAxisLabel.setObjectName("statsYAxisLabel")
        self.gridLayout.addWidget(self.statsYAxisLabel, 0, 0, 1, 1)
        self.statsYAxisLabelStat = QtWidgets.QLabel(self.statsBox)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Maximum,
                                           QtWidgets.QSizePolicy.Maximum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.statsYAxisLabelStat.sizePolicy().hasHeightForWidth())
        self.statsYAxisLabelStat.setSizePolicy(sizePolicy)
        self.statsYAxisLabelStat.setObjectName("statsYAxisLabelStat")
        self.gridLayout.addWidget(self.statsYAxisLabelStat, 0, 1, 1, 1)
        self.statsXAxisLabel = QtWidgets.QLabel(self.statsBox)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum,
                                           QtWidgets.QSizePolicy.Maximum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.statsXAxisLabel.sizePolicy().hasHeightForWidth())
        self.statsXAxisLabel.setSizePolicy(sizePolicy)
        self.statsXAxisLabel.setAlignment(QtCore.Qt.AlignLeading
                                          | QtCore.Qt.AlignLeft
                                          | QtCore.Qt.AlignVCenter)
        self.statsXAxisLabel.setObjectName("statsXAxisLabel")
        self.gridLayout.addWidget(self.statsXAxisLabel, 0, 6, 1, 1)
        self.statsRealTimeStat = QtWidgets.QLabel(self.statsBox)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Maximum,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.statsRealTimeStat.sizePolicy().hasHeightForWidth())
        self.statsRealTimeStat.setSizePolicy(sizePolicy)
        self.statsRealTimeStat.setObjectName("statsRealTimeStat")
        self.gridLayout.addWidget(self.statsRealTimeStat, 1, 1, 1, 1)
        self.statsSimulatedTimeStat = QtWidgets.QLabel(self.statsBox)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Maximum,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.statsSimulatedTimeStat.sizePolicy().hasHeightForWidth())
        self.statsSimulatedTimeStat.setSizePolicy(sizePolicy)
        self.statsSimulatedTimeStat.setObjectName("statsSimulatedTimeStat")
        self.gridLayout.addWidget(self.statsSimulatedTimeStat, 1, 7, 1, 1)
        self.statsXAxisLabelStat = QtWidgets.QLabel(self.statsBox)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Maximum,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.statsXAxisLabelStat.sizePolicy().hasHeightForWidth())
        self.statsXAxisLabelStat.setSizePolicy(sizePolicy)
        self.statsXAxisLabelStat.setObjectName("statsXAxisLabelStat")
        self.gridLayout.addWidget(self.statsXAxisLabelStat, 0, 7, 1, 1)
        self.statsSimulatedTimeStatUnit = QtWidgets.QLabel(self.statsBox)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Maximum,
                                           QtWidgets.QSizePolicy.Maximum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.statsSimulatedTimeStatUnit.sizePolicy().hasHeightForWidth())
        self.statsSimulatedTimeStatUnit.setSizePolicy(sizePolicy)
        self.statsSimulatedTimeStatUnit.setObjectName(
            "statsSimulatedTimeStatUnit")
        self.gridLayout.addWidget(self.statsSimulatedTimeStatUnit, 1, 9, 1, 1)
        self.leftHandSide.addWidget(self.statsBox)
        self.horizontalLayout.addLayout(self.leftHandSide)
        self.lineDivider = QtWidgets.QFrame(self.tabDashboard)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed,
                                           QtWidgets.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.lineDivider.sizePolicy().hasHeightForWidth())
        self.lineDivider.setSizePolicy(sizePolicy)
        self.lineDivider.setFrameShape(QtWidgets.QFrame.VLine)
        self.lineDivider.setFrameShadow(QtWidgets.QFrame.Sunken)
        self.lineDivider.setObjectName("lineDivider")
        self.horizontalLayout.addWidget(self.lineDivider)
        self.verticalGraphVis = QtWidgets.QVBoxLayout()
        self.verticalGraphVis.setSizeConstraint(
            QtWidgets.QLayout.SetDefaultConstraint)
        self.verticalGraphVis.setContentsMargins(5, 5, 5, 5)
        self.verticalGraphVis.setObjectName("verticalGraphVis")
        self.graphWidgetHalfLifeDashboard = PlotWidget(self.tabDashboard)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.graphWidgetHalfLifeDashboard.sizePolicy().hasHeightForWidth())
        self.graphWidgetHalfLifeDashboard.setSizePolicy(sizePolicy)
        self.graphWidgetHalfLifeDashboard.setMinimumSize(QtCore.QSize(
            608, 330))
        self.graphWidgetHalfLifeDashboard.setMaximumSize(QtCore.QSize(
            608, 330))
        self.graphWidgetHalfLifeDashboard.setObjectName(
            "graphWidgetHalfLifeDashboard")
        self.verticalGraphVis.addWidget(self.graphWidgetHalfLifeDashboard)
        self.labelVis = QtWidgets.QLabel(self.tabDashboard)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.labelVis.sizePolicy().hasHeightForWidth())
        self.labelVis.setSizePolicy(sizePolicy)
        self.labelVis.setMinimumSize(QtCore.QSize(608, 330))
        self.labelVis.setMaximumSize(QtCore.QSize(608, 330))
        self.labelVis.setFrameShape(QtWidgets.QFrame.Box)
        self.labelVis.setLineWidth(2)
        self.labelVis.setText("")
        self.labelVis.setAlignment(QtCore.Qt.AlignCenter)
        self.labelVis.setObjectName("labelVis")
        self.verticalGraphVis.addWidget(self.labelVis)
        self.horizontalLayout.addLayout(self.verticalGraphVis)
        self.tabWidget.addTab(self.tabDashboard, "")
        self.tabGraph = QtWidgets.QWidget()
        self.tabGraph.setObjectName("tabGraph")
        self.graphWidgetHalfLife = PlotWidget(self.tabGraph)
        self.graphWidgetHalfLife.setGeometry(QtCore.QRect(0, 0, 1080, 720))
        self.graphWidgetHalfLife.setObjectName("graphWidgetHalfLife")
        self.tabWidget.addTab(self.tabGraph, "")
        MainWindow.setCentralWidget(self.centralwidget)
        self.menubar = QtWidgets.QMenuBar(MainWindow)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 1080, 22))
        self.menubar.setObjectName("menubar")
        MainWindow.setMenuBar(self.menubar)
        self.statusbar = QtWidgets.QStatusBar(MainWindow)
        self.statusbar.setObjectName("statusbar")
        MainWindow.setStatusBar(self.statusbar)

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

    def retranslateUi(self, MainWindow):
        _translate = QtCore.QCoreApplication.translate
        MainWindow.setWindowTitle(_translate("MainWindow", "Half Life Vis"))
        self.inputBox.setTitle(_translate("MainWindow", "Input"))
        self.inputNZeroLabel.setText(_translate("MainWindow", "N<sub>0</sub>"))
        self.inputHalfLifeLabel.setText(
            _translate("MainWindow", "Half Life t(1/2)"))
        self.inputTimeScaleLabel.setText(_translate("MainWindow",
                                                    "Time Scale"))
        self.inputTimeScaleComboBox.setToolTip(
            _translate("MainWindow", "Unit of time of half life"))
        self.inputTimeScaleComboBox.setItemText(
            0, _translate("MainWindow", "Seconds"))
        self.inputTimeScaleComboBox.setItemText(
            1, _translate("MainWindow", "Minutes"))
        self.inputTimeScaleComboBox.setItemText(
            2, _translate("MainWindow", "Days"))
        self.inputTimeScaleComboBox.setItemText(
            3, _translate("MainWindow", "Months"))
        self.inputTimeScaleComboBox.setItemText(
            4, _translate("MainWindow", "Years"))
        self.inputNZeroDoubleSpinBox.setToolTip(
            _translate("MainWindow", "Initial Amount"))
        self.inputNZeroUnitLabel.setText(
            _translate("MainWindow", "N<sub>0</sub> Unit"))
        self.inputNZeroLineEdit.setToolTip(
            _translate("MainWindow",
                       "Unit of decaying substance (ex. litres, kg)"))
        self.inputNZeroLineEdit.setText(_translate("MainWindow", "Nuclei"))
        self.inputPresetsLabel.setText(
            _translate("MainWindow", "Presets (optional)"))
        self.inputRealTimeLabel.setText(_translate("MainWindow", "1 Second ="))
        self.inputSimulatedTimeSpinBox.setToolTip(
            _translate("MainWindow",
                       "How much simulated time passes per real-life second"))
        self.inputSimulatedTimeLabel.setText(
            _translate("MainWindow", "Simulated Years"))
        self.controlsBox.setTitle(_translate("MainWindow", "Controls"))
        self.controlsStartStopButton.setToolTip(
            _translate("MainWindow",
                       "Start the simulation according to input"))
        self.controlsStartStopButton.setText(_translate("MainWindow", "Start"))
        self.controlsSimulationSpeedLabel.setText(
            _translate("MainWindow", "Simulation Speed"))
        self.controlsSimSpeedButton_1.setText(_translate(
            "MainWindow", "0.25x"))
        self.controlsSimSpeedButton_2.setText(_translate("MainWindow", "0.5x"))
        self.controlsSimSpeedButton_3.setText(
            _translate("MainWindow", "Normal"))
        self.controlsSimSpeedButton_4.setText(_translate("MainWindow", "2x"))
        self.controlsSimSpeedButton_5.setText(_translate("MainWindow", "5x"))
        self.controlsResetButton.setToolTip(
            _translate(
                "MainWindow",
                "Completely resets the simulator. If simulation is running, stops it."
            ))
        self.controlsResetButton.setText(_translate("MainWindow",
                                                    "Full Reset"))
        self.statsBox.setTitle(_translate("MainWindow", "Stats"))
        self.statsYAxisLabelStatUnit.setText(_translate(
            "MainWindow", "Nuclei"))
        self.statsRealTimeLabel.setText(
            _translate("MainWindow", "Real Time Elapsed:"))
        self.statsRealTimeStatUnit.setText(_translate("MainWindow", "Seconds"))
        self.statsSimulatedTimeLabel.setText(
            _translate("MainWindow", "Simulated Time Elapsed:"))
        self.statsXAxisLabelStatUnit.setText(_translate("MainWindow", "Years"))
        self.statsYAxisLabel.setText(_translate("MainWindow", "Y Axis:"))
        self.statsYAxisLabelStat.setText(_translate("MainWindow", "__"))
        self.statsXAxisLabel.setText(_translate("MainWindow", "X Axis"))
        self.statsRealTimeStat.setText(_translate("MainWindow", "__"))
        self.statsSimulatedTimeStat.setText(_translate("MainWindow", "__"))
        self.statsXAxisLabelStat.setText(_translate("MainWindow", "__"))
        self.statsSimulatedTimeStatUnit.setText(
            _translate("MainWindow", "Years"))
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.tabDashboard),
                                  _translate("MainWindow", "Dashboard"))
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.tabGraph),
                                  _translate("MainWindow", "Graph"))
Пример #12
0
class Ui_MainWindow(object):
    def __init__(self):

        self._coin_gold0 = QtGui.QPixmap('icons/events/coin_gold0.png')
        self._coin_gold1 = QtGui.QPixmap('icons/events/coin_gold1.png')
        self._coin_gold2 = QtGui.QPixmap('icons/events/coin_gold2.png')
        self._gold_coin = QtGui.QPixmap('icons/events/coin_gold0.png')
        self._grey_coin = QtGui.QPixmap('icons/events/coin_gold1.png')

        self.grey_bar = QtGui.QPixmap('icons/bars/grey_wide.png')
        self.top_bar = QtGui.QPixmap('icons/bars/red_wide.png')
        self.medium_bar = QtGui.QPixmap('icons/bars/yellow_wide.png')
        self.bottom_bar = QtGui.QPixmap('icons/bars/green_wide.png')

        self.green_glow = pg.QtGui.QGraphicsPixmapItem(
            pg.QtGui.QPixmap('icons/glow/Orange-Glow.png'))
        self.orange_glow = pg.QtGui.QGraphicsPixmapItem(
            pg.QtGui.QPixmap('icons/glow/Orange-Glow.png'))
        self.yellow_glow = pg.QtGui.QGraphicsPixmapItem(
            pg.QtGui.QPixmap('icons/glow/Yellow-Glow.png'))

        self.acc_icon_png = QtGui.QPixmap('icons/bars/acc_icon_g.png')
        self.brake_icon_png = QtGui.QPixmap('icons/bars/brake_icon_g.png')
        self.turn_icon_png = QtGui.QPixmap('icons/bars/turn_icon_g.png')
        self.swerve_icon_png = QtGui.QPixmap('icons/bars/swerve_icon_g.png')
        pass

    windowMoved = QtCore.pyqtSignal(QtCore.QPoint)

    def update_flowing_score(self):
        data3 = self.data3
        ptr3 = self.ptr3
        data3[ptr3] = np.random.normal()

        ptr3 += 1
        if ptr3 >= data3.shape[0]:
            tmp = data3
            data3 = np.empty(data3.shape[0] * 2)
            data3[:tmp.shape[0]] = tmp
        self.pen_y.setData(data3[:ptr3])
        self.data3 = data3
        if (data3[ptr3] > 100):
            self.pen_y.setPen(pg.mkPen('r', width=3))
        if (data3[ptr3] < 100):
            self.pen_y.setPen(pg.mkPen('y', width=3))
        self.pen_y.setPos(-ptr3, 0)
        self.ptr3 = ptr3

    def setupUi(self, MainWindow):
        MainWindow.setObjectName("MainWindow")
        MainWindow.resize(750, 500)
        MainWindow.setTabShape(QtWidgets.QTabWidget.Rounded)
        self.centralwidget = QtWidgets.QWidget(MainWindow)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.centralwidget.sizePolicy().hasHeightForWidth())
        self.centralwidget.setSizePolicy(sizePolicy)
        self.centralwidget.setObjectName("centralwidget")
        self.verticalLayout = QtWidgets.QVBoxLayout(self.centralwidget)
        self.verticalLayout.setContentsMargins(5, 10, 5, 0)
        self.verticalLayout.setSpacing(0)
        self.verticalLayout.setObjectName("verticalLayout")
        self.bar = QtWidgets.QWidget(self.centralwidget)
        self.bar.setMaximumSize(QtCore.QSize(16777215, 30))
        self.bar.setObjectName("bar")
        self.horizontalLayout = QtWidgets.QHBoxLayout(self.bar)
        self.horizontalLayout.setContentsMargins(-1, 5, 11, 5)
        self.horizontalLayout.setSpacing(9)
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.exit = QtWidgets.QPushButton(self.bar)
        self.exit.setMaximumSize(QtCore.QSize(30, 20))
        self.exit.setText("")
        self.exit.setObjectName("close")
        self.horizontalLayout.addWidget(self.exit)
        self.visit = QtWidgets.QPushButton(self.bar)
        self.visit.setMaximumSize(QtCore.QSize(30, 20))
        self.visit.setText("")
        self.visit.setObjectName("visit")
        self.horizontalLayout.addWidget(self.visit)
        self.mini = QtWidgets.QPushButton(self.bar)
        self.mini.setMaximumSize(QtCore.QSize(30, 20))
        self.mini.setFocusPolicy(QtCore.Qt.StrongFocus)
        self.mini.setText("")
        self.mini.setAutoDefault(False)
        self.mini.setDefault(False)
        self.mini.setFlat(False)
        self.mini.setObjectName("mini")
        self.horizontalLayout.addWidget(self.mini)
        spacerItem = QtWidgets.QSpacerItem(40, 15,
                                           QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout.addItem(spacerItem)
        self.next_page = QtWidgets.QPushButton(self.bar)
        self.next_page.setMaximumSize(QtCore.QSize(85, 30))
        self.next_page.setObjectName("next_page")
        self.horizontalLayout.addWidget(self.next_page)
        self.verticalLayout.addWidget(self.bar)
        self.Menu = QtWidgets.QGridLayout()
        self.Menu.setObjectName("Menu")
        self.down = QtWidgets.QWidget(self.centralwidget)
        self.down.setMinimumSize(QtCore.QSize(0, 130))
        self.down.setMaximumSize(QtCore.QSize(16777215, 130))
        self.down.setObjectName("down")
        self.down.setStyleSheet(
            'QWidget {background-color: #000000; color: yellow;}')
        self.gridLayout_down = QtWidgets.QGridLayout(self.down)
        self.gridLayout_down.setHorizontalSpacing(5)
        self.gridLayout_down.setObjectName("gridLayout_down")
        # pg.setConfigOption('background', '#17191A')
        self.flowing_scores = PlotWidget(self.down)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.flowing_scores.sizePolicy().hasHeightForWidth())
        self.flowing_scores.setSizePolicy(sizePolicy)
        self.flowing_scores.setMinimumSize(QtCore.QSize(0, 0))
        self.flowing_scores.setMaximumSize(QtCore.QSize(300, 120))
        self.flowing_scores.setLayoutDirection(QtCore.Qt.LeftToRight)
        self.flowing_scores.setObjectName("widget")
        self.gridLayout_down.addWidget(self.flowing_scores, 0, 0, 1, 1)

        self.verticalLayout_4 = QtWidgets.QVBoxLayout()
        self.verticalLayout_4.setObjectName("verticalLayout_4")
        self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.total_coins_img = QtWidgets.QLabel(self.down)
        self.total_coins_img.setMinimumSize(QtCore.QSize(100, 0))
        self.total_coins_img.setObjectName("total_coins_img")
        self.horizontalLayout_2.addWidget(self.total_coins_img)
        self.label_2 = QtWidgets.QLabel(self.down)
        self.label_2.setMinimumSize(QtCore.QSize(60, 40))
        self.label_2.setText("")
        self.label_2.setObjectName("label_2")
        self.horizontalLayout_2.addWidget(self.label_2)
        self.total_coins_score = QtWidgets.QLabel(self.down)
        self.total_coins_score.setMinimumSize(QtCore.QSize(100, 0))
        font = QtGui.QFont()
        font.setPointSize(20)
        font.setBold(True)
        font.setWeight(75)
        self.total_coins_score.setFont(font)
        self.total_coins_score.setObjectName("total_coins_score")
        self.horizontalLayout_2.addWidget(self.total_coins_score)
        self.verticalLayout_4.addLayout(self.horizontalLayout_2)
        self.total_coins = QtWidgets.QLabel(self.down)
        self.total_coins.setMinimumSize(QtCore.QSize(0, 10))
        self.total_coins.setMaximumSize(QtCore.QSize(16777215, 10))
        font = QtGui.QFont()
        font.setBold(True)
        font.setWeight(75)
        self.total_coins.setFont(font)
        self.total_coins.setAlignment(QtCore.Qt.AlignCenter)
        self.total_coins.setObjectName("total_coins")
        self.verticalLayout_4.addWidget(self.total_coins)
        self.horizontalLayout_3 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_3.setObjectName("horizontalLayout_3")
        self.trip_score_img = QtWidgets.QLabel(self.down)
        self.trip_score_img.setMinimumSize(QtCore.QSize(100, 0))
        self.trip_score_img.setObjectName("trip_score_img")
        self.horizontalLayout_3.addWidget(self.trip_score_img)
        self.label_3 = QtWidgets.QLabel(self.down)
        self.label_3.setMinimumSize(QtCore.QSize(60, 0))
        self.label_3.setText("")
        self.label_3.setObjectName("label_3")
        self.horizontalLayout_3.addWidget(self.label_3)
        self.trip_score_score = QtWidgets.QLabel(self.down)
        self.trip_score_score.setMinimumSize(QtCore.QSize(100, 0))
        font = QtGui.QFont()
        font.setPointSize(20)
        self.trip_score_score.setFont(font)
        self.trip_score_score.setObjectName("trip_score_score")
        self.horizontalLayout_3.addWidget(self.trip_score_score)
        self.verticalLayout_4.addLayout(self.horizontalLayout_3)
        self.trip_score = QtWidgets.QLabel(self.down)
        self.trip_score.setMinimumSize(QtCore.QSize(0, 9))
        self.trip_score.setMaximumSize(QtCore.QSize(250, 10))
        font = QtGui.QFont()
        font.setFamily("Book Antiqua")
        font.setPointSize(10)
        font.setKerning(True)
        self.trip_score.setFont(font)
        self.trip_score.setLayoutDirection(QtCore.Qt.RightToLeft)
        self.trip_score.setAlignment(QtCore.Qt.AlignCenter)
        self.trip_score.setObjectName("trip_score")
        self.verticalLayout_4.addWidget(self.trip_score)
        self.gridLayout_down.addLayout(self.verticalLayout_4, 0, 4, 1, 1)
        self.verticalLayout_2 = QtWidgets.QVBoxLayout()
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        self.verticalLayout_3 = QtWidgets.QVBoxLayout()
        self.verticalLayout_3.setSpacing(1)
        self.verticalLayout_3.setObjectName("verticalLayout_3")
        self.current_score = QtWidgets.QLabel(self.down)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.current_score.sizePolicy().hasHeightForWidth())
        self.current_score.setSizePolicy(sizePolicy)
        self.current_score.setMinimumSize(QtCore.QSize(200, 60))
        self.current_score.setMaximumSize(QtCore.QSize(250, 60))
        font = QtGui.QFont()
        font.setFamily("Brush Script Std")
        font.setPointSize(50)
        font.setBold(False)
        font.setItalic(False)
        font.setWeight(50)
        self.current_score.setFont(font)
        self.current_score.setAlignment(QtCore.Qt.AlignCenter)
        self.current_score.setObjectName("CurrentScore")
        self.verticalLayout_3.addWidget(self.current_score)
        self.current_score_text = QtWidgets.QLabel(self.down)
        self.current_score_text.setMaximumSize(QtCore.QSize(250, 16777215))
        self.current_score_text.setMinimumSize(QtCore.QSize(250, 40))
        font = QtGui.QFont()
        font.setBold(True)
        font.setWeight(75)
        font.setPointSize(15)
        self.current_score_text.setFont(font)
        self.current_score_text.setAlignment(QtCore.Qt.AlignCenter)
        self.current_score_text.setObjectName("label")
        self.verticalLayout_3.addWidget(self.current_score_text)
        self.verticalLayout_2.addLayout(self.verticalLayout_3)
        self.gridLayout_down.addLayout(self.verticalLayout_2, 0, 1, 1, 1)
        # font = QtGui.QFont()
        # font.setPointSize(15)
        # font.setKerning(True)
        # font.setBold(True)
        # font.setFamily("Brush Script Std")
        self.Menu.addWidget(self.down, 4, 0, 1, 1)
        self.line = QtWidgets.QFrame(self.centralwidget)
        self.line.setFrameShadow(QtWidgets.QFrame.Plain)
        self.line.setLineWidth(10)
        self.line.setFrameShape(QtWidgets.QFrame.HLine)
        self.line.setObjectName("line")
        self.Menu.addWidget(self.line, 1, 0, 1, 1)
        self.up = QtWidgets.QWidget(self.centralwidget)
        self.up.setMinimumSize(QtCore.QSize(0, 320))
        self.up.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.up.setObjectName("up")

        self.up.setStyleSheet(
            'QWidget {background-color: #000000; color: blue;}')
        self.gridLayout_up = QtWidgets.QGridLayout(self.up)
        self.gridLayout_up.setContentsMargins(-1, 0, -1, 0)
        self.gridLayout_up.setHorizontalSpacing(0)
        self.gridLayout_up.setVerticalSpacing(20)
        self.gridLayout_up.setObjectName("gridLayout_up")

        self.brake_bar = QtWidgets.QWidget(self.up)
        self.brake_bar.setMinimumSize(QtCore.QSize(80, 220))
        self.brake_bar.setMaximumSize(QtCore.QSize(80, 250))
        self.brake_bar.setObjectName("brake_bar")
        self.verticalLayout_break = QtWidgets.QVBoxLayout(self.brake_bar)
        self.verticalLayout_break.setContentsMargins(15, 0, 15, 0)
        self.verticalLayout_break.setSpacing(0)
        self.verticalLayout_break.setObjectName("verticalLayout_break")
        self.brake_icon = QtWidgets.QLabel(self.brake_bar)
        self.brake_icon.setMinimumSize(QtCore.QSize(40, 40))
        self.brake_icon.setMaximumSize(QtCore.QSize(40, 40))
        self.brake_icon.setText("")
        self.brake_icon.setObjectName("brake_icon")
        self.verticalLayout_break.addWidget(self.brake_icon)
        self.brake_bar1 = QtWidgets.QLabel(self.brake_bar)
        self.brake_bar1.setText("")
        self.brake_bar1.setObjectName("brake_bar1")
        self.verticalLayout_break.addWidget(self.brake_bar1)
        self.brake_bar2 = QtWidgets.QLabel(self.brake_bar)
        self.brake_bar2.setText("")
        self.brake_bar2.setObjectName("brake_bar2")
        self.verticalLayout_break.addWidget(self.brake_bar2)
        self.brake_bar3 = QtWidgets.QLabel(self.brake_bar)
        self.brake_bar3.setText("")
        self.brake_bar3.setObjectName("brake_bar3")
        self.verticalLayout_break.addWidget(self.brake_bar3)
        self.brake_bar4 = QtWidgets.QLabel(self.brake_bar)
        self.brake_bar4.setObjectName("brake_bar4")
        self.verticalLayout_break.addWidget(self.brake_bar4)
        self.brake_bar5 = QtWidgets.QLabel(self.brake_bar)
        self.brake_bar5.setObjectName("label_4")
        self.verticalLayout_break.addWidget(self.brake_bar5)
        self.gridLayout_up.addWidget(self.brake_bar, 1, 1, 2, 1)
        self.acc_bar = QtWidgets.QWidget(self.up)
        self.acc_bar.setMinimumSize(QtCore.QSize(80, 220))
        self.acc_bar.setMaximumSize(QtCore.QSize(80, 250))
        self.acc_bar.setObjectName("acc_bar")
        self.verticalLayout_acc = QtWidgets.QVBoxLayout(self.acc_bar)
        self.verticalLayout_acc.setContentsMargins(15, 0, 15, 0)
        self.verticalLayout_acc.setSpacing(0)
        self.verticalLayout_acc.setObjectName("verticalLayout_acc")
        self.acc_icon = QtWidgets.QLabel(self.acc_bar)
        self.acc_icon.setMinimumSize(QtCore.QSize(40, 40))
        self.acc_icon.setMaximumSize(QtCore.QSize(40, 40))
        # self.acc_icon.setLayoutDirection(QtCore.Qt.LeftToRight)
        # self.acc_icon.setAutoFillBackground(False)
        # self.acc_icon.setFrameShape(QtWidgets.QFrame.NoFrame)
        # self.acc_icon.setAlignment(QtCore.Qt.AlignJustify | QtCore.Qt.AlignVCenter)
        self.acc_icon.setText("")
        self.acc_icon.setObjectName("acc_icon")
        self.verticalLayout_acc.addWidget(self.acc_icon)
        self.acc_bar1 = QtWidgets.QLabel(self.acc_bar)
        self.acc_bar1.setText("")
        self.acc_bar1.setObjectName("acc_bar1")
        self.verticalLayout_acc.addWidget(self.acc_bar1)
        self.acc_bar2 = QtWidgets.QLabel(self.acc_bar)
        self.acc_bar2.setText("")
        self.acc_bar2.setObjectName("acc_bar2")
        self.verticalLayout_acc.addWidget(self.acc_bar2)
        self.acc_bar3 = QtWidgets.QLabel(self.acc_bar)
        self.acc_bar3.setText("")
        self.acc_bar3.setObjectName("acc_bar3")
        self.verticalLayout_acc.addWidget(self.acc_bar3)
        self.acc_bar4 = QtWidgets.QLabel(self.acc_bar)
        self.acc_bar4.setObjectName("accbar4")
        self.verticalLayout_acc.addWidget(self.acc_bar4)
        self.acc_bar5 = QtWidgets.QLabel(self.acc_bar)
        self.acc_bar5.setObjectName("acc_bar5")
        self.verticalLayout_acc.addWidget(self.acc_bar5)
        self.gridLayout_up.addWidget(self.acc_bar, 1, 0, 2, 1)
        self.turn_bar = QtWidgets.QWidget(self.up)
        self.turn_bar.setMinimumSize(QtCore.QSize(80, 220))
        self.turn_bar.setMaximumSize(QtCore.QSize(80, 250))
        self.turn_bar.setObjectName("turn_bar")
        self.verticalLayout_turn = QtWidgets.QVBoxLayout(self.turn_bar)
        self.verticalLayout_turn.setContentsMargins(15, 0, 15, 0)
        self.verticalLayout_turn.setSpacing(0)
        self.verticalLayout_turn.setObjectName("verticalLayout_turn")
        self.turn_icon = QtWidgets.QLabel(self.turn_bar)
        self.turn_icon.setMinimumSize(QtCore.QSize(40, 40))
        self.turn_icon.setMaximumSize(QtCore.QSize(40, 40))
        self.turn_icon.setText("")
        self.turn_icon.setObjectName("turn_icon")
        self.verticalLayout_turn.addWidget(self.turn_icon)
        self.turn_bar1 = QtWidgets.QLabel(self.turn_bar)
        self.turn_bar1.setText("")
        self.turn_bar1.setObjectName("turn_bar1")
        self.verticalLayout_turn.addWidget(self.turn_bar1)
        self.turn_bar2 = QtWidgets.QLabel(self.turn_bar)
        self.turn_bar2.setText("")
        self.turn_bar2.setObjectName("turn_bar2")
        self.verticalLayout_turn.addWidget(self.turn_bar2)
        self.turn_bar3 = QtWidgets.QLabel(self.turn_bar)
        self.turn_bar3.setText("")
        self.turn_bar3.setObjectName("turn_bar3")
        self.verticalLayout_turn.addWidget(self.turn_bar3)
        self.turn_bar4 = QtWidgets.QLabel(self.turn_bar)
        self.turn_bar4.setObjectName("turn_bar4")
        self.verticalLayout_turn.addWidget(self.turn_bar4)
        self.turn_bar5 = QtWidgets.QLabel(self.turn_bar)
        self.turn_bar5.setObjectName("turn_bar5")
        self.verticalLayout_turn.addWidget(self.turn_bar5)
        self.gridLayout_up.addWidget(self.turn_bar, 1, 5, 2, 1)
        self.swerve_bar = QtWidgets.QWidget(self.up)
        self.swerve_bar.setMinimumSize(QtCore.QSize(80, 220))
        self.swerve_bar.setMaximumSize(QtCore.QSize(80, 250))
        self.swerve_bar.setObjectName("swerve_bar")
        self.verticalLayout_swerve = QtWidgets.QVBoxLayout(self.swerve_bar)
        self.verticalLayout_swerve.setContentsMargins(15, 0, 15, 0)
        self.verticalLayout_swerve.setSpacing(0)
        self.verticalLayout_swerve.setObjectName("verticalLayout_swerve")
        self.swerve_icon = QtWidgets.QLabel(self.swerve_bar)
        self.swerve_icon.setMinimumSize(QtCore.QSize(40, 40))
        self.swerve_icon.setMaximumSize(QtCore.QSize(40, 40))
        self.swerve_icon.setText("")
        self.swerve_icon.setObjectName("swerve_icon")
        self.verticalLayout_swerve.addWidget(self.swerve_icon)
        self.swerve_bar1 = QtWidgets.QLabel(self.swerve_bar)
        self.swerve_bar1.setText("")
        self.swerve_bar1.setObjectName("swerve_bar1")
        self.verticalLayout_swerve.addWidget(self.swerve_bar1)
        self.swerve_bar2 = QtWidgets.QLabel(self.swerve_bar)
        self.swerve_bar2.setText("")
        self.swerve_bar2.setObjectName("swerve_bar2")
        self.verticalLayout_swerve.addWidget(self.swerve_bar2)
        self.swerve_bar3 = QtWidgets.QLabel(self.swerve_bar)
        self.swerve_bar3.setText("")
        self.swerve_bar3.setObjectName("swerve_bar3")
        self.verticalLayout_swerve.addWidget(self.swerve_bar3)
        self.swerve_bar4 = QtWidgets.QLabel(self.swerve_bar)
        self.swerve_bar4.setObjectName("swerve_bar4")
        self.verticalLayout_swerve.addWidget(self.swerve_bar4)
        self.swerve_bar5 = QtWidgets.QLabel(self.swerve_bar)
        self.swerve_bar5.setObjectName("swerve_bar5")
        self.verticalLayout_swerve.addWidget(self.swerve_bar5)
        self.gridLayout_up.addWidget(self.swerve_bar, 1, 6, 2, 1)
        self.gridLayout_up.addWidget(self.acc_bar, 1, 0, 1, 1)

        pg.setConfigOption('background', '#000000')

        self.backCircle = PlotWidget(self.up)
        # self.backCircle = QtWidgets.QWidget(self.up)
        self.backCircle.setMinimumSize(QtCore.QSize(50, 50))
        self.backCircle.setMaximumSize(QtCore.QSize(249, 249))
        self.backCircle.setObjectName("backCircle")
        self.backCircle.getPlotItem().hideAxis('bottom')
        self.backCircle.getPlotItem().hideAxis('left')
        self.backCircleLayout = QtWidgets.QGridLayout(self.backCircle)
        self.backCircleLayout.setContentsMargins(58, 50, 60, 50)
        self.backCircleLayout.setObjectName("backCircleLayout")
        # self.backCircle.setStyleSheet('QWidget {background-color: red; color: blue;}')

        self.feedback = QtWidgets.QLabel(self.backCircle)
        self.feedback.setMinimumSize(QtCore.QSize(50, 50))
        self.feedback.setMaximumSize(QtCore.QSize(320, 320))
        self.feedback.setText("")
        self.feedback.setAlignment(QtCore.Qt.AlignCenter)
        self.feedback.setObjectName("feedback")

        # self.feedback.setStyleSheet('QWidget {background-color: yellow; color: blue;}')
        self.backCircleLayout.addWidget(self.feedback, 0, 0, 1, 1)
        self.gridLayout_up.addWidget(self.backCircle, 0, 3, 2, 1)
        self.Menu.addWidget(self.up, 0, 0, 1, 1)
        self.verticalLayout.addLayout(self.Menu)
        MainWindow.setCentralWidget(self.centralwidget)
        self.menubar = QtWidgets.QMenuBar(MainWindow)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 750, 21))
        self.menubar.setObjectName("menubar")
        MainWindow.setMenuBar(self.menubar)
        self.statusbar = QtWidgets.QStatusBar(MainWindow)
        self.statusbar.setObjectName("statusbar")
        MainWindow.setStatusBar(self.statusbar)

        # these are three control buttons
        self.exit.setFixedSize(15, 15)
        self.visit.setFixedSize(15, 15)
        self.mini.setFixedSize(15, 15)
        self.exit.setStyleSheet(
            '''QPushButton{background:#F76677;border-radius:5px;}QPushButton:hover{background:red;}'''
        )
        self.next_page.setFixedSize(80, 20)
        # self.visit.setStyleSheet('''QPushButton{background:#F7D674;border-radius:5px;}QPushButton:hover{background:yellow;}''')
        # self.mini.setStyleSheet('''QPushButton{background:#6DDF6D;border-radius:5px;}QPushButton:hover{background:green;}''')

        self._badge1 = QtGui.QPixmap('icons/bars/Car.png')
        self._badge2 = QtGui.QPixmap('icons/events/Less_Coins.png')
        # self._badge3 = QtGui.QPixmap('icons/Badges/png/003-bronze-medal.png')

        self.label_3.setPixmap(self._badge1)
        self.label_3.setScaledContents(True)
        self.label_3.setMaximumSize(QtCore.QSize(10, 40))

        self.label_2.setPixmap(self._badge2)
        self.label_2.setScaledContents(True)
        self.label_2.setMaximumSize(QtCore.QSize(20, 30))

        self.total_coins_score.setStyleSheet(
            'QWidget {background-color: #000000; color: yellow;}')
        self.total_coins.setStyleSheet(
            'QWidget {background-color: #000000; color: gray;}')
        self.trip_score_score.setStyleSheet(
            'QWidget {background-color: #000000; color: yellow;}')
        self.trip_score.setStyleSheet(
            'QWidget {background-color: #000000; color: gray;}')
        self.current_score_text.setStyleSheet(
            'QWidget {background-color: #000000; color: gray;}')
        # beautify window
        self.setWindowFlag(QtCore.Qt.FramelessWindowHint)  # hide the boarder
        # self.setWindowOpacity(0.98)
        # self.setAttribute(QtCore.Qt.WA_TranslucentBackground)  # set transparent window

        self.exit.clicked.connect(self.close)  # close window
        self.mini.clicked.connect(self.showMinimized)  # minimum window
        self.windowMoved.connect(self.move)  # move window

        # draw graph of lines
        self.flowing_scores.setDownsampling(mode='peak')
        self.flowing_scores.setClipToView(True)
        self.flowing_scores.setXRange(0, 100)
        self.flowing_scores.setLimits(xMax=0)
        self.pen_y = self.flowing_scores.plot()
        self.pen_y.setPen(pg.mkPen('y', width=3))
        self.data3 = np.empty(10)
        self.ptr3 = 0

        #draw acc icon
        self.acc_icon.setPixmap(self.acc_icon_png)
        self.acc_icon.setScaledContents(True)
        self.acc_icon.setMaximumSize(QtCore.QSize(40, 40))
        self.turn_icon.setPixmap(self.turn_icon_png)
        self.turn_icon.setScaledContents(True)
        self.turn_icon.setMaximumSize(QtCore.QSize(40, 40))
        self.brake_icon.setPixmap(self.brake_icon_png)
        self.brake_icon.setScaledContents(True)
        self.brake_icon.setMaximumSize(QtCore.QSize(40, 40))
        self.swerve_icon.setPixmap(self.swerve_icon_png)
        self.swerve_icon.setScaledContents(True)
        self.swerve_icon.setMaximumSize(QtCore.QSize(40, 40))

        self.setFeedBack(0, 'acc')

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

    def mousePressEvent(self, event):
        if event.button() == QtCore.Qt.LeftButton:
            self.mPos = event.pos()
        event.accept()

    def mouseReleaseEvent(self, event):
        self.mPos = None
        event.accept()

    def mouseMoveEvent(self, event):
        if event.buttons() == QtCore.Qt.LeftButton and self.mPos:
            self.windowMoved.emit(self.mapToGlobal(event.pos() - self.mPos))
        event.accept()

    # set current score and update
    def setCurrentScore(self, score):
        self.current_score.setText(str(score))

    # set Total score for trip
    def setTotalScore(self, score):
        self.trip_score.setText(str(score))

    def setFeedBack(self, level: int, type: str):

        if level == 0:
            self.backCircle.clear()
            self.backCircle.addItem(self.green_glow)
        elif level == 1:
            self.backCircle.clear()
            self.backCircle.addItem(self.yellow_glow)
        elif level == 2:
            self.backCircle.clear()
            self.backCircle.addItem(self.orange_glow)

        self.feedback.setPixmap(self.acc_icon_png)
        if type == 'acc':
            self.feedback.setPixmap(self.acc_icon_png)
            self.feedback.setScaledContents(True)
            self.feedback.setMaximumSize(QtCore.QSize(100, 150))
        elif type == 'brake':
            self.feedback.setPixmap(self.brake_icon_png)
            self.feedback.setScaledContents(True)
            self.feedback.setMaximumSize(QtCore.QSize(100, 150))
        elif type == 'turn':
            self.feedback.setPixmap(self.turn_icon_png)
            self.feedback.setScaledContents(True)
            self.feedback.setMaximumSize(QtCore.QSize(100, 150))
        elif type == 'swerve':
            self.feedback.setPixmap(self.swerve_icon_png)
            self.feedback.setScaledContents(True)
            self.feedback.setMaximumSize(QtCore.QSize(100, 150))
        else:
            self.feedback.clear()

    def setBar(self, level: int, type: str):
        if type == 'acc':
            self.initalface(type)
            self.change_acc_bar(level)
        elif type == 'brake':
            self.initalface(type)
            self.change_brake_bar(level)
        elif type == 'turn':
            self.initalface(type)
            self.change_turn_bar(level)
        elif type == 'swerve':
            self.initalface(type)
            self.change_swerve_bar(level)

    def initalface(self, type: str):
        if type == 'acc':
            self.acc_bar1.setPixmap(self.grey_bar)
            self.acc_bar2.setPixmap(self.grey_bar)
            self.acc_bar3.setPixmap(self.grey_bar)
            self.acc_bar4.setPixmap(self.grey_bar)
            self.acc_bar5.setPixmap(self.grey_bar)
            self.acc_bar1.setScaledContents(True)
            self.acc_bar2.setScaledContents(True)
            self.acc_bar3.setScaledContents(True)
            self.acc_bar4.setScaledContents(True)
            self.acc_bar5.setScaledContents(True)
            self.acc_bar1.setMaximumSize(QtCore.QSize(40, 47))
            self.acc_bar2.setMaximumSize(QtCore.QSize(40, 47))
            self.acc_bar3.setMaximumSize(QtCore.QSize(40, 47))
            self.acc_bar4.setMaximumSize(QtCore.QSize(40, 47))
            self.acc_bar5.setMaximumSize(QtCore.QSize(40, 47))

        elif type == 'turn':
            self.turn_bar1.setPixmap(self.grey_bar)
            self.turn_bar2.setPixmap(self.grey_bar)
            self.turn_bar3.setPixmap(self.grey_bar)
            self.turn_bar4.setPixmap(self.grey_bar)
            self.turn_bar5.setPixmap(self.grey_bar)
            self.turn_bar1.setScaledContents(True)
            self.turn_bar2.setScaledContents(True)
            self.turn_bar3.setScaledContents(True)
            self.turn_bar4.setScaledContents(True)
            self.turn_bar5.setScaledContents(True)
            self.turn_bar1.setMaximumSize(QtCore.QSize(40, 47))
            self.turn_bar2.setMaximumSize(QtCore.QSize(40, 47))
            self.turn_bar3.setMaximumSize(QtCore.QSize(40, 47))
            self.turn_bar4.setMaximumSize(QtCore.QSize(40, 47))
            self.turn_bar5.setMaximumSize(QtCore.QSize(40, 47))

        elif type == 'swerve':
            self.swerve_bar1.setPixmap(self.grey_bar)
            self.swerve_bar2.setPixmap(self.grey_bar)
            self.swerve_bar3.setPixmap(self.grey_bar)
            self.swerve_bar4.setPixmap(self.grey_bar)
            self.swerve_bar5.setPixmap(self.grey_bar)
            self.swerve_bar1.setScaledContents(True)
            self.swerve_bar2.setScaledContents(True)
            self.swerve_bar3.setScaledContents(True)
            self.swerve_bar4.setScaledContents(True)
            self.swerve_bar5.setScaledContents(True)
            self.swerve_bar1.setMaximumSize(QtCore.QSize(40, 47))
            self.swerve_bar2.setMaximumSize(QtCore.QSize(40, 47))
            self.swerve_bar3.setMaximumSize(QtCore.QSize(40, 47))
            self.swerve_bar4.setMaximumSize(QtCore.QSize(40, 47))
            self.swerve_bar5.setMaximumSize(QtCore.QSize(40, 47))

        elif type == 'brake':
            self.brake_bar1.setPixmap(self.grey_bar)
            self.brake_bar2.setPixmap(self.grey_bar)
            self.brake_bar3.setPixmap(self.grey_bar)
            self.brake_bar4.setPixmap(self.grey_bar)
            self.brake_bar5.setPixmap(self.grey_bar)
            self.brake_bar1.setScaledContents(True)
            self.brake_bar2.setScaledContents(True)
            self.brake_bar3.setScaledContents(True)
            self.brake_bar4.setScaledContents(True)
            self.brake_bar5.setScaledContents(True)
            self.brake_bar1.setMaximumSize(QtCore.QSize(40, 47))
            self.brake_bar2.setMaximumSize(QtCore.QSize(40, 47))
            self.brake_bar3.setMaximumSize(QtCore.QSize(40, 47))
            self.brake_bar5.setMaximumSize(QtCore.QSize(40, 47))
            self.brake_bar4.setMaximumSize(QtCore.QSize(40, 47))

    def change_acc_bar(self, level: int):
        if level == 0:
            self.acc_bar1.setPixmap(self.grey_bar)
            self.acc_bar2.setPixmap(self.grey_bar)
            self.acc_bar3.setPixmap(self.bottom_bar)
        elif level == 1:
            self.acc_bar1.setPixmap(self.grey_bar)
            self.acc_bar2.setPixmap(self.medium_bar)
            self.acc_bar3.setPixmap(self.bottom_bar)
        elif level == 2:
            self.acc_bar1.setPixmap(self.top_bar)
            self.acc_bar2.setPixmap(self.medium_bar)
            self.acc_bar3.setPixmap(self.bottom_bar)

        self.acc_bar1.setScaledContents(True)
        self.acc_bar2.setScaledContents(True)
        self.acc_bar3.setScaledContents(True)
        self.acc_bar1.setMaximumSize(QtCore.QSize(40, 47))
        self.acc_bar2.setMaximumSize(QtCore.QSize(40, 47))
        self.acc_bar3.setMaximumSize(QtCore.QSize(40, 47))

    def change_turn_bar(self, level: int):
        if level == 0:
            self.turn_bar1.setPixmap(self.grey_bar)
            self.turn_bar2.setPixmap(self.grey_bar)
            self.turn_bar3.setPixmap(self.bottom_bar)
        elif level == 1:
            self.turn_bar1.setPixmap(self.grey_bar)
            self.turn_bar2.setPixmap(self.medium_bar)
            self.turn_bar3.setPixmap(self.bottom_bar)
        elif level == 2:
            self.turn_bar1.setPixmap(self.top_bar)
            self.turn_bar2.setPixmap(self.medium_bar)
            self.turn_bar3.setPixmap(self.bottom_bar)
        self.turn_bar1.setScaledContents(True)
        self.turn_bar2.setScaledContents(True)
        self.turn_bar3.setScaledContents(True)
        self.turn_bar1.setMaximumSize(QtCore.QSize(40, 47))
        self.turn_bar2.setMaximumSize(QtCore.QSize(40, 47))
        self.turn_bar3.setMaximumSize(QtCore.QSize(40, 47))

    def change_swerve_bar(self, level: int):
        if level == 0:
            self.swerve_bar1.setPixmap(self.grey_bar)
            self.swerve_bar2.setPixmap(self.grey_bar)
            self.swerve_bar3.setPixmap(self.bottom_bar)
        elif level == 1:
            self.swerve_bar1.setPixmap(self.grey_bar)
            self.swerve_bar2.setPixmap(self.medium_bar)
            self.swerve_bar3.setPixmap(self.bottom_bar)
        elif level == 2:
            self.swerve_bar1.setPixmap(self.top_bar)
            self.swerve_bar2.setPixmap(self.medium_bar)
            self.swerve_bar3.setPixmap(self.bottom_bar)
        self.swerve_bar1.setScaledContents(True)
        self.swerve_bar2.setScaledContents(True)
        self.swerve_bar3.setScaledContents(True)
        self.swerve_bar1.setMaximumSize(QtCore.QSize(40, 47))
        self.swerve_bar2.setMaximumSize(QtCore.QSize(40, 47))
        self.swerve_bar3.setMaximumSize(QtCore.QSize(40, 47))

    def change_brake_bar(self, level: int):
        if level == 0:
            self.brake_bar1.setPixmap(self.grey_bar)
            self.brake_bar2.setPixmap(self.grey_bar)
            self.brake_bar3.setPixmap(self.bottom_bar)
        elif level == 1:
            self.brake_bar1.setPixmap(self.grey_bar)
            self.brake_bar2.setPixmap(self.medium_bar)
            self.brake_bar3.setPixmap(self.bottom_bar)
        elif level == 2:
            self.brake_bar1.setPixmap(self.top_bar)
            self.brake_bar2.setPixmap(self.medium_bar)
            self.brake_bar3.setPixmap(self.bottom_bar)
        self.brake_bar1.setScaledContents(True)
        self.brake_bar2.setScaledContents(True)
        self.brake_bar3.setScaledContents(True)
        self.brake_bar1.setMaximumSize(QtCore.QSize(40, 47))
        self.brake_bar2.setMaximumSize(QtCore.QSize(40, 47))
        self.brake_bar3.setMaximumSize(QtCore.QSize(40, 47))

    def retranslateUi(self, MainWindow):
        _translate = QtCore.QCoreApplication.translate
        MainWindow.setWindowTitle(_translate("MainWindow", "MainWindow"))
        self.next_page.setText(_translate("MainWindow", "Next Page>>"))
        self.total_coins_img.setText(_translate("MainWindow", ""))
        self.total_coins_score.setText(_translate("MainWindow", "27"))
        self.total_coins.setText(_translate("MainWindow", "Total Coins"))
        self.trip_score_img.setText(_translate("MainWindow", ""))
        self.trip_score_score.setText(_translate("MainWindow", "91"))
        self.trip_score.setText(_translate("MainWindow", "Trip Score"))
        self.current_score.setText(_translate("MainWindow", "86"))
        self.current_score_text.setText(
            _translate("MainWindow", "Current Score"))
Пример #13
0
class Ui_MainWindow(object):
    def __init__(self):

        self._coin_gold0 = QtGui.QPixmap('icons/events/coin_gold0.png')
        self._coin_gold1 = QtGui.QPixmap('icons/events/coin_gold1.png')
        self._coin_gold2 = QtGui.QPixmap('icons/events/coin_gold2.png')
        self._gold_coin = QtGui.QPixmap('icons/events/coin_gold0.png')
        self._grey_coin = QtGui.QPixmap('icons/events/coin_gold1.png')

        self.grey_bar = QtGui.QPixmap('icons/bars/grey_bar.png')
        self.top_bar = QtGui.QPixmap('icons/bars/top_bar.png')
        self.medium_bar = QtGui.QPixmap('icons/bars/medium_bar.png')
        self.bottom_bar = QtGui.QPixmap('icons/bars/bottom_bar.png')

        self.green_glow = pg.QtGui.QGraphicsPixmapItem(
            pg.QtGui.QPixmap('icons/glow/Green-Glow.png'))
        self.orange_glow = pg.QtGui.QGraphicsPixmapItem(
            pg.QtGui.QPixmap('icons/glow/Orange-Glow.png'))
        self.yellow_glow = pg.QtGui.QGraphicsPixmapItem(
            pg.QtGui.QPixmap('icons/glow/Yellow-Glow.png'))

        self.brake_icon = QtGui.QIcon('icons/events/Brake.svg')
        self.acc_icon = QtGui.QIcon('icons/events/Accelerate.svg')
        self.turn_icon = QtGui.QIcon('icons/events/Turn.svg')
        self.swerve_icon = QtGui.QIcon('icons/events/Swerve.svg')
        pass

    windowMoved = QtCore.pyqtSignal(QtCore.QPoint)

    def update2(self):
        data3 = self.data3
        ptr3 = self.ptr3
        data3[ptr3] = np.random.normal()

        ptr3 += 1
        if ptr3 >= data3.shape[0]:
            tmp = data3
            data3 = np.empty(data3.shape[0] * 2)
            data3[:tmp.shape[0]] = tmp
        self.pen1.setData(data3[:ptr3])
        self.data3 = data3
        if (ptr3 > 100):
            self.pen1.setPen(pg.mkPen('r', width=3))
        self.pen1.setPos(-ptr3, 0)
        self.ptr3 = ptr3

    def setupUi(self, MainWindow):
        MainWindow.setObjectName("MainWindow")
        MainWindow.resize(750, 500)
        MainWindow.setTabShape(QtWidgets.QTabWidget.Rounded)
        self.centralwidget = QtWidgets.QWidget(MainWindow)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.centralwidget.sizePolicy().hasHeightForWidth())
        self.centralwidget.setSizePolicy(sizePolicy)
        self.centralwidget.setObjectName("centralwidget")
        self.verticalLayout = QtWidgets.QVBoxLayout(self.centralwidget)
        self.verticalLayout.setContentsMargins(5, 10, 5, 0)
        self.verticalLayout.setSpacing(0)
        self.verticalLayout.setObjectName("verticalLayout")
        self.bar = QtWidgets.QWidget(self.centralwidget)
        self.bar.setMaximumSize(QtCore.QSize(16777215, 30))
        self.bar.setObjectName("bar")
        self.horizontalLayout = QtWidgets.QHBoxLayout(self.bar)
        self.horizontalLayout.setContentsMargins(-1, 5, 11, 5)
        self.horizontalLayout.setSpacing(9)
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.exit = QtWidgets.QPushButton(self.bar)
        self.exit.setMaximumSize(QtCore.QSize(30, 20))
        self.exit.setText("")
        self.exit.setObjectName("close")
        self.horizontalLayout.addWidget(self.exit)
        self.visit = QtWidgets.QPushButton(self.bar)
        self.visit.setMaximumSize(QtCore.QSize(30, 20))
        self.visit.setText("")
        self.visit.setObjectName("visit")
        self.horizontalLayout.addWidget(self.visit)
        self.mini = QtWidgets.QPushButton(self.bar)
        self.mini.setMaximumSize(QtCore.QSize(30, 20))
        self.mini.setFocusPolicy(QtCore.Qt.StrongFocus)
        self.mini.setText("")
        self.mini.setAutoDefault(False)
        self.mini.setDefault(False)
        self.mini.setFlat(False)
        self.mini.setObjectName("mini")
        self.horizontalLayout.addWidget(self.mini)
        spacerItem = QtWidgets.QSpacerItem(40, 15,
                                           QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout.addItem(spacerItem)
        self.next_page = QtWidgets.QPushButton(self.bar)
        self.next_page.setMaximumSize(QtCore.QSize(85, 30))
        self.next_page.setObjectName("next_page")
        self.horizontalLayout.addWidget(self.next_page)
        self.verticalLayout.addWidget(self.bar)
        self.Menu = QtWidgets.QGridLayout()
        self.Menu.setObjectName("Menu")
        self.down = QtWidgets.QWidget(self.centralwidget)
        self.down.setMinimumSize(QtCore.QSize(0, 130))
        self.down.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.down.setObjectName("down")
        self.gridLayout_down = QtWidgets.QGridLayout(self.down)
        self.gridLayout_down.setHorizontalSpacing(5)
        self.gridLayout_down.setObjectName("gridLayout_down")
        # pg.setConfigOption('background', '#17191A')
        self.widget = PlotWidget(self.down)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.widget.sizePolicy().hasHeightForWidth())
        self.widget.setSizePolicy(sizePolicy)
        self.widget.setMinimumSize(QtCore.QSize(0, 0))
        self.widget.setMaximumSize(QtCore.QSize(300, 120))
        self.widget.setLayoutDirection(QtCore.Qt.LeftToRight)
        self.widget.setObjectName("widget")
        self.gridLayout_down.addWidget(self.widget, 0, 0, 1, 1)

        self.current_score = QtWidgets.QLabel(self.down)
        # sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Preferred)
        # sizePolicy.setHorizontalStretch(0)
        # sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.current_score.sizePolicy().hasHeightForWidth())
        self.current_score.setSizePolicy(sizePolicy)
        self.current_score.setMinimumSize(QtCore.QSize(20, 60))
        self.current_score.setMaximumSize(QtCore.QSize(300, 120))
        font = QtGui.QFont()
        font.setFamily("Brush Script Std")
        font.setPointSize(50)
        font.setBold(True)
        font.setWeight(75)
        self.current_score.setFont(font)
        self.current_score.setAlignment(QtCore.Qt.AlignCenter)
        self.current_score.setObjectName("CurrentScore")
        self.gridLayout_down.addWidget(self.current_score, 0, 1, 1, 1)

        self.total_score = QtWidgets.QPushButton()
        self.total_score.setWindowFlag(QtCore.Qt.FramelessWindowHint)
        self.total_score.setMinimumSize(QtCore.QSize(0, 0))
        self.total_score.setMaximumSize(QtCore.QSize(250, 120))
        self.total_score.setFlat(True)
        font = QtGui.QFont()
        font.setPointSize(15)
        font.setKerning(True)
        font.setBold(True)
        font.setFamily("Brush Script Std")
        self.total_score.setStyleSheet(
            'QPushButton {background-color: #17191A; color: white;}')
        self.total_score.setFont(font)
        self.total_score.setLayoutDirection(QtCore.Qt.RightToLeft)
        # self.TotalScore.setAlignment(QtCore.Qt.AlignCenter)
        self.total_score.setObjectName("TotalScore")
        self.gridLayout_down.addWidget(self.total_score, 0, 2, 1, 1)
        self.Menu.addWidget(self.down, 4, 0, 1, 1)
        self.line = QtWidgets.QFrame(self.centralwidget)
        self.line.setFrameShadow(QtWidgets.QFrame.Plain)
        self.line.setLineWidth(10)
        self.line.setFrameShape(QtWidgets.QFrame.HLine)
        self.line.setObjectName("line")
        self.Menu.addWidget(self.line, 1, 0, 1, 1)
        self.up = QtWidgets.QWidget(self.centralwidget)
        self.up.setMinimumSize(QtCore.QSize(0, 0))
        self.up.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.up.setObjectName("up")
        self.gridLayout_up = QtWidgets.QGridLayout(self.up)
        self.gridLayout_up.setContentsMargins(-1, 0, -1, 0)
        self.gridLayout_up.setHorizontalSpacing(0)
        self.gridLayout_up.setVerticalSpacing(0)
        self.gridLayout_up.setSpacing(0)
        self.gridLayout_up.setObjectName("gridLayout_up")

        self.turn_bar = QtWidgets.QWidget(self.up)
        self.turn_bar.setMaximumSize(QtCore.QSize(80, 220))
        self.turn_bar.setObjectName("Turn_bar")
        self.verticalLayout_turn = QtWidgets.QVBoxLayout(self.turn_bar)
        self.verticalLayout_turn.setContentsMargins(15, 0, 15, 0)
        self.verticalLayout_turn.setSpacing(0)
        self.verticalLayout_turn.setObjectName("verticalLayout_turn")
        self.turn_bar1 = QtWidgets.QLabel(self.turn_bar)
        self.turn_bar1.setText("")
        self.turn_bar1.setObjectName("turn_bar1")
        self.verticalLayout_turn.addWidget(self.turn_bar1)
        self.turn_bar2 = QtWidgets.QLabel(self.turn_bar)
        self.turn_bar2.setText("")
        self.turn_bar2.setObjectName("turn_bar2")
        self.verticalLayout_turn.addWidget(self.turn_bar2)
        self.turn_bar3 = QtWidgets.QLabel(self.turn_bar)
        self.turn_bar3.setText("")
        self.turn_bar3.setObjectName("turn_bar3")
        self.verticalLayout_turn.addWidget(self.turn_bar3)
        self.gridLayout_up.addWidget(self.turn_bar, 0, 5, 1, 1)

        self.turn_level = QtWidgets.QWidget(self.up)
        self.turn_level.setMaximumSize(QtCore.QSize(80, 35))
        self.turn_level.setObjectName("Turn_level")
        self.gridLayout_up.addWidget(self.turn_level, 1, 5, 1, 1)

        self.acc_bar = QtWidgets.QWidget(self.up)
        self.acc_bar.setMaximumSize(QtCore.QSize(80, 220))
        self.acc_bar.setObjectName("Acc_bar")
        self.verticalLayout_acc = QtWidgets.QVBoxLayout(self.acc_bar)
        self.verticalLayout_acc.setContentsMargins(15, 0, 15, 0)
        self.verticalLayout_acc.setSpacing(0)
        self.verticalLayout_acc.setObjectName("verticalLayout_acc")
        self.acc_bar1 = QtWidgets.QLabel(self.acc_bar)
        self.acc_bar1.setText("")
        self.acc_bar1.setObjectName("acc_bar1")
        self.verticalLayout_acc.addWidget(self.acc_bar1)
        self.acc_bar2 = QtWidgets.QLabel(self.acc_bar)
        self.acc_bar2.setText("")
        self.acc_bar2.setObjectName("acc_bar2")
        self.verticalLayout_acc.addWidget(self.acc_bar2)
        self.acc_bar3 = QtWidgets.QLabel(self.acc_bar)
        self.acc_bar3.setText("")
        self.acc_bar3.setObjectName("acc_bar3")
        self.verticalLayout_acc.addWidget(self.acc_bar3)
        self.gridLayout_up.addWidget(self.acc_bar, 0, 0, 1, 1)

        spacer1 = QtWidgets.QSpacerItem(15, 20, QtWidgets.QSizePolicy.Fixed,
                                        QtWidgets.QSizePolicy.Minimum)
        self.gridLayout_up.addItem(spacer1, 0, 2, 1, 1)
        pg.setConfigOption('background', '#FCFCFC')

        self.backCircle = PlotWidget(self.up)
        self.backCircle.setMinimumSize(QtCore.QSize(50, 50))
        self.backCircle.setMaximumSize(QtCore.QSize(300, 320))
        self.backCircle.setObjectName("backCircle")
        self.backCircle.getPlotItem().hideAxis('bottom')
        self.backCircle.getPlotItem().hideAxis('left')
        self.backCircleLayout = QtWidgets.QGridLayout(self.backCircle)
        self.backCircleLayout.setContentsMargins(60, 50, 60, 50)
        self.backCircleLayout.setObjectName("backCircleLayout")

        self.feedback = QtWidgets.QToolButton(self.backCircle)
        self.feedback.setEnabled(False)
        self.feedback.setMinimumSize(QtCore.QSize(50, 50))
        self.feedback.setMaximumSize(QtCore.QSize(320, 320))
        self.feedback.setFocusPolicy(QtCore.Qt.TabFocus)
        self.feedback.setText("")
        self.feedback.setObjectName("feedback")

        self.backCircleLayout.addWidget(self.feedback, 0, 0, 1, 1)
        self.gridLayout_up.addWidget(self.backCircle, 0, 3, 2, 1)
        self.brake_bar = QtWidgets.QWidget(self.up)
        self.brake_bar.setMaximumSize(QtCore.QSize(80, 220))
        self.brake_bar.setObjectName("Brake_bar")
        self.verticalLayout_brake = QtWidgets.QVBoxLayout(self.brake_bar)
        self.verticalLayout_brake.setContentsMargins(15, 0, 15, 0)
        self.verticalLayout_brake.setSpacing(0)
        self.verticalLayout_brake.setObjectName("verticalLayout_brake")
        self.brake_bar1 = QtWidgets.QLabel(self.brake_bar)
        self.brake_bar1.setText("")
        self.brake_bar1.setObjectName("brake_bar1")
        self.verticalLayout_brake.addWidget(self.brake_bar1)
        self.brake_bar2 = QtWidgets.QLabel(self.brake_bar)
        self.brake_bar2.setText("")
        self.brake_bar2.setObjectName("brake_bar2")
        self.verticalLayout_brake.addWidget(self.brake_bar2)
        self.brake_bar3 = QtWidgets.QLabel(self.brake_bar)
        self.brake_bar3.setText("")
        self.brake_bar3.setObjectName("brake_bar3")
        self.verticalLayout_brake.addWidget(self.brake_bar3)
        self.gridLayout_up.addWidget(self.brake_bar, 0, 1, 1, 1)

        self.Swerve_level = QtWidgets.QWidget(self.up)
        self.Swerve_level.setMaximumSize(QtCore.QSize(80, 35))
        self.Swerve_level.setObjectName("Swerve_level")

        self.gridLayout_up.addWidget(self.Swerve_level, 1, 6, 1, 1)
        self.Swerve_bar = QtWidgets.QWidget(self.up)
        self.Swerve_bar.setMaximumSize(QtCore.QSize(80, 220))
        self.Swerve_bar.setObjectName("Swerve_bar")
        self.verticalLayout_swerve = QtWidgets.QVBoxLayout(self.Swerve_bar)
        self.verticalLayout_swerve.setContentsMargins(15, 0, 15, 0)
        self.verticalLayout_swerve.setSpacing(0)
        self.verticalLayout_swerve.setObjectName("verticalLayout_swerve")
        self.swerve_bar1 = QtWidgets.QLabel(self.Swerve_bar)
        self.swerve_bar1.setText("")
        self.swerve_bar1.setObjectName("swerve_bar1")
        self.verticalLayout_swerve.addWidget(self.swerve_bar1)
        self.swerve_bar2 = QtWidgets.QLabel(self.Swerve_bar)
        self.swerve_bar2.setText("")
        self.swerve_bar2.setObjectName("swerve_bar2")
        self.verticalLayout_swerve.addWidget(self.swerve_bar2)
        self.swerve_bar3 = QtWidgets.QLabel(self.Swerve_bar)
        self.swerve_bar3.setText("")
        self.swerve_bar3.setObjectName("swerve_bar3")
        self.verticalLayout_swerve.addWidget(self.swerve_bar3)
        self.gridLayout_up.addWidget(self.Swerve_bar, 0, 6, 1, 1)

        self.acc_level = PlotWidget(self.up)
        self.acc_level.setMaximumSize(QtCore.QSize(80, 35))
        self.acc_level.setObjectName("Acc_level")
        self.acc_level.setFocusPolicy(QtCore.Qt.TabFocus)
        self.acc_level.getPlotItem().hideAxis('bottom')
        self.acc_level.getPlotItem().hideAxis('left')

        self.gridLayout_up.addWidget(self.acc_level, 1, 0, 1, 1)
        self.brake_level = QtWidgets.QWidget(self.up)
        self.brake_level.setMaximumSize(QtCore.QSize(80, 35))
        self.brake_level.setObjectName("Brake_level")
        self.gridLayout_up.addWidget(self.brake_level, 1, 1, 1, 1)
        spacer2 = QtWidgets.QSpacerItem(15, 20, QtWidgets.QSizePolicy.Fixed,
                                        QtWidgets.QSizePolicy.Minimum)
        self.gridLayout_up.addItem(spacer2, 0, 4, 1, 1)
        self.Menu.addWidget(self.up, 0, 0, 1, 1)
        self.verticalLayout.addLayout(self.Menu)
        MainWindow.setCentralWidget(self.centralwidget)
        self.menubar = QtWidgets.QMenuBar(MainWindow)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 750, 21))
        self.menubar.setObjectName("menubar")
        MainWindow.setMenuBar(self.menubar)
        self.statusbar = QtWidgets.QStatusBar(MainWindow)
        self.statusbar.setObjectName("statusbar")
        MainWindow.setStatusBar(self.statusbar)

        # these are three control buttons
        self.exit.setFixedSize(15, 15)
        self.visit.setFixedSize(15, 15)
        self.mini.setFixedSize(15, 15)
        self.exit.setStyleSheet(
            '''QPushButton{background:#F76677;border-radius:5px;}QPushButton:hover{background:red;}'''
        )
        self.next_page.setFixedSize(80, 20)
        # self.visit.setStyleSheet('''QPushButton{background:#F7D674;border-radius:5px;}QPushButton:hover{background:yellow;}''')
        # self.mini.setStyleSheet('''QPushButton{background:#6DDF6D;border-radius:5px;}QPushButton:hover{background:green;}''')

        # beautify window
        self.setWindowFlag(QtCore.Qt.FramelessWindowHint)  # hide the boarder
        self.setWindowOpacity(0.98)
        self.setAttribute(
            QtCore.Qt.WA_TranslucentBackground)  # set transparent window
        self.exit.clicked.connect(self.close)  # close window
        self.mini.clicked.connect(self.showMinimized)  # minimum window
        self.windowMoved.connect(self.move)  # move window

        self.acc_pic_coin = QtWidgets.QLabel(self.acc_level)
        self.acc_pic_coin.setMargin(5)
        self.acc_pic_coin.setPixmap(self._gold_coin)
        self.acc_pic_coin.setScaledContents(True)
        self.acc_pic_coin.setMaximumSize(QtCore.QSize(80, 31))

        self.brake_pic_coin = QtWidgets.QLabel(self.brake_level)
        self.brake_pic_coin.setMargin(5)
        self.brake_pic_coin.setPixmap(self._grey_coin)
        self.brake_pic_coin.setScaledContents(True)
        self.brake_pic_coin.setMaximumSize(QtCore.QSize(80, 31))

        self.turn_pic_coin = QtWidgets.QLabel(self.turn_level)
        self.turn_pic_coin.setMargin(5)
        self.turn_pic_coin.setPixmap(self._grey_coin)
        self.turn_pic_coin.setScaledContents(True)
        self.turn_pic_coin.setMaximumSize(QtCore.QSize(80, 31))

        self.swerve_pic_coin = QtWidgets.QLabel(self.Swerve_level)
        self.swerve_pic_coin.setMargin(5)
        self.swerve_pic_coin.setPixmap(self._gold_coin)
        self.swerve_pic_coin.setScaledContents(True)
        self.swerve_pic_coin.setMaximumSize(QtCore.QSize(80, 31))

        # # self.acc_bar_top = QtWidgets.QLabel(self.acc_bar1)
        # self.acc_bar1.setPixmap(self.acc_bar1)
        # self.acc_bar1.setScaledContents(True)
        # self.acc_bar1.setMaximumSize(QtCore.QSize(50, 67))
        #
        #
        # self.acc_bar2 = QtWidgets.QLabel(self.acc_bar2)
        # self.acc_bar2.setPixmap(self.acc_bar2)
        # self.acc_bar2.setScaledContents(True)
        # self.acc_bar2.setMaximumSize(QtCore.QSize(50, 67))
        #
        #
        # self.acc_bar3 = QtWidgets.QLabel(self.acc_bar3)
        # self.acc_bar3.setPixmap(self.acc_bar3)
        # self.acc_bar3.setScaledContents(True)
        # self.acc_bar3.setMaximumSize(QtCore.QSize(50, 67))

        # draw graph of lines--should be deleted later

        self.widget.setDownsampling(mode='peak')
        self.widget.setClipToView(True)
        self.widget.setXRange(0, 100)
        self.widget.setLimits(xMax=0)
        self.pen1 = self.widget.plot()
        self.pen1.setPen(pg.mkPen('y', width=3))
        self.data3 = np.empty(10)
        self.ptr3 = 0

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

    def mousePressEvent(self, event):
        if event.button() == QtCore.Qt.LeftButton:
            self.mPos = event.pos()
        event.accept()

    def mouseReleaseEvent(self, event):
        self.mPos = None
        event.accept()

    def mouseMoveEvent(self, event):
        if event.buttons() == QtCore.Qt.LeftButton and self.mPos:
            self.windowMoved.emit(self.mapToGlobal(event.pos() - self.mPos))
        event.accept()

    # set current score and update
    def setCurrentScore(self, score):
        self.current_score.setText(str(score))

    # set Total score for trip
    def setTotalScore(self, score):
        self.total_score.setText(str(score) + ' points')

    def setFeedBack(self, level: int, type: str):
        if level == 0:
            self.backCircle.clear()
            self.backCircle.addItem(self.green_glow)
        elif level == 1:
            self.backCircle.clear()
            self.backCircle.addItem(self.yellow_glow)
        elif level == 2:
            self.backCircle.clear()
            self.backCircle.addItem(self.orange_glow)

        if type == 'acc':
            self.feedback.setIcon(self.acc_icon)
            self.feedback.setIconSize(QtCore.QSize(150, 150))
        elif type == 'brake':
            self.feedback.setIcon(self.brake_icon)
            self.feedback.setIconSize(QtCore.QSize(150, 150))
        elif type == 'turn':
            self.feedback.setIcon(self.turn_icon)
            self.feedback.setIconSize(QtCore.QSize(150, 150))
        elif type == 'swerve':
            self.feedback.setIcon(self.swerve_icon)
            self.feedback.setIconSize(QtCore.QSize(150, 150))

    def change_icons(self, level: int, type: str):
        if type == 'acc':
            self.change_acc_icon(level)
        elif type == 'brake':
            self.change_brake_icon(level)
        elif type == 'turn':
            self.change_turn_icon(level)
        elif type == 'swerve':
            self.change_swerve_icon(level)

    def change_acc_icon(self, level: int):
        if level == 0:
            self.acc_pic_coin.setPixmap(self._coin_gold0)
        elif level == 1:
            self.acc_pic_coin.setPixmap(self._coin_gold1)
        elif level == 2:
            self.acc_pic_coin.setPixmap(self._coin_gold2)

    def change_brake_icon(self, level: int):
        if level == 0:
            self.brake_pic_coin.setPixmap(self._coin_gold0)
        elif level == 1:
            self.brake_pic_coin.setPixmap(self._coin_gold1)
        elif level == 2:
            self.brake_pic_coin.setPixmap(self._coin_gold2)

    def change_turn_icon(self, level: int):
        if level == 0:
            self.turn_pic_coin.setPixmap(self._coin_gold0)
        elif level == 1:
            self.turn_pic_coin.setPixmap(self._coin_gold1)
        elif level == 2:
            self.turn_pic_coin.setPixmap(self._coin_gold2)

    def change_swerve_icon(self, level: int):
        if level == 0:
            self.swerve_pic_coin.setPixmap(self._coin_gold0)
        elif level == 1:
            self.swerve_pic_coin.setPixmap(self._coin_gold1)
        elif level == 2:
            self.swerve_pic_coin.setPixmap(self._coin_gold2)

    def setBar(self, level: str, type: str):
        if type == 'acc':
            self.change_acc_bar(level)
        elif type == 'brake':
            self.change_brake_bar(level)
        elif type == 'turn':
            self.change_turn_bar(level)
        elif type == 'swerve':
            self.change_swerve_bar(level)

    def change_acc_bar(self, level):
        if level == 'safe':
            self.acc_bar1.setPixmap(self.grey_bar)
            self.acc_bar2.setPixmap(self.grey_bar)
            self.acc_bar3.setPixmap(self.bottom_bar)
        elif level == 'mediumrisk':
            self.acc_bar1.setPixmap(self.grey_bar)
            self.acc_bar2.setPixmap(self.medium_bar)
            self.acc_bar3.setPixmap(self.bottom_bar)
        elif level == 'highrisk':
            self.acc_bar1.setPixmap(self.top_bar)
            self.acc_bar2.setPixmap(self.medium_bar)
            self.acc_bar3.setPixmap(self.bottom_bar)
        self.acc_bar1.setScaledContents(True)
        self.acc_bar2.setScaledContents(True)
        self.acc_bar3.setScaledContents(True)
        self.acc_bar1.setMaximumSize(QtCore.QSize(50, 67))
        self.acc_bar2.setMaximumSize(QtCore.QSize(50, 67))
        self.acc_bar3.setMaximumSize(QtCore.QSize(50, 67))

    def change_turn_bar(self, level):
        if level == 'safe':
            self.turn_bar1.setPixmap(self.grey_bar)
            self.turn_bar2.setPixmap(self.grey_bar)
            self.turn_bar3.setPixmap(self.bottom_bar)
        elif level == 'mediumrisk':
            self.turn_bar1.setPixmap(self.grey_bar)
            self.turn_bar2.setPixmap(self.medium_bar)
            self.turn_bar3.setPixmap(self.bottom_bar)
        elif level == 'highrisk':
            self.turn_bar1.setPixmap(self.top_bar)
            self.turn_bar2.setPixmap(self.medium_bar)
            self.turn_bar3.setPixmap(self.bottom_bar)
        self.turn_bar1.setScaledContents(True)
        self.turn_bar2.setScaledContents(True)
        self.turn_bar3.setScaledContents(True)
        self.turn_bar1.setMaximumSize(QtCore.QSize(50, 67))
        self.turn_bar2.setMaximumSize(QtCore.QSize(50, 67))
        self.turn_bar3.setMaximumSize(QtCore.QSize(50, 67))

    def change_swerve_bar(self, level):
        if level == 'safe':
            self.swerve_bar1.setPixmap(self.grey_bar)
            self.swerve_bar2.setPixmap(self.grey_bar)
            self.swerve_bar3.setPixmap(self.bottom_bar)
        elif level == 'mediumrisk':
            self.swerve_bar1.setPixmap(self.grey_bar)
            self.swerve_bar2.setPixmap(self.medium_bar)
            self.swerve_bar3.setPixmap(self.bottom_bar)
        elif level == 'highrisk':
            self.swerve_bar1.setPixmap(self.top_bar)
            self.swerve_bar2.setPixmap(self.medium_bar)
            self.swerve_bar3.setPixmap(self.bottom_bar)
        self.swerve_bar1.setScaledContents(True)
        self.swerve_bar2.setScaledContents(True)
        self.swerve_bar3.setScaledContents(True)
        self.swerve_bar1.setMaximumSize(QtCore.QSize(50, 67))
        self.swerve_bar2.setMaximumSize(QtCore.QSize(50, 67))
        self.swerve_bar3.setMaximumSize(QtCore.QSize(50, 67))

    def change_brake_bar(
        self,
        level,
    ):
        if level == 'safe':
            self.brake_bar1.setPixmap(self.grey_bar)
            self.brake_bar2.setPixmap(self.grey_bar)
            self.brake_bar3.setPixmap(self.bottom_bar)
        elif level == 'mediumrisk':
            self.brake_bar1.setPixmap(self.grey_bar)
            self.brake_bar2.setPixmap(self.medium_bar)
            self.brake_bar3.setPixmap(self.bottom_bar)
        elif level == 'highrisk':
            self.brake_bar1.setPixmap(self.top_bar)
            self.brake_bar2.setPixmap(self.medium_bar)
            self.brake_bar3.setPixmap(self.bottom_bar)
        self.brake_bar1.setScaledContents(True)
        self.brake_bar2.setScaledContents(True)
        self.brake_bar3.setScaledContents(True)
        self.brake_bar1.setMaximumSize(QtCore.QSize(50, 67))
        self.brake_bar2.setMaximumSize(QtCore.QSize(50, 67))
        self.brake_bar3.setMaximumSize(QtCore.QSize(50, 67))

    def retranslateUi(self, MainWindow):
        _translate = QtCore.QCoreApplication.translate
        MainWindow.setWindowTitle(_translate("MainWindow", "MainWindow"))
        self.current_score.setText(_translate("MainWindow", "86"))
        self.total_score.setText(_translate("MainWindow", "1240 points"))
        self.next_page.setText(_translate("MainWindow", "Next Page>>"))
Пример #14
0
class Ui_Dialog(object):
    def setupUi(self, Dialog):
        Dialog.setObjectName("Dialog")
        Dialog.resize(689, 176)
        self.gridLayout = QtWidgets.QGridLayout(Dialog)
        self.gridLayout.setObjectName("gridLayout")
        self.stateButton = QtWidgets.QPushButton(Dialog)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.stateButton.sizePolicy().hasHeightForWidth())
        self.stateButton.setSizePolicy(sizePolicy)
        self.stateButton.setLayoutDirection(QtCore.Qt.LeftToRight)
        self.stateButton.setAutoDefault(False)
        self.stateButton.setObjectName("stateButton")
        self.gridLayout.addWidget(self.stateButton, 3, 5, 3, 1)
        self.lcdNumber = QtWidgets.QLCDNumber(Dialog)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.lcdNumber.sizePolicy().hasHeightForWidth())
        self.lcdNumber.setSizePolicy(sizePolicy)
        self.lcdNumber.setInputMethodHints(QtCore.Qt.ImhNone)
        self.lcdNumber.setSmallDecimalPoint(False)
        self.lcdNumber.setDigitCount(3)
        self.lcdNumber.setProperty("value", 0.0)
        self.lcdNumber.setProperty("intValue", 0)
        self.lcdNumber.setObjectName("lcdNumber")
        self.gridLayout.addWidget(self.lcdNumber, 1, 1, 1, 1)
        self.graphicsView = PlotWidget(Dialog)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.graphicsView.sizePolicy().hasHeightForWidth())
        self.graphicsView.setSizePolicy(sizePolicy)
        self.graphicsView.setMaximumSize(QtCore.QSize(16777215, 73))
        self.graphicsView.setAutoFillBackground(True)
        self.graphicsView.setInputMethodHints(QtCore.Qt.ImhNone)
        self.graphicsView.setFrameShape(QtWidgets.QFrame.NoFrame)
        self.graphicsView.setFrameShadow(QtWidgets.QFrame.Plain)
        self.graphicsView.setInteractive(False)
        self.graphicsView.setObjectName("graphicsView")
        self.gridLayout.addWidget(self.graphicsView, 1, 2, 1, 3)
        self.horizontalSlider = QtWidgets.QSlider(Dialog)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.horizontalSlider.sizePolicy().hasHeightForWidth())
        self.horizontalSlider.setSizePolicy(sizePolicy)
        self.horizontalSlider.setPageStep(15)
        self.horizontalSlider.setOrientation(QtCore.Qt.Horizontal)
        self.horizontalSlider.setObjectName("horizontalSlider")
        self.gridLayout.addWidget(self.horizontalSlider, 0, 2, 1, 3)
        self.tableWidget = QtWidgets.QTableWidget(Dialog)
        self.tableWidget.setMinimumSize(QtCore.QSize(203, 0))
        self.tableWidget.setMaximumSize(QtCore.QSize(16777215, 71))
        self.tableWidget.setRowCount(1)
        self.tableWidget.setColumnCount(2)
        self.tableWidget.setObjectName("tableWidget")
        item = QtWidgets.QTableWidgetItem()
        self.tableWidget.setHorizontalHeaderItem(0, item)
        item = QtWidgets.QTableWidgetItem()
        self.tableWidget.setHorizontalHeaderItem(1, item)
        self.tableWidget.horizontalHeader().setVisible(True)
        self.tableWidget.horizontalHeader().setDefaultSectionSize(100)
        self.tableWidget.horizontalHeader().setHighlightSections(False)
        self.tableWidget.horizontalHeader().setMinimumSectionSize(60)
        self.tableWidget.verticalHeader().setVisible(False)
        self.tableWidget.verticalHeader().setDefaultSectionSize(20)
        self.tableWidget.verticalHeader().setHighlightSections(False)
        self.tableWidget.verticalHeader().setMinimumSectionSize(20)
        self.gridLayout.addWidget(self.tableWidget, 1, 5, 1, 1)
        self.label_2 = QtWidgets.QLabel(Dialog)
        self.label_2.setObjectName("label_2")
        self.gridLayout.addWidget(self.label_2, 3, 2, 1, 1)
        self.lineEdit = QtWidgets.QLineEdit(Dialog)
        self.lineEdit.setObjectName("lineEdit")
        self.gridLayout.addWidget(self.lineEdit, 3, 4, 1, 1)
        self.lineEditMouse = QtWidgets.QLineEdit(Dialog)
        self.lineEditMouse.setObjectName("lineEditMouse")
        self.gridLayout.addWidget(self.lineEditMouse, 3, 3, 1, 1)
        self.loadButton = QtWidgets.QPushButton(Dialog)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.loadButton.sizePolicy().hasHeightForWidth())
        self.loadButton.setSizePolicy(sizePolicy)
        self.loadButton.setAutoDefault(False)
        self.loadButton.setDefault(False)
        self.loadButton.setObjectName("loadButton")
        self.gridLayout.addWidget(self.loadButton, 3, 1, 1, 1)
        self.saveButton = QtWidgets.QPushButton(Dialog)
        self.saveButton.setDefault(True)
        self.saveButton.setObjectName("saveButton")
        self.gridLayout.addWidget(self.saveButton, 5, 3, 1, 1)
        self.startExperBut = QtWidgets.QPushButton(Dialog)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.startExperBut.sizePolicy().hasHeightForWidth())
        self.startExperBut.setSizePolicy(sizePolicy)
        self.startExperBut.setAutoDefault(False)
        self.startExperBut.setObjectName("startExperBut")
        self.gridLayout.addWidget(self.startExperBut, 5, 1, 1, 1)
        self.timeButton = QtWidgets.QPushButton(Dialog)
        self.timeButton.setObjectName("timeButton")
        self.gridLayout.addWidget(self.timeButton, 5, 4, 1, 1)
        self.stateLabel = QtWidgets.QLabel(Dialog)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.stateLabel.sizePolicy().hasHeightForWidth())
        self.stateLabel.setSizePolicy(sizePolicy)
        self.stateLabel.setText("")
        self.stateLabel.setScaledContents(True)
        self.stateLabel.setAlignment(QtCore.Qt.AlignCenter)
        self.stateLabel.setObjectName("stateLabel")
        self.gridLayout.addWidget(self.stateLabel, 0, 5, 1, 1)
        self.pauseButton = QtWidgets.QPushButton(Dialog)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.pauseButton.sizePolicy().hasHeightForWidth())
        self.pauseButton.setSizePolicy(sizePolicy)
        self.pauseButton.setMaximumSize(QtCore.QSize(16777215, 23))
        self.pauseButton.setAutoDefault(False)
        self.pauseButton.setObjectName("pauseButton")
        self.gridLayout.addWidget(self.pauseButton, 0, 1, 1, 1)

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

    def retranslateUi(self, Dialog):
        _translate = QtCore.QCoreApplication.translate
        Dialog.setWindowTitle(_translate("Dialog", "Dialog"))
        self.stateButton.setText(_translate("Dialog", "Imobile/Mobile (HotKey \'M\')"))
        self.stateButton.setShortcut(_translate("Dialog", "M", "m"))
        item = self.tableWidget.horizontalHeaderItem(0)
        item.setText(_translate("Dialog", "Latency"))
        item = self.tableWidget.horizontalHeaderItem(1)
        item.setText(_translate("Dialog", "Time Immobile"))
        self.label_2.setText(_translate("Dialog", "Mouse ID"))
        self.lineEdit.setToolTip(_translate("Dialog", "Enter custom experiemtn length"))
        self.loadButton.setText(_translate("Dialog", "Load Video"))
        self.saveButton.setText(_translate("Dialog", "Save to Excel"))
        self.saveButton.setShortcut(_translate("Dialog", "Return"))
        self.startExperBut.setText(_translate("Dialog", "Start Experiment"))
        self.startExperBut.setShortcut(_translate("Dialog", "S"))
        self.timeButton.setText(_translate("Dialog", "Custom Time"))
        self.stateLabel.setProperty("mobilityState", _translate("Dialog", "Mobile"))
        self.pauseButton.setText(_translate("Dialog", "Pause/Play"))
        self.pauseButton.setShortcut(_translate("Dialog", "Space"))
class Ui_MainWindow(object):
    def add_10_Graphiques(self):
        """Ajoute n checkboxes pour plus tard activer désactiver les graphiques"""
        self.checkBoxesD = []
        print("k =")
        print(self.nombre_clusters)
        for i in range(self.nombre_clusters):
            self.checkBoxesD.append(QtWidgets.QCheckBox(self.centralWidget))
            self.checkBoxesD[i].setObjectName("checkBox_" + str(i + 1))
            if (i % 4 == 0):
                self.subVerticalLayout.addWidget(self.checkBoxesD[i])
            elif (i % 4 == 1):
                self.subVerticalLayout2.addWidget(self.checkBoxesD[i])
            elif (i % 4 == 2):
                self.subVerticalLayout3.addWidget(self.checkBoxesD[i])
            else:
                self.subVerticalLayout4.addWidget(self.checkBoxesD[i])
            self.checkBoxesD[i].setChecked(True)

    def setupUi(self, MainWindow, Parametres, gamma_reduit):
        self.gamma_reduit = gamma_reduit
        self.nombre_clusters = len(gamma_reduit)
        if Parametres.riskless_autorise:
            self.nomsActions = Parametres.nomsActions + ["Actif sans risque"]
        else:
            self.nomsActions = Parametres.nomsActions

        # Nombre d'assets

        self.nbActions = len(self.nomsActions)

        # Coefficient multiplicatif reliant alpha et 1/lambda
        #        uns = np.ones(self.nbActions)
        #        self.coeff_de_prop = np.dot(uns,np.dot(np.linalg.inv(self.Sigma),self.Mu)) # Coefficient de proportionalité entre gamma et 1/alpha

        MainWindow.setObjectName("Théorie du Portefeuille de Markovitz")
        MainWindow.showMaximized()
        self.centralWidget = QtWidgets.QWidget(MainWindow)
        self.centralWidget.setObjectName("centralWidget")

        #        # On crée une VBox à gauche
        #        self.VBoxGWidget = QtWidgets.QWidget(self.centralWidget)
        #        self.VBoxGWidget.setGeometry(QtCore.QRect(30, 10, 600, 600))
        #        self.VBoxGWidget.setObjectName("VBoxGWidget")
        #        self.VBoxG = QtWidgets.QVBoxLayout(self.VBoxGWidget)
        #        self.VBoxG.setContentsMargins(11, 11, 11, 11)
        #        self.VBoxG.setSpacing(3)
        #        self.VBoxG.setObjectName("VBoxG")

        self.gamma = Parametres.aversion_au_risque

        # On ajoute les champs des actions à la VBox, un bouton "Valider" et un bouton "Retour"

        #        #On ajoute un bouton d'export de la courbe
        #        self.exporterBouton = QtWidgets.QPushButton(self.centralWidget)
        #        self.exporterBouton.setGeometry(QtCore.QRect(130, 800, 150, 70))
        #        self.exporterBouton.setObjectName("exporterBouton")
        #        self.exporterBouton.raise_()
        #        self.grid =QtWidgets.QGridLayout(self.centralWidget)
        #
        #        self.retourBouton = QtWidgets.QPushButton(self.centralWidget)
        #        self.retourBouton.setMinimumSize(QtCore.QSize(120, 30))
        #        self.retourBouton.setMaximumSize(QtCore.QSize(120, 30))
        #        self.retourBouton.setObjectName("retourBouton")
        #        self.grid.addWidget(self.retourBouton,2,0)

        #        self.classementBouton = QtWidgets.QPushButton(self.centralWidget)
        #        self.classementBouton.setMinimumSize(QtCore.QSize(120, 30))
        #        self.classementBouton.setMaximumSize(QtCore.QSize(120, 30))
        #        self.classementBouton.setObjectName("classementBouton")
        #        self.grid.addWidget(self.classementBouton,3,0)
        #
        #        self.suivantBouton = QtWidgets.QPushButton(self.centralWidget)
        #        self.suivantBouton.setMinimumSize(QtCore.QSize(160, 30))
        #        self.suivantBouton.setMaximumSize(QtCore.QSize(160, 30))
        #        self.suivantBouton.setObjectName("suivantBouton")
        #        self.grid.addWidget(self.suivantBouton,5,0)

        #        self.rafraichirBouton = QtWidgets.QPushButton(self.centralWidget)
        #        self.rafraichirBouton.setMinimumSize(QtCore.QSize(120, 30))
        #        self.rafraichirBouton.setMaximumSize(QtCore.QSize(120, 30))
        #        self.rafraichirBouton.setObjectName("rafraichirBouton")
        #        self.grid.addWidget(self.rafraichirBouton,8,0)

        # DEBUT
        self.horizontalLayoutWidget = QtWidgets.QWidget(self.centralWidget)
        self.horizontalLayoutWidget.setGeometry(QtCore.QRect(
            10, 40, 1800, 900))
        self.horizontalLayoutWidget.setObjectName("horizontalLayoutWidget")
        self.horizontalLayout = QtWidgets.QHBoxLayout(
            self.horizontalLayoutWidget)
        self.horizontalLayout.setContentsMargins(50, 11, 11, 11)
        self.horizontalLayout.setSpacing(50)
        self.horizontalLayout.setObjectName("horizontalLayout")

        self.verticalLayout = QtWidgets.QVBoxLayout()
        self.verticalLayout.setSizeConstraint(
            QtWidgets.QLayout.SetDefaultConstraint)
        self.verticalLayout.setContentsMargins(50, -1, -1, -1)
        self.verticalLayout.setSpacing(20)
        self.verticalLayout.setObjectName("verticalLayout")
        self.verticalLayout.setAlignment(QtCore.Qt.AlignTop)

        self.graphicsView_n_graphiques = PlotWidget(self.centralWidget)
        self.graphicsView_n_graphiques.setMinimumSize(QtCore.QSize(800, 680))
        self.graphicsView_n_graphiques.setMaximumSize(QtCore.QSize(800, 680))
        self.graphicsView_n_graphiques.setObjectName(
            "graphicsView_n_graphiques")
        self.graphicsView_n_graphiques.showGrid(True, True)
        self.verticalLayout.addWidget(self.graphicsView_n_graphiques)

        self.retourBouton = QtWidgets.QPushButton(self.horizontalLayoutWidget)
        self.retourBouton.setMinimumSize(QtCore.QSize(120, 30))
        self.retourBouton.setMaximumSize(QtCore.QSize(120, 30))
        self.retourBouton.setObjectName("retourBouton")
        self.verticalLayout.addWidget(self.retourBouton)

        self.classementBouton = QtWidgets.QPushButton(self.centralWidget)
        self.classementBouton.setMinimumSize(QtCore.QSize(120, 30))
        self.classementBouton.setMaximumSize(QtCore.QSize(120, 30))
        self.classementBouton.setObjectName("classementBouton")
        self.verticalLayout.addWidget(self.classementBouton)

        self.suivantBouton = QtWidgets.QPushButton(self.centralWidget)
        self.suivantBouton.setMinimumSize(QtCore.QSize(160, 30))
        self.suivantBouton.setMaximumSize(QtCore.QSize(160, 30))
        self.suivantBouton.setObjectName("suivantBouton")
        self.verticalLayout.addWidget(self.suivantBouton)

        self.rafraichirBouton = QtWidgets.QPushButton(self.centralWidget)
        self.rafraichirBouton.setMinimumSize(QtCore.QSize(120, 30))
        self.rafraichirBouton.setMaximumSize(QtCore.QSize(120, 30))
        self.rafraichirBouton.setObjectName("rafraichirBouton")
        self.verticalLayout.addWidget(self.rafraichirBouton)

        self.verticalLayout2 = QtWidgets.QVBoxLayout()
        self.verticalLayout2.setSizeConstraint(
            QtWidgets.QLayout.SetDefaultConstraint)
        self.verticalLayout2.setContentsMargins(50, -1, -1, -1)
        self.verticalLayout2.setSpacing(20)
        self.verticalLayout2.setObjectName("verticalLayout2")
        self.verticalLayout2.setAlignment(QtCore.Qt.AlignTop)

        self.graphicsView_frontiere = PlotWidget(self.centralWidget)
        self.graphicsView_frontiere.setMinimumSize(QtCore.QSize(800, 680))
        self.graphicsView_frontiere.setMaximumSize(QtCore.QSize(800, 680))
        self.graphicsView_frontiere.setObjectName("graphicsView_frontiere")
        self.verticalLayout2.addWidget(self.graphicsView_frontiere)

        self.subHorizontalLayout = QtWidgets.QHBoxLayout()
        self.subHorizontalLayout.setContentsMargins(50, 11, 11, 11)
        self.subHorizontalLayout.setSpacing(50)
        self.subHorizontalLayout.setObjectName("subHorizontalLayout")

        self.subVerticalLayout0 = QtWidgets.QVBoxLayout()
        self.subVerticalLayout0.setSizeConstraint(
            QtWidgets.QLayout.SetDefaultConstraint)
        self.subVerticalLayout0.setContentsMargins(50, -1, -1, -1)
        self.subVerticalLayout0.setSpacing(20)
        self.subVerticalLayout0.setObjectName("subVerticalLayout")
        self.subVerticalLayout0.setAlignment(QtCore.Qt.AlignTop)

        self.objectifs = QtWidgets.QCheckBox(self.centralWidget)
        self.objectifs.setObjectName("objectifs")
        self.subVerticalLayout0.addWidget(self.objectifs)
        self.objectifs.setChecked(True)
        self.hideCourbes = QtWidgets.QPushButton(self.centralWidget)
        self.hideCourbes.setObjectName("hideCourbes")
        self.hideCourbes.setMinimumSize(QtCore.QSize(120, 60))
        self.hideCourbes.setMaximumSize(QtCore.QSize(120, 60))
        self.subVerticalLayout0.addWidget(self.hideCourbes)

        self.subVerticalLayout = QtWidgets.QVBoxLayout()
        self.subVerticalLayout.setSizeConstraint(
            QtWidgets.QLayout.SetDefaultConstraint)
        self.subVerticalLayout.setContentsMargins(50, -1, -1, -1)
        self.subVerticalLayout.setSpacing(20)
        self.subVerticalLayout.setObjectName("subVerticalLayout")
        self.subVerticalLayout.setAlignment(QtCore.Qt.AlignTop)

        self.subVerticalLayout2 = QtWidgets.QVBoxLayout()
        self.subVerticalLayout2.setSizeConstraint(
            QtWidgets.QLayout.SetDefaultConstraint)
        self.subVerticalLayout2.setContentsMargins(50, -1, -1, -1)
        self.subVerticalLayout2.setSpacing(20)
        self.subVerticalLayout2.setObjectName("subVerticalLayout2")
        self.subVerticalLayout2.setAlignment(QtCore.Qt.AlignTop)

        self.subVerticalLayout3 = QtWidgets.QVBoxLayout()
        self.subVerticalLayout3.setSizeConstraint(
            QtWidgets.QLayout.SetDefaultConstraint)
        self.subVerticalLayout3.setContentsMargins(50, -1, -1, -1)
        self.subVerticalLayout3.setSpacing(20)
        self.subVerticalLayout3.setObjectName("subVerticalLayout3")
        self.subVerticalLayout3.setAlignment(QtCore.Qt.AlignTop)

        self.subVerticalLayout4 = QtWidgets.QVBoxLayout()
        self.subVerticalLayout4.setSizeConstraint(
            QtWidgets.QLayout.SetDefaultConstraint)
        self.subVerticalLayout4.setContentsMargins(50, -1, -1, -1)
        self.subVerticalLayout4.setSpacing(20)
        self.subVerticalLayout4.setObjectName("subVerticalLayout4")
        self.subVerticalLayout4.setAlignment(QtCore.Qt.AlignTop)

        self.add_10_Graphiques()

        self.subHorizontalLayout.addLayout(self.subVerticalLayout0)
        self.subHorizontalLayout.addLayout(self.subVerticalLayout)
        self.subHorizontalLayout.addLayout(self.subVerticalLayout2)
        self.subHorizontalLayout.addLayout(self.subVerticalLayout3)
        self.subHorizontalLayout.addLayout(self.subVerticalLayout4)

        self.verticalLayout2.addLayout(self.subHorizontalLayout)

        self.horizontalLayout.addLayout(self.verticalLayout)
        self.horizontalLayout.addLayout(self.verticalLayout2)
        # FIN
        #        self.VBoxGWidget.raise_()

        # On rajoute les n graphiques des actifs
        #        self.horizontalLayoutWidget = QtWidgets.QWidget(self.centralWidget)
        #        self.horizontalLayoutWidget.setGeometry(QtCore.QRect(0, 50, 400, 700))
        #        self.horizontalLayoutWidget.setObjectName("horizontalLayoutWidget")
        #        self.horizontalLayout = QtWidgets.QHBoxLayout(self.horizontalLayoutWidget)
        #        self.horizontalLayout.setContentsMargins(11, 11, 11, 11)
        #        self.horizontalLayout.setSpacing(40)
        #        self.horizontalLayout.setObjectName("horizontalLayout")
        #        self.verticalLayout = QtWidgets.QVBoxLayout()
        #        self.verticalLayout.setSpacing(6)
        #        self.verticalLayout.setObjectName("verticalLayout")

        # On rajoute le repère sur lequel on va représenter les courbes des n actifs
        #        self.horizontalLayout.addLayout(self.verticalLayout)

        # On nouveau layout pour les courbes:

        # On fait de même avec le repère où l'on va tracer la frontière de Markovitz

        MainWindow.setCentralWidget(self.centralWidget)
        self.menuBar = QtWidgets.QMenuBar(MainWindow)
        self.menuBar.setGeometry(QtCore.QRect(0, 0, 1212, 26))
        self.menuBar.setObjectName("menuBar")
        MainWindow.setMenuBar(self.menuBar)
        self.mainToolBar = QtWidgets.QToolBar(MainWindow)
        self.mainToolBar.setObjectName("mainToolBar")
        MainWindow.addToolBar(QtCore.Qt.TopToolBarArea, self.mainToolBar)
        self.statusBar = QtWidgets.QStatusBar(MainWindow)
        self.statusBar.setObjectName("statusBar")
        MainWindow.setStatusBar(self.statusBar)

        self.retranslateUi(MainWindow, Parametres.VAD_autorisee,
                           Parametres.exemple)
        QtCore.QMetaObject.connectSlotsByName(MainWindow)

    def retranslateUi(self, MainWindow, VAD_autorisee, retourBoutonUp):
        _translate = QtCore.QCoreApplication.translate
        MainWindow.setWindowTitle(
            _translate("MainWindow", "Théorie du Portefeuille de Markovitz"))

        self.retourBouton.setText(_translate("MainWindow", "Retour"))
        self.suivantBouton.setText(
            _translate("MainWindow", "Expérience suivante"))
        self.rafraichirBouton.setText(_translate("MainWindow", "Rafraichir"))
        self.classementBouton.setText(_translate("MainWindow", "Classement"))
        #        self.exporterBouton.setText(_translate("MainWindow", "Exporter la courbe\n en CSV"))
        for i in range(self.nombre_clusters):
            self.checkBoxesD[i].setText(
                _translate("MainWindow", str(self.gamma_reduit[i])))
        self.objectifs.setText(_translate("MainWindow", "Droites"))
        self.hideCourbes.setText(
            _translate("MainWindow", "Cacher/montrer \ntoutes les courbes"))
Пример #16
0
class Ui_lasagna_mainWindow(object):
    def setupUi(self, lasagna_mainWindow):
        lasagna_mainWindow.setObjectName(_fromUtf8("lasagna_mainWindow"))
        lasagna_mainWindow.resize(1002, 795)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(lasagna_mainWindow.sizePolicy().hasHeightForWidth())
        lasagna_mainWindow.setSizePolicy(sizePolicy)
        lasagna_mainWindow.setMinimumSize(QtCore.QSize(540, 540))
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap(_fromUtf8(":/icons/icons/lasagna_32.png")), QtGui.QIcon.Normal, QtGui.QIcon.On)
        lasagna_mainWindow.setWindowIcon(icon)
        self.centralwidget = QtGui.QWidget(lasagna_mainWindow)
        self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
        self.gridLayout = QtGui.QGridLayout(self.centralwidget)
        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
        self.splitter_3 = QtGui.QSplitter(self.centralwidget)
        self.splitter_3.setOrientation(QtCore.Qt.Vertical)
        self.splitter_3.setObjectName(_fromUtf8("splitter_3"))
        self.splitter = QtGui.QSplitter(self.splitter_3)
        self.splitter.setOrientation(QtCore.Qt.Horizontal)
        self.splitter.setObjectName(_fromUtf8("splitter"))
        self.graphicsView_1 = LasagnaPlotWidget(self.splitter)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Ignored, QtGui.QSizePolicy.Ignored)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.graphicsView_1.sizePolicy().hasHeightForWidth())
        self.graphicsView_1.setSizePolicy(sizePolicy)
        self.graphicsView_1.setObjectName(_fromUtf8("graphicsView_1"))
        self.graphicsView_2 = LasagnaPlotWidget(self.splitter)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Ignored, QtGui.QSizePolicy.Ignored)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.graphicsView_2.sizePolicy().hasHeightForWidth())
        self.graphicsView_2.setSizePolicy(sizePolicy)
        self.graphicsView_2.setObjectName(_fromUtf8("graphicsView_2"))
        self.splitter_2 = QtGui.QSplitter(self.splitter_3)
        self.splitter_2.setOrientation(QtCore.Qt.Horizontal)
        self.splitter_2.setObjectName(_fromUtf8("splitter_2"))
        self.graphicsView_3 = LasagnaPlotWidget(self.splitter_2)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Ignored, QtGui.QSizePolicy.Ignored)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.graphicsView_3.sizePolicy().hasHeightForWidth())
        self.graphicsView_3.setSizePolicy(sizePolicy)
        self.graphicsView_3.setObjectName(_fromUtf8("graphicsView_3"))
        self.frame_2 = QtGui.QFrame(self.splitter_2)
        self.frame_2.setFrameShape(QtGui.QFrame.StyledPanel)
        self.frame_2.setFrameShadow(QtGui.QFrame.Raised)
        self.frame_2.setObjectName(_fromUtf8("frame_2"))
        self.gridLayout.addWidget(self.splitter_3, 0, 0, 1, 1)
        lasagna_mainWindow.setCentralWidget(self.centralwidget)
        self.menuBar = QtGui.QMenuBar(lasagna_mainWindow)
        self.menuBar.setGeometry(QtCore.QRect(0, 0, 1002, 27))
        self.menuBar.setObjectName(_fromUtf8("menuBar"))
        self.menuFile = QtGui.QMenu(self.menuBar)
        self.menuFile.setObjectName(_fromUtf8("menuFile"))
        self.menuOpen_recent = QtGui.QMenu(self.menuFile)
        self.menuOpen_recent.setObjectName(_fromUtf8("menuOpen_recent"))
        self.menuLoad_ingredient = QtGui.QMenu(self.menuFile)
        self.menuLoad_ingredient.setObjectName(_fromUtf8("menuLoad_ingredient"))
        self.menuHelp = QtGui.QMenu(self.menuBar)
        self.menuHelp.setObjectName(_fromUtf8("menuHelp"))
        self.menuPlugins = QtGui.QMenu(self.menuBar)
        self.menuPlugins.setObjectName(_fromUtf8("menuPlugins"))
        lasagna_mainWindow.setMenuBar(self.menuBar)
        self.mainDockWidget = QtGui.QDockWidget(lasagna_mainWindow)
        self.mainDockWidget.setMinimumSize(QtCore.QSize(331, 587))
        self.mainDockWidget.setFeatures(QtGui.QDockWidget.DockWidgetFloatable|QtGui.QDockWidget.DockWidgetMovable)
        self.mainDockWidget.setObjectName(_fromUtf8("mainDockWidget"))
        self.dockWidgetContents = QtGui.QWidget()
        self.dockWidgetContents.setObjectName(_fromUtf8("dockWidgetContents"))
        self.verticalLayout_2 = QtGui.QVBoxLayout(self.dockWidgetContents)
        self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2"))
        self.tabWidget = QtGui.QTabWidget(self.dockWidgetContents)
        self.tabWidget.setObjectName(_fromUtf8("tabWidget"))
        self.imageSettingsTab = QtGui.QWidget()
        self.imageSettingsTab.setObjectName(_fromUtf8("imageSettingsTab"))
        self.verticalLayout_3 = QtGui.QVBoxLayout(self.imageSettingsTab)
        self.verticalLayout_3.setObjectName(_fromUtf8("verticalLayout_3"))
        self.intensityHistogram = PlotWidget(self.imageSettingsTab)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.intensityHistogram.sizePolicy().hasHeightForWidth())
        self.intensityHistogram.setSizePolicy(sizePolicy)
        self.intensityHistogram.setMinimumSize(QtCore.QSize(0, 180))
        self.intensityHistogram.setMaximumSize(QtCore.QSize(16777215, 180))
        self.intensityHistogram.setObjectName(_fromUtf8("intensityHistogram"))
        self.verticalLayout_3.addWidget(self.intensityHistogram)
        self.horizontalLayout_13 = QtGui.QHBoxLayout()
        self.horizontalLayout_13.setObjectName(_fromUtf8("horizontalLayout_13"))
        self.logYcheckBox = QtGui.QCheckBox(self.imageSettingsTab)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.logYcheckBox.sizePolicy().hasHeightForWidth())
        self.logYcheckBox.setSizePolicy(sizePolicy)
        self.logYcheckBox.setMaximumSize(QtCore.QSize(16777215, 21))
        self.logYcheckBox.setChecked(True)
        self.logYcheckBox.setObjectName(_fromUtf8("logYcheckBox"))
        self.horizontalLayout_13.addWidget(self.logYcheckBox)
        self.imageAlpha_horizontalSlider = QtGui.QSlider(self.imageSettingsTab)
        self.imageAlpha_horizontalSlider.setMinimumSize(QtCore.QSize(221, 0))
        self.imageAlpha_horizontalSlider.setMaximum(100)
        self.imageAlpha_horizontalSlider.setProperty("value", 100)
        self.imageAlpha_horizontalSlider.setOrientation(QtCore.Qt.Horizontal)
        self.imageAlpha_horizontalSlider.setInvertedAppearance(False)
        self.imageAlpha_horizontalSlider.setInvertedControls(False)
        self.imageAlpha_horizontalSlider.setObjectName(_fromUtf8("imageAlpha_horizontalSlider"))
        self.horizontalLayout_13.addWidget(self.imageAlpha_horizontalSlider)
        self.verticalLayout_3.addLayout(self.horizontalLayout_13)
        self.imageStackLayers_TreeView = QtGui.QTreeView(self.imageSettingsTab)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.imageStackLayers_TreeView.sizePolicy().hasHeightForWidth())
        self.imageStackLayers_TreeView.setSizePolicy(sizePolicy)
        self.imageStackLayers_TreeView.setMinimumSize(QtCore.QSize(0, 271))
        self.imageStackLayers_TreeView.setRootIsDecorated(False)
        self.imageStackLayers_TreeView.setObjectName(_fromUtf8("imageStackLayers_TreeView"))
        self.verticalLayout_3.addWidget(self.imageStackLayers_TreeView)
        spacerItem = QtGui.QSpacerItem(20, 162, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
        self.verticalLayout_3.addItem(spacerItem)
        self.tabWidget.addTab(self.imageSettingsTab, _fromUtf8(""))
        self.pointsSettingsTab = QtGui.QWidget()
        self.pointsSettingsTab.setObjectName(_fromUtf8("pointsSettingsTab"))
        self.verticalLayout_5 = QtGui.QVBoxLayout(self.pointsSettingsTab)
        self.verticalLayout_5.setObjectName(_fromUtf8("verticalLayout_5"))
        self.points_TreeView = QtGui.QTreeView(self.pointsSettingsTab)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.points_TreeView.sizePolicy().hasHeightForWidth())
        self.points_TreeView.setSizePolicy(sizePolicy)
        self.points_TreeView.setMinimumSize(QtCore.QSize(0, 281))
        self.points_TreeView.setMaximumSize(QtCore.QSize(16777215, 330))
        self.points_TreeView.setObjectName(_fromUtf8("points_TreeView"))
        self.verticalLayout_5.addWidget(self.points_TreeView)
        self.horizontalLayout_10 = QtGui.QHBoxLayout()
        self.horizontalLayout_10.setObjectName(_fromUtf8("horizontalLayout_10"))
        self.groupBoxAxisRatio_2 = QtGui.QGroupBox(self.pointsSettingsTab)
        self.groupBoxAxisRatio_2.setEnabled(True)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.groupBoxAxisRatio_2.sizePolicy().hasHeightForWidth())
        self.groupBoxAxisRatio_2.setSizePolicy(sizePolicy)
        self.groupBoxAxisRatio_2.setMinimumSize(QtCore.QSize(131, 131))
        self.groupBoxAxisRatio_2.setMaximumSize(QtCore.QSize(131, 16777215))
        self.groupBoxAxisRatio_2.setObjectName(_fromUtf8("groupBoxAxisRatio_2"))
        self.layoutWidget = QtGui.QWidget(self.groupBoxAxisRatio_2)
        self.layoutWidget.setGeometry(QtCore.QRect(11, 30, 106, 29))
        self.layoutWidget.setObjectName(_fromUtf8("layoutWidget"))
        self.horizontalLayout_5 = QtGui.QHBoxLayout(self.layoutWidget)
        self.horizontalLayout_5.setMargin(0)
        self.horizontalLayout_5.setObjectName(_fromUtf8("horizontalLayout_5"))
        self.axisRatioLabel_4 = QtGui.QLabel(self.layoutWidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.axisRatioLabel_4.sizePolicy().hasHeightForWidth())
        self.axisRatioLabel_4.setSizePolicy(sizePolicy)
        self.axisRatioLabel_4.setMinimumSize(QtCore.QSize(45, 16))
        self.axisRatioLabel_4.setMaximumSize(QtCore.QSize(45, 16))
        self.axisRatioLabel_4.setLayoutDirection(QtCore.Qt.LeftToRight)
        self.axisRatioLabel_4.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.axisRatioLabel_4.setObjectName(_fromUtf8("axisRatioLabel_4"))
        self.horizontalLayout_5.addWidget(self.axisRatioLabel_4)
        self.view1Z_spinBox = QtGui.QSpinBox(self.layoutWidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.view1Z_spinBox.sizePolicy().hasHeightForWidth())
        self.view1Z_spinBox.setSizePolicy(sizePolicy)
        self.view1Z_spinBox.setMinimum(1)
        self.view1Z_spinBox.setMaximum(99)
        self.view1Z_spinBox.setObjectName(_fromUtf8("view1Z_spinBox"))
        self.horizontalLayout_5.addWidget(self.view1Z_spinBox)
        self.layoutWidget1 = QtGui.QWidget(self.groupBoxAxisRatio_2)
        self.layoutWidget1.setGeometry(QtCore.QRect(11, 60, 106, 29))
        self.layoutWidget1.setObjectName(_fromUtf8("layoutWidget1"))
        self.horizontalLayout_6 = QtGui.QHBoxLayout(self.layoutWidget1)
        self.horizontalLayout_6.setMargin(0)
        self.horizontalLayout_6.setObjectName(_fromUtf8("horizontalLayout_6"))
        self.axisRatioLabel_5 = QtGui.QLabel(self.layoutWidget1)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.axisRatioLabel_5.sizePolicy().hasHeightForWidth())
        self.axisRatioLabel_5.setSizePolicy(sizePolicy)
        self.axisRatioLabel_5.setMinimumSize(QtCore.QSize(45, 16))
        self.axisRatioLabel_5.setMaximumSize(QtCore.QSize(45, 16))
        self.axisRatioLabel_5.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.axisRatioLabel_5.setObjectName(_fromUtf8("axisRatioLabel_5"))
        self.horizontalLayout_6.addWidget(self.axisRatioLabel_5)
        self.view2Z_spinBox = QtGui.QSpinBox(self.layoutWidget1)
        self.view2Z_spinBox.setMinimum(1)
        self.view2Z_spinBox.setObjectName(_fromUtf8("view2Z_spinBox"))
        self.horizontalLayout_6.addWidget(self.view2Z_spinBox)
        self.layoutWidget2 = QtGui.QWidget(self.groupBoxAxisRatio_2)
        self.layoutWidget2.setGeometry(QtCore.QRect(11, 90, 106, 29))
        self.layoutWidget2.setObjectName(_fromUtf8("layoutWidget2"))
        self.horizontalLayout_7 = QtGui.QHBoxLayout(self.layoutWidget2)
        self.horizontalLayout_7.setMargin(0)
        self.horizontalLayout_7.setObjectName(_fromUtf8("horizontalLayout_7"))
        self.axisRatioLabel_6 = QtGui.QLabel(self.layoutWidget2)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.axisRatioLabel_6.sizePolicy().hasHeightForWidth())
        self.axisRatioLabel_6.setSizePolicy(sizePolicy)
        self.axisRatioLabel_6.setMinimumSize(QtCore.QSize(45, 16))
        self.axisRatioLabel_6.setMaximumSize(QtCore.QSize(45, 16))
        self.axisRatioLabel_6.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.axisRatioLabel_6.setObjectName(_fromUtf8("axisRatioLabel_6"))
        self.horizontalLayout_7.addWidget(self.axisRatioLabel_6)
        self.view3Z_spinBox = QtGui.QSpinBox(self.layoutWidget2)
        self.view3Z_spinBox.setMinimum(1)
        self.view3Z_spinBox.setObjectName(_fromUtf8("view3Z_spinBox"))
        self.horizontalLayout_7.addWidget(self.view3Z_spinBox)
        self.horizontalLayout_10.addWidget(self.groupBoxAxisRatio_2)
        self.frame = QtGui.QFrame(self.pointsSettingsTab)
        self.frame.setFrameShape(QtGui.QFrame.StyledPanel)
        self.frame.setFrameShadow(QtGui.QFrame.Raised)
        self.frame.setObjectName(_fromUtf8("frame"))
        self.verticalLayout_4 = QtGui.QVBoxLayout(self.frame)
        self.verticalLayout_4.setObjectName(_fromUtf8("verticalLayout_4"))
        self.horizontalLayout_4 = QtGui.QHBoxLayout()
        self.horizontalLayout_4.setObjectName(_fromUtf8("horizontalLayout_4"))
        self.labelMarker = QtGui.QLabel(self.frame)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.labelMarker.sizePolicy().hasHeightForWidth())
        self.labelMarker.setSizePolicy(sizePolicy)
        self.labelMarker.setMaximumSize(QtCore.QSize(42, 24))
        self.labelMarker.setObjectName(_fromUtf8("labelMarker"))
        self.horizontalLayout_4.addWidget(self.labelMarker)
        self.markerSymbol_comboBox = QtGui.QComboBox(self.frame)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.markerSymbol_comboBox.sizePolicy().hasHeightForWidth())
        self.markerSymbol_comboBox.setSizePolicy(sizePolicy)
        self.markerSymbol_comboBox.setMaximumSize(QtCore.QSize(85, 24))
        self.markerSymbol_comboBox.setObjectName(_fromUtf8("markerSymbol_comboBox"))
        self.horizontalLayout_4.addWidget(self.markerSymbol_comboBox)
        self.verticalLayout_4.addLayout(self.horizontalLayout_4)
        self.horizontalLayout_8 = QtGui.QHBoxLayout()
        self.horizontalLayout_8.setObjectName(_fromUtf8("horizontalLayout_8"))
        self.labelMarker_2 = QtGui.QLabel(self.frame)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.labelMarker_2.sizePolicy().hasHeightForWidth())
        self.labelMarker_2.setSizePolicy(sizePolicy)
        self.labelMarker_2.setMaximumSize(QtCore.QSize(42, 24))
        self.labelMarker_2.setObjectName(_fromUtf8("labelMarker_2"))
        self.horizontalLayout_8.addWidget(self.labelMarker_2)
        self.markerSize_spinBox = QtGui.QSpinBox(self.frame)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.markerSize_spinBox.sizePolicy().hasHeightForWidth())
        self.markerSize_spinBox.setSizePolicy(sizePolicy)
        self.markerSize_spinBox.setMinimum(1)
        self.markerSize_spinBox.setMaximum(99)
        self.markerSize_spinBox.setProperty("value", 1)
        self.markerSize_spinBox.setObjectName(_fromUtf8("markerSize_spinBox"))
        self.horizontalLayout_8.addWidget(self.markerSize_spinBox)
        self.verticalLayout_4.addLayout(self.horizontalLayout_8)
        self.horizontalLayout_9 = QtGui.QHBoxLayout()
        self.horizontalLayout_9.setObjectName(_fromUtf8("horizontalLayout_9"))
        self.labelMarker_3 = QtGui.QLabel(self.frame)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.labelMarker_3.sizePolicy().hasHeightForWidth())
        self.labelMarker_3.setSizePolicy(sizePolicy)
        self.labelMarker_3.setMaximumSize(QtCore.QSize(42, 24))
        self.labelMarker_3.setObjectName(_fromUtf8("labelMarker_3"))
        self.horizontalLayout_9.addWidget(self.labelMarker_3)
        self.markerAlpha_spinBox = QtGui.QSpinBox(self.frame)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.markerAlpha_spinBox.sizePolicy().hasHeightForWidth())
        self.markerAlpha_spinBox.setSizePolicy(sizePolicy)
        self.markerAlpha_spinBox.setMinimum(0)
        self.markerAlpha_spinBox.setMaximum(255)
        self.markerAlpha_spinBox.setProperty("value", 255)
        self.markerAlpha_spinBox.setObjectName(_fromUtf8("markerAlpha_spinBox"))
        self.horizontalLayout_9.addWidget(self.markerAlpha_spinBox)
        self.verticalLayout_4.addLayout(self.horizontalLayout_9)
        self.horizontalLayout_12 = QtGui.QHBoxLayout()
        self.horizontalLayout_12.setObjectName(_fromUtf8("horizontalLayout_12"))
        self.labelMarker_5 = QtGui.QLabel(self.frame)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.labelMarker_5.sizePolicy().hasHeightForWidth())
        self.labelMarker_5.setSizePolicy(sizePolicy)
        self.labelMarker_5.setMaximumSize(QtCore.QSize(42, 24))
        self.labelMarker_5.setObjectName(_fromUtf8("labelMarker_5"))
        self.horizontalLayout_12.addWidget(self.labelMarker_5)
        self.lineWidth_spinBox = QtGui.QSpinBox(self.frame)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.lineWidth_spinBox.sizePolicy().hasHeightForWidth())
        self.lineWidth_spinBox.setSizePolicy(sizePolicy)
        self.lineWidth_spinBox.setMinimum(1)
        self.lineWidth_spinBox.setMaximum(25)
        self.lineWidth_spinBox.setProperty("value", 2)
        self.lineWidth_spinBox.setObjectName(_fromUtf8("lineWidth_spinBox"))
        self.horizontalLayout_12.addWidget(self.lineWidth_spinBox)
        self.verticalLayout_4.addLayout(self.horizontalLayout_12)
        self.markerColor_pushButton = QtGui.QPushButton(self.frame)
        self.markerColor_pushButton.setObjectName(_fromUtf8("markerColor_pushButton"))
        self.verticalLayout_4.addWidget(self.markerColor_pushButton)
        self.horizontalLayout_10.addWidget(self.frame)
        self.verticalLayout_5.addLayout(self.horizontalLayout_10)
        spacerItem1 = QtGui.QSpacerItem(20, 204, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
        self.verticalLayout_5.addItem(spacerItem1)
        self.tabWidget.addTab(self.pointsSettingsTab, _fromUtf8(""))
        self.axisSetingsTab = QtGui.QWidget()
        self.axisSetingsTab.setObjectName(_fromUtf8("axisSetingsTab"))
        self.groupBoxAxisRatio = QtGui.QGroupBox(self.axisSetingsTab)
        self.groupBoxAxisRatio.setGeometry(QtCore.QRect(10, 10, 131, 121))
        self.groupBoxAxisRatio.setObjectName(_fromUtf8("groupBoxAxisRatio"))
        self.layoutWidget3 = QtGui.QWidget(self.groupBoxAxisRatio)
        self.layoutWidget3.setGeometry(QtCore.QRect(10, 30, 110, 22))
        self.layoutWidget3.setObjectName(_fromUtf8("layoutWidget3"))
        self.horizontalLayout = QtGui.QHBoxLayout(self.layoutWidget3)
        self.horizontalLayout.setMargin(0)
        self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
        self.axisRatioLabel_1 = QtGui.QLabel(self.layoutWidget3)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.axisRatioLabel_1.sizePolicy().hasHeightForWidth())
        self.axisRatioLabel_1.setSizePolicy(sizePolicy)
        self.axisRatioLabel_1.setMinimumSize(QtCore.QSize(71, 16))
        self.axisRatioLabel_1.setMaximumSize(QtCore.QSize(71, 16))
        self.axisRatioLabel_1.setLayoutDirection(QtCore.Qt.LeftToRight)
        self.axisRatioLabel_1.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.axisRatioLabel_1.setObjectName(_fromUtf8("axisRatioLabel_1"))
        self.horizontalLayout.addWidget(self.axisRatioLabel_1)
        self.axisRatioLineEdit_1 = QtGui.QLineEdit(self.layoutWidget3)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.axisRatioLineEdit_1.sizePolicy().hasHeightForWidth())
        self.axisRatioLineEdit_1.setSizePolicy(sizePolicy)
        self.axisRatioLineEdit_1.setMaximumSize(QtCore.QSize(31, 20))
        self.axisRatioLineEdit_1.setInputMethodHints(QtCore.Qt.ImhPreferNumbers)
        self.axisRatioLineEdit_1.setObjectName(_fromUtf8("axisRatioLineEdit_1"))
        self.horizontalLayout.addWidget(self.axisRatioLineEdit_1)
        self.layoutWidget4 = QtGui.QWidget(self.groupBoxAxisRatio)
        self.layoutWidget4.setGeometry(QtCore.QRect(10, 50, 110, 22))
        self.layoutWidget4.setObjectName(_fromUtf8("layoutWidget4"))
        self.horizontalLayout_2 = QtGui.QHBoxLayout(self.layoutWidget4)
        self.horizontalLayout_2.setMargin(0)
        self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2"))
        self.axisRatioLabel_2 = QtGui.QLabel(self.layoutWidget4)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.axisRatioLabel_2.sizePolicy().hasHeightForWidth())
        self.axisRatioLabel_2.setSizePolicy(sizePolicy)
        self.axisRatioLabel_2.setMinimumSize(QtCore.QSize(71, 16))
        self.axisRatioLabel_2.setMaximumSize(QtCore.QSize(71, 16))
        self.axisRatioLabel_2.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.axisRatioLabel_2.setObjectName(_fromUtf8("axisRatioLabel_2"))
        self.horizontalLayout_2.addWidget(self.axisRatioLabel_2)
        self.axisRatioLineEdit_2 = QtGui.QLineEdit(self.layoutWidget4)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.axisRatioLineEdit_2.sizePolicy().hasHeightForWidth())
        self.axisRatioLineEdit_2.setSizePolicy(sizePolicy)
        self.axisRatioLineEdit_2.setMaximumSize(QtCore.QSize(31, 20))
        self.axisRatioLineEdit_2.setInputMethodHints(QtCore.Qt.ImhPreferNumbers)
        self.axisRatioLineEdit_2.setObjectName(_fromUtf8("axisRatioLineEdit_2"))
        self.horizontalLayout_2.addWidget(self.axisRatioLineEdit_2)
        self.layoutWidget5 = QtGui.QWidget(self.groupBoxAxisRatio)
        self.layoutWidget5.setGeometry(QtCore.QRect(10, 70, 110, 22))
        self.layoutWidget5.setObjectName(_fromUtf8("layoutWidget5"))
        self.horizontalLayout_3 = QtGui.QHBoxLayout(self.layoutWidget5)
        self.horizontalLayout_3.setMargin(0)
        self.horizontalLayout_3.setObjectName(_fromUtf8("horizontalLayout_3"))
        self.axisRatioLabel_3 = QtGui.QLabel(self.layoutWidget5)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.axisRatioLabel_3.sizePolicy().hasHeightForWidth())
        self.axisRatioLabel_3.setSizePolicy(sizePolicy)
        self.axisRatioLabel_3.setMinimumSize(QtCore.QSize(71, 16))
        self.axisRatioLabel_3.setMaximumSize(QtCore.QSize(71, 16))
        self.axisRatioLabel_3.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.axisRatioLabel_3.setObjectName(_fromUtf8("axisRatioLabel_3"))
        self.horizontalLayout_3.addWidget(self.axisRatioLabel_3)
        self.axisRatioLineEdit_3 = QtGui.QLineEdit(self.layoutWidget5)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.axisRatioLineEdit_3.sizePolicy().hasHeightForWidth())
        self.axisRatioLineEdit_3.setSizePolicy(sizePolicy)
        self.axisRatioLineEdit_3.setMaximumSize(QtCore.QSize(31, 20))
        self.axisRatioLineEdit_3.setInputMethodHints(QtCore.Qt.ImhPreferNumbers)
        self.axisRatioLineEdit_3.setObjectName(_fromUtf8("axisRatioLineEdit_3"))
        self.horizontalLayout_3.addWidget(self.axisRatioLineEdit_3)
        self.groupBoxFlip = QtGui.QGroupBox(self.axisSetingsTab)
        self.groupBoxFlip.setEnabled(True)
        self.groupBoxFlip.setGeometry(QtCore.QRect(150, 10, 81, 121))
        self.groupBoxFlip.setToolTip(_fromUtf8(""))
        self.groupBoxFlip.setObjectName(_fromUtf8("groupBoxFlip"))
        self.layoutWidget6 = QtGui.QWidget(self.groupBoxFlip)
        self.layoutWidget6.setGeometry(QtCore.QRect(20, 20, 43, 92))
        self.layoutWidget6.setObjectName(_fromUtf8("layoutWidget6"))
        self.verticalLayout = QtGui.QVBoxLayout(self.layoutWidget6)
        self.verticalLayout.setMargin(0)
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.pushButton_FlipView1 = QtGui.QPushButton(self.layoutWidget6)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.pushButton_FlipView1.sizePolicy().hasHeightForWidth())
        self.pushButton_FlipView1.setSizePolicy(sizePolicy)
        self.pushButton_FlipView1.setMaximumSize(QtCore.QSize(41, 16777215))
        font = QtGui.QFont()
        font.setPointSize(7)
        self.pushButton_FlipView1.setFont(font)
        self.pushButton_FlipView1.setCheckable(True)
        self.pushButton_FlipView1.setObjectName(_fromUtf8("pushButton_FlipView1"))
        self.verticalLayout.addWidget(self.pushButton_FlipView1)
        self.pushButton_FlipView2 = QtGui.QPushButton(self.layoutWidget6)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.pushButton_FlipView2.sizePolicy().hasHeightForWidth())
        self.pushButton_FlipView2.setSizePolicy(sizePolicy)
        self.pushButton_FlipView2.setMaximumSize(QtCore.QSize(41, 16777215))
        font = QtGui.QFont()
        font.setPointSize(7)
        self.pushButton_FlipView2.setFont(font)
        self.pushButton_FlipView2.setCheckable(True)
        self.pushButton_FlipView2.setObjectName(_fromUtf8("pushButton_FlipView2"))
        self.verticalLayout.addWidget(self.pushButton_FlipView2)
        self.pushButton_FlipView3 = QtGui.QPushButton(self.layoutWidget6)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.pushButton_FlipView3.sizePolicy().hasHeightForWidth())
        self.pushButton_FlipView3.setSizePolicy(sizePolicy)
        self.pushButton_FlipView3.setMaximumSize(QtCore.QSize(41, 16777215))
        font = QtGui.QFont()
        font.setPointSize(7)
        self.pushButton_FlipView3.setFont(font)
        self.pushButton_FlipView3.setCheckable(True)
        self.pushButton_FlipView3.setObjectName(_fromUtf8("pushButton_FlipView3"))
        self.verticalLayout.addWidget(self.pushButton_FlipView3)
        self.tabWidget.addTab(self.axisSetingsTab, _fromUtf8(""))
        self.verticalLayout_2.addWidget(self.tabWidget)
        self.mainDockWidget.setWidget(self.dockWidgetContents)
        lasagna_mainWindow.addDockWidget(QtCore.Qt.DockWidgetArea(1), self.mainDockWidget)
        self.toolBar = QtGui.QToolBar(lasagna_mainWindow)
        self.toolBar.setObjectName(_fromUtf8("toolBar"))
        lasagna_mainWindow.addToolBar(QtCore.Qt.TopToolBarArea, self.toolBar)
        self.statusBar = QtGui.QStatusBar(lasagna_mainWindow)
        self.statusBar.setObjectName(_fromUtf8("statusBar"))
        lasagna_mainWindow.setStatusBar(self.statusBar)
        self.actionOpen = QtGui.QAction(lasagna_mainWindow)
        icon1 = QtGui.QIcon()
        icon1.addPixmap(QtGui.QPixmap(_fromUtf8(":/actions/icons/document-open.png")), QtGui.QIcon.Normal, QtGui.QIcon.On)
        self.actionOpen.setIcon(icon1)
        self.actionOpen.setObjectName(_fromUtf8("actionOpen"))
        self.actionAbout = QtGui.QAction(lasagna_mainWindow)
        self.actionAbout.setObjectName(_fromUtf8("actionAbout"))
        self.actionQuit = QtGui.QAction(lasagna_mainWindow)
        icon2 = QtGui.QIcon()
        icon2.addPixmap(QtGui.QPixmap(_fromUtf8(":/actions/icons/window-close.png")), QtGui.QIcon.Normal, QtGui.QIcon.On)
        self.actionQuit.setIcon(icon2)
        self.actionQuit.setObjectName(_fromUtf8("actionQuit"))
        self.action_ARA_Explorer = QtGui.QAction(lasagna_mainWindow)
        self.action_ARA_Explorer.setCheckable(True)
        self.action_ARA_Explorer.setObjectName(_fromUtf8("action_ARA_Explorer"))
        self.actionResetAxes = QtGui.QAction(lasagna_mainWindow)
        icon3 = QtGui.QIcon()
        icon3.addPixmap(QtGui.QPixmap(_fromUtf8(":/actions/icons/edit-redo.png")), QtGui.QIcon.Normal, QtGui.QIcon.On)
        self.actionResetAxes.setIcon(icon3)
        self.actionResetAxes.setObjectName(_fromUtf8("actionResetAxes"))
        self.actionLoadOverlay = QtGui.QAction(lasagna_mainWindow)
        self.actionLoadOverlay.setEnabled(False)
        icon4 = QtGui.QIcon()
        icon4.addPixmap(QtGui.QPixmap(_fromUtf8(":/actions/icons/overlay.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionLoadOverlay.setIcon(icon4)
        self.actionLoadOverlay.setShortcut(_fromUtf8(""))
        self.actionLoadOverlay.setObjectName(_fromUtf8("actionLoadOverlay"))
        self.actionRemoveOverlay = QtGui.QAction(lasagna_mainWindow)
        self.actionRemoveOverlay.setEnabled(False)
        icon5 = QtGui.QIcon()
        icon5.addPixmap(QtGui.QPixmap(_fromUtf8(":/actions/icons/removeoverlay.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionRemoveOverlay.setIcon(icon5)
        self.actionRemoveOverlay.setObjectName(_fromUtf8("actionRemoveOverlay"))
        self.actionNone = QtGui.QAction(lasagna_mainWindow)
        self.actionNone.setObjectName(_fromUtf8("actionNone"))
        self.actionOpen_2 = QtGui.QAction(lasagna_mainWindow)
        self.actionOpen_2.setObjectName(_fromUtf8("actionOpen_2"))
        self.menuLoad_ingredient.addAction(self.actionOpen)
        self.menuFile.addAction(self.menuLoad_ingredient.menuAction())
        self.menuFile.addAction(self.menuOpen_recent.menuAction())
        self.menuFile.addAction(self.actionQuit)
        self.menuHelp.addAction(self.actionAbout)
        self.menuBar.addAction(self.menuFile.menuAction())
        self.menuBar.addAction(self.menuPlugins.menuAction())
        self.menuBar.addAction(self.menuHelp.menuAction())
        self.toolBar.addAction(self.actionResetAxes)
        self.toolBar.addSeparator()

        self.retranslateUi(lasagna_mainWindow)
        self.tabWidget.setCurrentIndex(1)
        QtCore.QMetaObject.connectSlotsByName(lasagna_mainWindow)

    def retranslateUi(self, lasagna_mainWindow):
        lasagna_mainWindow.setWindowTitle(_translate("lasagna_mainWindow", "MainWindow", None))
        self.menuFile.setTitle(_translate("lasagna_mainWindow", "&File", None))
        self.menuOpen_recent.setTitle(_translate("lasagna_mainWindow", "&Open recent", None))
        self.menuLoad_ingredient.setTitle(_translate("lasagna_mainWindow", "&Load ingredient", None))
        self.menuHelp.setTitle(_translate("lasagna_mainWindow", "Help", None))
        self.menuPlugins.setTitle(_translate("lasagna_mainWindow", "&Plugins", None))
        self.logYcheckBox.setText(_translate("lasagna_mainWindow", "Log Y", None))
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.imageSettingsTab), _translate("lasagna_mainWindow", "Image", None))
        self.groupBoxAxisRatio_2.setTitle(_translate("lasagna_mainWindow", "z-spread", None))
        self.axisRatioLabel_4.setText(_translate("lasagna_mainWindow", "View 1", None))
        self.axisRatioLabel_5.setText(_translate("lasagna_mainWindow", "View 2", None))
        self.axisRatioLabel_6.setText(_translate("lasagna_mainWindow", "View 3", None))
        self.labelMarker.setText(_translate("lasagna_mainWindow", "Marker", None))
        self.labelMarker_2.setText(_translate("lasagna_mainWindow", "Size", None))
        self.labelMarker_3.setText(_translate("lasagna_mainWindow", "Alpha", None))
        self.labelMarker_5.setText(_translate("lasagna_mainWindow", "Width", None))
        self.markerColor_pushButton.setText(_translate("lasagna_mainWindow", "Color", None))
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.pointsSettingsTab), _translate("lasagna_mainWindow", "Points", None))
        self.groupBoxAxisRatio.setTitle(_translate("lasagna_mainWindow", "Axis ratios", None))
        self.axisRatioLabel_1.setText(_translate("lasagna_mainWindow", "View 1", None))
        self.axisRatioLineEdit_1.setText(_translate("lasagna_mainWindow", "1", None))
        self.axisRatioLabel_2.setText(_translate("lasagna_mainWindow", "View 2", None))
        self.axisRatioLineEdit_2.setText(_translate("lasagna_mainWindow", "2", None))
        self.axisRatioLabel_3.setText(_translate("lasagna_mainWindow", "View 3", None))
        self.axisRatioLineEdit_3.setText(_translate("lasagna_mainWindow", "0.5", None))
        self.groupBoxFlip.setTitle(_translate("lasagna_mainWindow", "Flip Stacks", None))
        self.pushButton_FlipView1.setText(_translate("lasagna_mainWindow", "View 1", None))
        self.pushButton_FlipView2.setText(_translate("lasagna_mainWindow", "View 2", None))
        self.pushButton_FlipView3.setText(_translate("lasagna_mainWindow", "View 3", None))
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.axisSetingsTab), _translate("lasagna_mainWindow", "Axis", None))
        self.toolBar.setWindowTitle(_translate("lasagna_mainWindow", "toolBar", None))
        self.actionOpen.setText(_translate("lasagna_mainWindow", "&New base stack", None))
        self.actionAbout.setText(_translate("lasagna_mainWindow", "About", None))
        self.actionQuit.setText(_translate("lasagna_mainWindow", "&Quit", None))
        self.action_ARA_Explorer.setText(_translate("lasagna_mainWindow", "&ARA Explorer", None))
        self.actionResetAxes.setText(_translate("lasagna_mainWindow", "resetAxes", None))
        self.actionResetAxes.setToolTip(_translate("lasagna_mainWindow", "reset axes", None))
        self.actionResetAxes.setShortcut(_translate("lasagna_mainWindow", "Ctrl+R", None))
        self.actionLoadOverlay.setText(_translate("lasagna_mainWindow", "&Load overlay", None))
        self.actionRemoveOverlay.setText(_translate("lasagna_mainWindow", "removeOverlay", None))
        self.actionRemoveOverlay.setToolTip(_translate("lasagna_mainWindow", "removeOverlay", None))
        self.actionNone.setText(_translate("lasagna_mainWindow", "none", None))
        self.actionOpen_2.setText(_translate("lasagna_mainWindow", "Open", None))
Пример #17
0
class Ui_lasagna_mainWindow(object):
    def setupUi(self, lasagna_mainWindow):
        lasagna_mainWindow.setObjectName(_fromUtf8("lasagna_mainWindow"))
        lasagna_mainWindow.resize(1002, 795)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            lasagna_mainWindow.sizePolicy().hasHeightForWidth())
        lasagna_mainWindow.setSizePolicy(sizePolicy)
        lasagna_mainWindow.setMinimumSize(QtCore.QSize(540, 540))
        icon = QtGui.QIcon()
        icon.addPixmap(
            QtGui.QPixmap(_fromUtf8(":/icons/icons/lasagna_32.png")),
            QtGui.QIcon.Normal, QtGui.QIcon.On)
        lasagna_mainWindow.setWindowIcon(icon)
        self.centralwidget = QtGui.QWidget(lasagna_mainWindow)
        self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
        self.gridLayout = QtGui.QGridLayout(self.centralwidget)
        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
        self.splitter_3 = QtGui.QSplitter(self.centralwidget)
        self.splitter_3.setOrientation(QtCore.Qt.Vertical)
        self.splitter_3.setObjectName(_fromUtf8("splitter_3"))
        self.splitter = QtGui.QSplitter(self.splitter_3)
        self.splitter.setOrientation(QtCore.Qt.Horizontal)
        self.splitter.setObjectName(_fromUtf8("splitter"))
        self.graphicsView_1 = LasagnaPlotWidget(self.splitter)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Ignored,
                                       QtGui.QSizePolicy.Ignored)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.graphicsView_1.sizePolicy().hasHeightForWidth())
        self.graphicsView_1.setSizePolicy(sizePolicy)
        self.graphicsView_1.setObjectName(_fromUtf8("graphicsView_1"))
        self.graphicsView_2 = LasagnaPlotWidget(self.splitter)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Ignored,
                                       QtGui.QSizePolicy.Ignored)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.graphicsView_2.sizePolicy().hasHeightForWidth())
        self.graphicsView_2.setSizePolicy(sizePolicy)
        self.graphicsView_2.setObjectName(_fromUtf8("graphicsView_2"))
        self.splitter_2 = QtGui.QSplitter(self.splitter_3)
        self.splitter_2.setOrientation(QtCore.Qt.Horizontal)
        self.splitter_2.setObjectName(_fromUtf8("splitter_2"))
        self.graphicsView_3 = LasagnaPlotWidget(self.splitter_2)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Ignored,
                                       QtGui.QSizePolicy.Ignored)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.graphicsView_3.sizePolicy().hasHeightForWidth())
        self.graphicsView_3.setSizePolicy(sizePolicy)
        self.graphicsView_3.setObjectName(_fromUtf8("graphicsView_3"))
        self.frame_2 = QtGui.QFrame(self.splitter_2)
        self.frame_2.setFrameShape(QtGui.QFrame.StyledPanel)
        self.frame_2.setFrameShadow(QtGui.QFrame.Raised)
        self.frame_2.setObjectName(_fromUtf8("frame_2"))
        self.gridLayout.addWidget(self.splitter_3, 0, 0, 1, 1)
        lasagna_mainWindow.setCentralWidget(self.centralwidget)
        self.menuBar = QtGui.QMenuBar(lasagna_mainWindow)
        self.menuBar.setGeometry(QtCore.QRect(0, 0, 1002, 27))
        self.menuBar.setObjectName(_fromUtf8("menuBar"))
        self.menuFile = QtGui.QMenu(self.menuBar)
        self.menuFile.setObjectName(_fromUtf8("menuFile"))
        self.menuOpen_recent = QtGui.QMenu(self.menuFile)
        self.menuOpen_recent.setObjectName(_fromUtf8("menuOpen_recent"))
        self.menuLoad_ingredient = QtGui.QMenu(self.menuFile)
        self.menuLoad_ingredient.setObjectName(
            _fromUtf8("menuLoad_ingredient"))
        self.menuHelp = QtGui.QMenu(self.menuBar)
        self.menuHelp.setObjectName(_fromUtf8("menuHelp"))
        self.menuPlugins = QtGui.QMenu(self.menuBar)
        self.menuPlugins.setObjectName(_fromUtf8("menuPlugins"))
        lasagna_mainWindow.setMenuBar(self.menuBar)
        self.mainDockWidget = QtGui.QDockWidget(lasagna_mainWindow)
        self.mainDockWidget.setMinimumSize(QtCore.QSize(331, 587))
        self.mainDockWidget.setFeatures(QtGui.QDockWidget.DockWidgetFloatable
                                        | QtGui.QDockWidget.DockWidgetMovable)
        self.mainDockWidget.setObjectName(_fromUtf8("mainDockWidget"))
        self.dockWidgetContents = QtGui.QWidget()
        self.dockWidgetContents.setObjectName(_fromUtf8("dockWidgetContents"))
        self.verticalLayout_2 = QtGui.QVBoxLayout(self.dockWidgetContents)
        self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2"))
        self.tabWidget = QtGui.QTabWidget(self.dockWidgetContents)
        self.tabWidget.setObjectName(_fromUtf8("tabWidget"))
        self.imageSettingsTab = QtGui.QWidget()
        self.imageSettingsTab.setObjectName(_fromUtf8("imageSettingsTab"))
        self.verticalLayout_3 = QtGui.QVBoxLayout(self.imageSettingsTab)
        self.verticalLayout_3.setObjectName(_fromUtf8("verticalLayout_3"))
        self.intensityHistogram = PlotWidget(self.imageSettingsTab)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.intensityHistogram.sizePolicy().hasHeightForWidth())
        self.intensityHistogram.setSizePolicy(sizePolicy)
        self.intensityHistogram.setMinimumSize(QtCore.QSize(0, 180))
        self.intensityHistogram.setMaximumSize(QtCore.QSize(16777215, 180))
        self.intensityHistogram.setObjectName(_fromUtf8("intensityHistogram"))
        self.verticalLayout_3.addWidget(self.intensityHistogram)
        self.horizontalLayout_13 = QtGui.QHBoxLayout()
        self.horizontalLayout_13.setObjectName(
            _fromUtf8("horizontalLayout_13"))
        self.logYcheckBox = QtGui.QCheckBox(self.imageSettingsTab)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.logYcheckBox.sizePolicy().hasHeightForWidth())
        self.logYcheckBox.setSizePolicy(sizePolicy)
        self.logYcheckBox.setMaximumSize(QtCore.QSize(16777215, 21))
        self.logYcheckBox.setChecked(True)
        self.logYcheckBox.setObjectName(_fromUtf8("logYcheckBox"))
        self.horizontalLayout_13.addWidget(self.logYcheckBox)
        self.imageAlpha_horizontalSlider = QtGui.QSlider(self.imageSettingsTab)
        self.imageAlpha_horizontalSlider.setMinimumSize(QtCore.QSize(221, 0))
        self.imageAlpha_horizontalSlider.setMaximum(100)
        self.imageAlpha_horizontalSlider.setProperty("value", 100)
        self.imageAlpha_horizontalSlider.setOrientation(QtCore.Qt.Horizontal)
        self.imageAlpha_horizontalSlider.setInvertedAppearance(False)
        self.imageAlpha_horizontalSlider.setInvertedControls(False)
        self.imageAlpha_horizontalSlider.setObjectName(
            _fromUtf8("imageAlpha_horizontalSlider"))
        self.horizontalLayout_13.addWidget(self.imageAlpha_horizontalSlider)
        self.verticalLayout_3.addLayout(self.horizontalLayout_13)
        self.imageStackLayers_TreeView = QtGui.QTreeView(self.imageSettingsTab)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.imageStackLayers_TreeView.sizePolicy().hasHeightForWidth())
        self.imageStackLayers_TreeView.setSizePolicy(sizePolicy)
        self.imageStackLayers_TreeView.setMinimumSize(QtCore.QSize(0, 271))
        self.imageStackLayers_TreeView.setRootIsDecorated(False)
        self.imageStackLayers_TreeView.setObjectName(
            _fromUtf8("imageStackLayers_TreeView"))
        self.verticalLayout_3.addWidget(self.imageStackLayers_TreeView)
        spacerItem = QtGui.QSpacerItem(20, 162, QtGui.QSizePolicy.Minimum,
                                       QtGui.QSizePolicy.Expanding)
        self.verticalLayout_3.addItem(spacerItem)
        self.tabWidget.addTab(self.imageSettingsTab, _fromUtf8(""))
        self.pointsSettingsTab = QtGui.QWidget()
        self.pointsSettingsTab.setObjectName(_fromUtf8("pointsSettingsTab"))
        self.verticalLayout_5 = QtGui.QVBoxLayout(self.pointsSettingsTab)
        self.verticalLayout_5.setObjectName(_fromUtf8("verticalLayout_5"))
        self.points_TreeView = QtGui.QTreeView(self.pointsSettingsTab)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.points_TreeView.sizePolicy().hasHeightForWidth())
        self.points_TreeView.setSizePolicy(sizePolicy)
        self.points_TreeView.setMinimumSize(QtCore.QSize(0, 281))
        self.points_TreeView.setMaximumSize(QtCore.QSize(16777215, 330))
        self.points_TreeView.setObjectName(_fromUtf8("points_TreeView"))
        self.verticalLayout_5.addWidget(self.points_TreeView)
        self.horizontalLayout_10 = QtGui.QHBoxLayout()
        self.horizontalLayout_10.setObjectName(
            _fromUtf8("horizontalLayout_10"))
        self.groupBoxAxisRatio_2 = QtGui.QGroupBox(self.pointsSettingsTab)
        self.groupBoxAxisRatio_2.setEnabled(True)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.groupBoxAxisRatio_2.sizePolicy().hasHeightForWidth())
        self.groupBoxAxisRatio_2.setSizePolicy(sizePolicy)
        self.groupBoxAxisRatio_2.setMinimumSize(QtCore.QSize(131, 131))
        self.groupBoxAxisRatio_2.setMaximumSize(QtCore.QSize(131, 16777215))
        self.groupBoxAxisRatio_2.setObjectName(
            _fromUtf8("groupBoxAxisRatio_2"))
        self.layoutWidget = QtGui.QWidget(self.groupBoxAxisRatio_2)
        self.layoutWidget.setGeometry(QtCore.QRect(11, 30, 106, 29))
        self.layoutWidget.setObjectName(_fromUtf8("layoutWidget"))
        self.horizontalLayout_5 = QtGui.QHBoxLayout(self.layoutWidget)
        self.horizontalLayout_5.setMargin(0)
        self.horizontalLayout_5.setObjectName(_fromUtf8("horizontalLayout_5"))
        self.axisRatioLabel_4 = QtGui.QLabel(self.layoutWidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.axisRatioLabel_4.sizePolicy().hasHeightForWidth())
        self.axisRatioLabel_4.setSizePolicy(sizePolicy)
        self.axisRatioLabel_4.setMinimumSize(QtCore.QSize(45, 16))
        self.axisRatioLabel_4.setMaximumSize(QtCore.QSize(45, 16))
        self.axisRatioLabel_4.setLayoutDirection(QtCore.Qt.LeftToRight)
        self.axisRatioLabel_4.setAlignment(QtCore.Qt.AlignRight
                                           | QtCore.Qt.AlignTrailing
                                           | QtCore.Qt.AlignVCenter)
        self.axisRatioLabel_4.setObjectName(_fromUtf8("axisRatioLabel_4"))
        self.horizontalLayout_5.addWidget(self.axisRatioLabel_4)
        self.view1Z_spinBox = QtGui.QSpinBox(self.layoutWidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.view1Z_spinBox.sizePolicy().hasHeightForWidth())
        self.view1Z_spinBox.setSizePolicy(sizePolicy)
        self.view1Z_spinBox.setMinimum(1)
        self.view1Z_spinBox.setMaximum(99)
        self.view1Z_spinBox.setObjectName(_fromUtf8("view1Z_spinBox"))
        self.horizontalLayout_5.addWidget(self.view1Z_spinBox)
        self.layoutWidget1 = QtGui.QWidget(self.groupBoxAxisRatio_2)
        self.layoutWidget1.setGeometry(QtCore.QRect(11, 60, 106, 29))
        self.layoutWidget1.setObjectName(_fromUtf8("layoutWidget1"))
        self.horizontalLayout_6 = QtGui.QHBoxLayout(self.layoutWidget1)
        self.horizontalLayout_6.setMargin(0)
        self.horizontalLayout_6.setObjectName(_fromUtf8("horizontalLayout_6"))
        self.axisRatioLabel_5 = QtGui.QLabel(self.layoutWidget1)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.axisRatioLabel_5.sizePolicy().hasHeightForWidth())
        self.axisRatioLabel_5.setSizePolicy(sizePolicy)
        self.axisRatioLabel_5.setMinimumSize(QtCore.QSize(45, 16))
        self.axisRatioLabel_5.setMaximumSize(QtCore.QSize(45, 16))
        self.axisRatioLabel_5.setAlignment(QtCore.Qt.AlignRight
                                           | QtCore.Qt.AlignTrailing
                                           | QtCore.Qt.AlignVCenter)
        self.axisRatioLabel_5.setObjectName(_fromUtf8("axisRatioLabel_5"))
        self.horizontalLayout_6.addWidget(self.axisRatioLabel_5)
        self.view2Z_spinBox = QtGui.QSpinBox(self.layoutWidget1)
        self.view2Z_spinBox.setMinimum(1)
        self.view2Z_spinBox.setObjectName(_fromUtf8("view2Z_spinBox"))
        self.horizontalLayout_6.addWidget(self.view2Z_spinBox)
        self.layoutWidget2 = QtGui.QWidget(self.groupBoxAxisRatio_2)
        self.layoutWidget2.setGeometry(QtCore.QRect(11, 90, 106, 29))
        self.layoutWidget2.setObjectName(_fromUtf8("layoutWidget2"))
        self.horizontalLayout_7 = QtGui.QHBoxLayout(self.layoutWidget2)
        self.horizontalLayout_7.setMargin(0)
        self.horizontalLayout_7.setObjectName(_fromUtf8("horizontalLayout_7"))
        self.axisRatioLabel_6 = QtGui.QLabel(self.layoutWidget2)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.axisRatioLabel_6.sizePolicy().hasHeightForWidth())
        self.axisRatioLabel_6.setSizePolicy(sizePolicy)
        self.axisRatioLabel_6.setMinimumSize(QtCore.QSize(45, 16))
        self.axisRatioLabel_6.setMaximumSize(QtCore.QSize(45, 16))
        self.axisRatioLabel_6.setAlignment(QtCore.Qt.AlignRight
                                           | QtCore.Qt.AlignTrailing
                                           | QtCore.Qt.AlignVCenter)
        self.axisRatioLabel_6.setObjectName(_fromUtf8("axisRatioLabel_6"))
        self.horizontalLayout_7.addWidget(self.axisRatioLabel_6)
        self.view3Z_spinBox = QtGui.QSpinBox(self.layoutWidget2)
        self.view3Z_spinBox.setMinimum(1)
        self.view3Z_spinBox.setObjectName(_fromUtf8("view3Z_spinBox"))
        self.horizontalLayout_7.addWidget(self.view3Z_spinBox)
        self.horizontalLayout_10.addWidget(self.groupBoxAxisRatio_2)
        self.frame = QtGui.QFrame(self.pointsSettingsTab)
        self.frame.setFrameShape(QtGui.QFrame.StyledPanel)
        self.frame.setFrameShadow(QtGui.QFrame.Raised)
        self.frame.setObjectName(_fromUtf8("frame"))
        self.verticalLayout_4 = QtGui.QVBoxLayout(self.frame)
        self.verticalLayout_4.setObjectName(_fromUtf8("verticalLayout_4"))
        self.horizontalLayout_4 = QtGui.QHBoxLayout()
        self.horizontalLayout_4.setObjectName(_fromUtf8("horizontalLayout_4"))
        self.labelMarker = QtGui.QLabel(self.frame)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.labelMarker.sizePolicy().hasHeightForWidth())
        self.labelMarker.setSizePolicy(sizePolicy)
        self.labelMarker.setMaximumSize(QtCore.QSize(42, 24))
        self.labelMarker.setObjectName(_fromUtf8("labelMarker"))
        self.horizontalLayout_4.addWidget(self.labelMarker)
        self.markerSymbol_comboBox = QtGui.QComboBox(self.frame)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.markerSymbol_comboBox.sizePolicy().hasHeightForWidth())
        self.markerSymbol_comboBox.setSizePolicy(sizePolicy)
        self.markerSymbol_comboBox.setMaximumSize(QtCore.QSize(85, 24))
        self.markerSymbol_comboBox.setObjectName(
            _fromUtf8("markerSymbol_comboBox"))
        self.horizontalLayout_4.addWidget(self.markerSymbol_comboBox)
        self.verticalLayout_4.addLayout(self.horizontalLayout_4)
        self.horizontalLayout_8 = QtGui.QHBoxLayout()
        self.horizontalLayout_8.setObjectName(_fromUtf8("horizontalLayout_8"))
        self.labelMarker_2 = QtGui.QLabel(self.frame)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.labelMarker_2.sizePolicy().hasHeightForWidth())
        self.labelMarker_2.setSizePolicy(sizePolicy)
        self.labelMarker_2.setMaximumSize(QtCore.QSize(42, 24))
        self.labelMarker_2.setObjectName(_fromUtf8("labelMarker_2"))
        self.horizontalLayout_8.addWidget(self.labelMarker_2)
        self.markerSize_spinBox = QtGui.QSpinBox(self.frame)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.markerSize_spinBox.sizePolicy().hasHeightForWidth())
        self.markerSize_spinBox.setSizePolicy(sizePolicy)
        self.markerSize_spinBox.setMinimum(1)
        self.markerSize_spinBox.setMaximum(99)
        self.markerSize_spinBox.setProperty("value", 1)
        self.markerSize_spinBox.setObjectName(_fromUtf8("markerSize_spinBox"))
        self.horizontalLayout_8.addWidget(self.markerSize_spinBox)
        self.verticalLayout_4.addLayout(self.horizontalLayout_8)
        self.horizontalLayout_9 = QtGui.QHBoxLayout()
        self.horizontalLayout_9.setObjectName(_fromUtf8("horizontalLayout_9"))
        self.labelMarker_3 = QtGui.QLabel(self.frame)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.labelMarker_3.sizePolicy().hasHeightForWidth())
        self.labelMarker_3.setSizePolicy(sizePolicy)
        self.labelMarker_3.setMaximumSize(QtCore.QSize(42, 24))
        self.labelMarker_3.setObjectName(_fromUtf8("labelMarker_3"))
        self.horizontalLayout_9.addWidget(self.labelMarker_3)
        self.markerAlpha_spinBox = QtGui.QSpinBox(self.frame)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.markerAlpha_spinBox.sizePolicy().hasHeightForWidth())
        self.markerAlpha_spinBox.setSizePolicy(sizePolicy)
        self.markerAlpha_spinBox.setMinimum(0)
        self.markerAlpha_spinBox.setMaximum(255)
        self.markerAlpha_spinBox.setProperty("value", 255)
        self.markerAlpha_spinBox.setObjectName(
            _fromUtf8("markerAlpha_spinBox"))
        self.horizontalLayout_9.addWidget(self.markerAlpha_spinBox)
        self.verticalLayout_4.addLayout(self.horizontalLayout_9)
        self.horizontalLayout_12 = QtGui.QHBoxLayout()
        self.horizontalLayout_12.setObjectName(
            _fromUtf8("horizontalLayout_12"))
        self.labelMarker_5 = QtGui.QLabel(self.frame)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.labelMarker_5.sizePolicy().hasHeightForWidth())
        self.labelMarker_5.setSizePolicy(sizePolicy)
        self.labelMarker_5.setMaximumSize(QtCore.QSize(42, 24))
        self.labelMarker_5.setObjectName(_fromUtf8("labelMarker_5"))
        self.horizontalLayout_12.addWidget(self.labelMarker_5)
        self.lineWidth_spinBox = QtGui.QSpinBox(self.frame)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.lineWidth_spinBox.sizePolicy().hasHeightForWidth())
        self.lineWidth_spinBox.setSizePolicy(sizePolicy)
        self.lineWidth_spinBox.setMinimum(1)
        self.lineWidth_spinBox.setMaximum(25)
        self.lineWidth_spinBox.setProperty("value", 2)
        self.lineWidth_spinBox.setObjectName(_fromUtf8("lineWidth_spinBox"))
        self.horizontalLayout_12.addWidget(self.lineWidth_spinBox)
        self.verticalLayout_4.addLayout(self.horizontalLayout_12)
        self.markerColor_pushButton = QtGui.QPushButton(self.frame)
        self.markerColor_pushButton.setObjectName(
            _fromUtf8("markerColor_pushButton"))
        self.verticalLayout_4.addWidget(self.markerColor_pushButton)
        self.horizontalLayout_10.addWidget(self.frame)
        self.verticalLayout_5.addLayout(self.horizontalLayout_10)
        spacerItem1 = QtGui.QSpacerItem(20, 204, QtGui.QSizePolicy.Minimum,
                                        QtGui.QSizePolicy.Expanding)
        self.verticalLayout_5.addItem(spacerItem1)
        self.tabWidget.addTab(self.pointsSettingsTab, _fromUtf8(""))
        self.axisSetingsTab = QtGui.QWidget()
        self.axisSetingsTab.setObjectName(_fromUtf8("axisSetingsTab"))
        self.groupBoxAxisRatio = QtGui.QGroupBox(self.axisSetingsTab)
        self.groupBoxAxisRatio.setGeometry(QtCore.QRect(10, 10, 131, 121))
        self.groupBoxAxisRatio.setObjectName(_fromUtf8("groupBoxAxisRatio"))
        self.layoutWidget3 = QtGui.QWidget(self.groupBoxAxisRatio)
        self.layoutWidget3.setGeometry(QtCore.QRect(10, 30, 110, 22))
        self.layoutWidget3.setObjectName(_fromUtf8("layoutWidget3"))
        self.horizontalLayout = QtGui.QHBoxLayout(self.layoutWidget3)
        self.horizontalLayout.setMargin(0)
        self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
        self.axisRatioLabel_1 = QtGui.QLabel(self.layoutWidget3)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.axisRatioLabel_1.sizePolicy().hasHeightForWidth())
        self.axisRatioLabel_1.setSizePolicy(sizePolicy)
        self.axisRatioLabel_1.setMinimumSize(QtCore.QSize(71, 16))
        self.axisRatioLabel_1.setMaximumSize(QtCore.QSize(71, 16))
        self.axisRatioLabel_1.setLayoutDirection(QtCore.Qt.LeftToRight)
        self.axisRatioLabel_1.setAlignment(QtCore.Qt.AlignRight
                                           | QtCore.Qt.AlignTrailing
                                           | QtCore.Qt.AlignVCenter)
        self.axisRatioLabel_1.setObjectName(_fromUtf8("axisRatioLabel_1"))
        self.horizontalLayout.addWidget(self.axisRatioLabel_1)
        self.axisRatioLineEdit_1 = QtGui.QLineEdit(self.layoutWidget3)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.axisRatioLineEdit_1.sizePolicy().hasHeightForWidth())
        self.axisRatioLineEdit_1.setSizePolicy(sizePolicy)
        self.axisRatioLineEdit_1.setMaximumSize(QtCore.QSize(31, 20))
        self.axisRatioLineEdit_1.setInputMethodHints(
            QtCore.Qt.ImhPreferNumbers)
        self.axisRatioLineEdit_1.setObjectName(
            _fromUtf8("axisRatioLineEdit_1"))
        self.horizontalLayout.addWidget(self.axisRatioLineEdit_1)
        self.layoutWidget4 = QtGui.QWidget(self.groupBoxAxisRatio)
        self.layoutWidget4.setGeometry(QtCore.QRect(10, 50, 110, 22))
        self.layoutWidget4.setObjectName(_fromUtf8("layoutWidget4"))
        self.horizontalLayout_2 = QtGui.QHBoxLayout(self.layoutWidget4)
        self.horizontalLayout_2.setMargin(0)
        self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2"))
        self.axisRatioLabel_2 = QtGui.QLabel(self.layoutWidget4)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.axisRatioLabel_2.sizePolicy().hasHeightForWidth())
        self.axisRatioLabel_2.setSizePolicy(sizePolicy)
        self.axisRatioLabel_2.setMinimumSize(QtCore.QSize(71, 16))
        self.axisRatioLabel_2.setMaximumSize(QtCore.QSize(71, 16))
        self.axisRatioLabel_2.setAlignment(QtCore.Qt.AlignRight
                                           | QtCore.Qt.AlignTrailing
                                           | QtCore.Qt.AlignVCenter)
        self.axisRatioLabel_2.setObjectName(_fromUtf8("axisRatioLabel_2"))
        self.horizontalLayout_2.addWidget(self.axisRatioLabel_2)
        self.axisRatioLineEdit_2 = QtGui.QLineEdit(self.layoutWidget4)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.axisRatioLineEdit_2.sizePolicy().hasHeightForWidth())
        self.axisRatioLineEdit_2.setSizePolicy(sizePolicy)
        self.axisRatioLineEdit_2.setMaximumSize(QtCore.QSize(31, 20))
        self.axisRatioLineEdit_2.setInputMethodHints(
            QtCore.Qt.ImhPreferNumbers)
        self.axisRatioLineEdit_2.setObjectName(
            _fromUtf8("axisRatioLineEdit_2"))
        self.horizontalLayout_2.addWidget(self.axisRatioLineEdit_2)
        self.layoutWidget5 = QtGui.QWidget(self.groupBoxAxisRatio)
        self.layoutWidget5.setGeometry(QtCore.QRect(10, 70, 110, 22))
        self.layoutWidget5.setObjectName(_fromUtf8("layoutWidget5"))
        self.horizontalLayout_3 = QtGui.QHBoxLayout(self.layoutWidget5)
        self.horizontalLayout_3.setMargin(0)
        self.horizontalLayout_3.setObjectName(_fromUtf8("horizontalLayout_3"))
        self.axisRatioLabel_3 = QtGui.QLabel(self.layoutWidget5)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.axisRatioLabel_3.sizePolicy().hasHeightForWidth())
        self.axisRatioLabel_3.setSizePolicy(sizePolicy)
        self.axisRatioLabel_3.setMinimumSize(QtCore.QSize(71, 16))
        self.axisRatioLabel_3.setMaximumSize(QtCore.QSize(71, 16))
        self.axisRatioLabel_3.setAlignment(QtCore.Qt.AlignRight
                                           | QtCore.Qt.AlignTrailing
                                           | QtCore.Qt.AlignVCenter)
        self.axisRatioLabel_3.setObjectName(_fromUtf8("axisRatioLabel_3"))
        self.horizontalLayout_3.addWidget(self.axisRatioLabel_3)
        self.axisRatioLineEdit_3 = QtGui.QLineEdit(self.layoutWidget5)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.axisRatioLineEdit_3.sizePolicy().hasHeightForWidth())
        self.axisRatioLineEdit_3.setSizePolicy(sizePolicy)
        self.axisRatioLineEdit_3.setMaximumSize(QtCore.QSize(31, 20))
        self.axisRatioLineEdit_3.setInputMethodHints(
            QtCore.Qt.ImhPreferNumbers)
        self.axisRatioLineEdit_3.setObjectName(
            _fromUtf8("axisRatioLineEdit_3"))
        self.horizontalLayout_3.addWidget(self.axisRatioLineEdit_3)
        self.groupBoxFlip = QtGui.QGroupBox(self.axisSetingsTab)
        self.groupBoxFlip.setEnabled(True)
        self.groupBoxFlip.setGeometry(QtCore.QRect(150, 10, 81, 121))
        self.groupBoxFlip.setToolTip(_fromUtf8(""))
        self.groupBoxFlip.setObjectName(_fromUtf8("groupBoxFlip"))
        self.layoutWidget6 = QtGui.QWidget(self.groupBoxFlip)
        self.layoutWidget6.setGeometry(QtCore.QRect(20, 20, 43, 92))
        self.layoutWidget6.setObjectName(_fromUtf8("layoutWidget6"))
        self.verticalLayout = QtGui.QVBoxLayout(self.layoutWidget6)
        self.verticalLayout.setMargin(0)
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.pushButton_FlipView1 = QtGui.QPushButton(self.layoutWidget6)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.pushButton_FlipView1.sizePolicy().hasHeightForWidth())
        self.pushButton_FlipView1.setSizePolicy(sizePolicy)
        self.pushButton_FlipView1.setMaximumSize(QtCore.QSize(41, 16777215))
        font = QtGui.QFont()
        font.setPointSize(7)
        self.pushButton_FlipView1.setFont(font)
        self.pushButton_FlipView1.setCheckable(True)
        self.pushButton_FlipView1.setObjectName(
            _fromUtf8("pushButton_FlipView1"))
        self.verticalLayout.addWidget(self.pushButton_FlipView1)
        self.pushButton_FlipView2 = QtGui.QPushButton(self.layoutWidget6)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.pushButton_FlipView2.sizePolicy().hasHeightForWidth())
        self.pushButton_FlipView2.setSizePolicy(sizePolicy)
        self.pushButton_FlipView2.setMaximumSize(QtCore.QSize(41, 16777215))
        font = QtGui.QFont()
        font.setPointSize(7)
        self.pushButton_FlipView2.setFont(font)
        self.pushButton_FlipView2.setCheckable(True)
        self.pushButton_FlipView2.setObjectName(
            _fromUtf8("pushButton_FlipView2"))
        self.verticalLayout.addWidget(self.pushButton_FlipView2)
        self.pushButton_FlipView3 = QtGui.QPushButton(self.layoutWidget6)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.pushButton_FlipView3.sizePolicy().hasHeightForWidth())
        self.pushButton_FlipView3.setSizePolicy(sizePolicy)
        self.pushButton_FlipView3.setMaximumSize(QtCore.QSize(41, 16777215))
        font = QtGui.QFont()
        font.setPointSize(7)
        self.pushButton_FlipView3.setFont(font)
        self.pushButton_FlipView3.setCheckable(True)
        self.pushButton_FlipView3.setObjectName(
            _fromUtf8("pushButton_FlipView3"))
        self.verticalLayout.addWidget(self.pushButton_FlipView3)
        self.tabWidget.addTab(self.axisSetingsTab, _fromUtf8(""))
        self.verticalLayout_2.addWidget(self.tabWidget)
        self.mainDockWidget.setWidget(self.dockWidgetContents)
        lasagna_mainWindow.addDockWidget(QtCore.Qt.DockWidgetArea(1),
                                         self.mainDockWidget)
        self.toolBar = QtGui.QToolBar(lasagna_mainWindow)
        self.toolBar.setObjectName(_fromUtf8("toolBar"))
        lasagna_mainWindow.addToolBar(QtCore.Qt.TopToolBarArea, self.toolBar)
        self.statusBar = QtGui.QStatusBar(lasagna_mainWindow)
        self.statusBar.setObjectName(_fromUtf8("statusBar"))
        lasagna_mainWindow.setStatusBar(self.statusBar)
        self.actionOpen = QtGui.QAction(lasagna_mainWindow)
        icon1 = QtGui.QIcon()
        icon1.addPixmap(
            QtGui.QPixmap(_fromUtf8(":/actions/icons/document-open.png")),
            QtGui.QIcon.Normal, QtGui.QIcon.On)
        self.actionOpen.setIcon(icon1)
        self.actionOpen.setObjectName(_fromUtf8("actionOpen"))
        self.actionAbout = QtGui.QAction(lasagna_mainWindow)
        self.actionAbout.setObjectName(_fromUtf8("actionAbout"))
        self.actionQuit = QtGui.QAction(lasagna_mainWindow)
        icon2 = QtGui.QIcon()
        icon2.addPixmap(
            QtGui.QPixmap(_fromUtf8(":/actions/icons/window-close.png")),
            QtGui.QIcon.Normal, QtGui.QIcon.On)
        self.actionQuit.setIcon(icon2)
        self.actionQuit.setObjectName(_fromUtf8("actionQuit"))
        self.action_ARA_Explorer = QtGui.QAction(lasagna_mainWindow)
        self.action_ARA_Explorer.setCheckable(True)
        self.action_ARA_Explorer.setObjectName(
            _fromUtf8("action_ARA_Explorer"))
        self.actionResetAxes = QtGui.QAction(lasagna_mainWindow)
        icon3 = QtGui.QIcon()
        icon3.addPixmap(
            QtGui.QPixmap(_fromUtf8(":/actions/icons/edit-redo.png")),
            QtGui.QIcon.Normal, QtGui.QIcon.On)
        self.actionResetAxes.setIcon(icon3)
        self.actionResetAxes.setObjectName(_fromUtf8("actionResetAxes"))
        self.actionLoadOverlay = QtGui.QAction(lasagna_mainWindow)
        self.actionLoadOverlay.setEnabled(False)
        icon4 = QtGui.QIcon()
        icon4.addPixmap(
            QtGui.QPixmap(_fromUtf8(":/actions/icons/overlay.png")),
            QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionLoadOverlay.setIcon(icon4)
        self.actionLoadOverlay.setShortcut(_fromUtf8(""))
        self.actionLoadOverlay.setObjectName(_fromUtf8("actionLoadOverlay"))
        self.actionRemoveOverlay = QtGui.QAction(lasagna_mainWindow)
        self.actionRemoveOverlay.setEnabled(False)
        icon5 = QtGui.QIcon()
        icon5.addPixmap(
            QtGui.QPixmap(_fromUtf8(":/actions/icons/removeoverlay.png")),
            QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionRemoveOverlay.setIcon(icon5)
        self.actionRemoveOverlay.setObjectName(
            _fromUtf8("actionRemoveOverlay"))
        self.actionNone = QtGui.QAction(lasagna_mainWindow)
        self.actionNone.setObjectName(_fromUtf8("actionNone"))
        self.actionOpen_2 = QtGui.QAction(lasagna_mainWindow)
        self.actionOpen_2.setObjectName(_fromUtf8("actionOpen_2"))
        self.menuLoad_ingredient.addAction(self.actionOpen)
        self.menuFile.addAction(self.menuLoad_ingredient.menuAction())
        self.menuFile.addAction(self.menuOpen_recent.menuAction())
        self.menuFile.addAction(self.actionQuit)
        self.menuHelp.addAction(self.actionAbout)
        self.menuBar.addAction(self.menuFile.menuAction())
        self.menuBar.addAction(self.menuPlugins.menuAction())
        self.menuBar.addAction(self.menuHelp.menuAction())
        self.toolBar.addAction(self.actionResetAxes)
        self.toolBar.addSeparator()

        self.retranslateUi(lasagna_mainWindow)
        self.tabWidget.setCurrentIndex(1)
        QtCore.QMetaObject.connectSlotsByName(lasagna_mainWindow)

    def retranslateUi(self, lasagna_mainWindow):
        lasagna_mainWindow.setWindowTitle(
            _translate("lasagna_mainWindow", "MainWindow", None))
        self.menuFile.setTitle(_translate("lasagna_mainWindow", "&File", None))
        self.menuOpen_recent.setTitle(
            _translate("lasagna_mainWindow", "&Open recent", None))
        self.menuLoad_ingredient.setTitle(
            _translate("lasagna_mainWindow", "&Load ingredient", None))
        self.menuHelp.setTitle(_translate("lasagna_mainWindow", "Help", None))
        self.menuPlugins.setTitle(
            _translate("lasagna_mainWindow", "&Plugins", None))
        self.logYcheckBox.setText(
            _translate("lasagna_mainWindow", "Log Y", None))
        self.tabWidget.setTabText(
            self.tabWidget.indexOf(self.imageSettingsTab),
            _translate("lasagna_mainWindow", "Image", None))
        self.groupBoxAxisRatio_2.setTitle(
            _translate("lasagna_mainWindow", "z-spread", None))
        self.axisRatioLabel_4.setText(
            _translate("lasagna_mainWindow", "View 1", None))
        self.axisRatioLabel_5.setText(
            _translate("lasagna_mainWindow", "View 2", None))
        self.axisRatioLabel_6.setText(
            _translate("lasagna_mainWindow", "View 3", None))
        self.labelMarker.setText(
            _translate("lasagna_mainWindow", "Marker", None))
        self.labelMarker_2.setText(
            _translate("lasagna_mainWindow", "Size", None))
        self.labelMarker_3.setText(
            _translate("lasagna_mainWindow", "Alpha", None))
        self.labelMarker_5.setText(
            _translate("lasagna_mainWindow", "Width", None))
        self.markerColor_pushButton.setText(
            _translate("lasagna_mainWindow", "Color", None))
        self.tabWidget.setTabText(
            self.tabWidget.indexOf(self.pointsSettingsTab),
            _translate("lasagna_mainWindow", "Points", None))
        self.groupBoxAxisRatio.setTitle(
            _translate("lasagna_mainWindow", "Axis ratios", None))
        self.axisRatioLabel_1.setText(
            _translate("lasagna_mainWindow", "View 1", None))
        self.axisRatioLineEdit_1.setText(
            _translate("lasagna_mainWindow", "1", None))
        self.axisRatioLabel_2.setText(
            _translate("lasagna_mainWindow", "View 2", None))
        self.axisRatioLineEdit_2.setText(
            _translate("lasagna_mainWindow", "2", None))
        self.axisRatioLabel_3.setText(
            _translate("lasagna_mainWindow", "View 3", None))
        self.axisRatioLineEdit_3.setText(
            _translate("lasagna_mainWindow", "0.5", None))
        self.groupBoxFlip.setTitle(
            _translate("lasagna_mainWindow", "Flip Stacks", None))
        self.pushButton_FlipView1.setText(
            _translate("lasagna_mainWindow", "View 1", None))
        self.pushButton_FlipView2.setText(
            _translate("lasagna_mainWindow", "View 2", None))
        self.pushButton_FlipView3.setText(
            _translate("lasagna_mainWindow", "View 3", None))
        self.tabWidget.setTabText(
            self.tabWidget.indexOf(self.axisSetingsTab),
            _translate("lasagna_mainWindow", "Axis", None))
        self.toolBar.setWindowTitle(
            _translate("lasagna_mainWindow", "toolBar", None))
        self.actionOpen.setText(
            _translate("lasagna_mainWindow", "&New base stack", None))
        self.actionAbout.setText(
            _translate("lasagna_mainWindow", "About", None))
        self.actionQuit.setText(_translate("lasagna_mainWindow", "&Quit",
                                           None))
        self.action_ARA_Explorer.setText(
            _translate("lasagna_mainWindow", "&ARA Explorer", None))
        self.actionResetAxes.setText(
            _translate("lasagna_mainWindow", "resetAxes", None))
        self.actionResetAxes.setToolTip(
            _translate("lasagna_mainWindow", "reset axes", None))
        self.actionResetAxes.setShortcut(
            _translate("lasagna_mainWindow", "Ctrl+R", None))
        self.actionLoadOverlay.setText(
            _translate("lasagna_mainWindow", "&Load overlay", None))
        self.actionRemoveOverlay.setText(
            _translate("lasagna_mainWindow", "removeOverlay", None))
        self.actionRemoveOverlay.setToolTip(
            _translate("lasagna_mainWindow", "removeOverlay", None))
        self.actionNone.setText(_translate("lasagna_mainWindow", "none", None))
        self.actionOpen_2.setText(
            _translate("lasagna_mainWindow", "Open", None))
Пример #18
0
class Ui_MainWindow(object):
    def setupUi(self, MainWindow):
        MainWindow.setObjectName("MainWindow")
        MainWindow.resize(1366, 944)
        self.centralwidget = QtWidgets.QWidget(MainWindow)
        self.centralwidget.setObjectName("centralwidget")
        self.gridLayout = QtWidgets.QGridLayout(self.centralwidget)
        self.gridLayout.setObjectName("gridLayout")
        self.frame = QtWidgets.QFrame(self.centralwidget)
        self.frame.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.frame.setFrameShape(QtWidgets.QFrame.StyledPanel)
        self.frame.setFrameShadow(QtWidgets.QFrame.Raised)
        self.frame.setObjectName("frame")
        self.gridLayout_2 = QtWidgets.QGridLayout(self.frame)
        self.gridLayout_2.setObjectName("gridLayout_2")
        self.frame_3 = QtWidgets.QFrame(self.frame)
        self.frame_3.setFrameShape(QtWidgets.QFrame.StyledPanel)
        self.frame_3.setFrameShadow(QtWidgets.QFrame.Raised)
        self.frame_3.setObjectName("frame_3")
        self.spectro1 = QtWidgets.QLabel(self.frame_3)
        self.spectro1.setGeometry(QtCore.QRect(10, 10, 632, 304))
        self.spectro1.setMaximumSize(QtCore.QSize(632, 304))
        self.spectro1.setText("")
        self.spectro1.setPixmap(QtGui.QPixmap("black.png"))
        self.spectro1.setScaledContents(True)
        self.spectro1.setObjectName("spectro1")
        self.gridLayout_2.addWidget(self.frame_3, 0, 1, 1, 1)
        self.frame_5 = QtWidgets.QFrame(self.frame)
        self.frame_5.setMinimumSize(QtCore.QSize(657, 328))
        self.frame_5.setFrameShape(QtWidgets.QFrame.StyledPanel)
        self.frame_5.setFrameShadow(QtWidgets.QFrame.Raised)
        self.frame_5.setObjectName("frame_5")
        self.sig2 = PlotWidget(self.frame_5)
        self.sig2.setGeometry(QtCore.QRect(10, 14, 633, 149))
        self.sig2.setMaximumSize(QtCore.QSize(633, 304))
        self.sig2.setObjectName("sig2")
        self.fourier2 = PlotWidget(self.frame_5)
        self.fourier2.setGeometry(QtCore.QRect(10, 170, 633, 148))
        self.fourier2.setMinimumSize(QtCore.QSize(633, 148))
        self.fourier2.setMaximumSize(QtCore.QSize(633, 304))
        self.fourier2.setObjectName("fourier2")
        self.gridLayout_2.addWidget(self.frame_5, 2, 0, 1, 1)
        self.frame_7 = QtWidgets.QFrame(self.frame)
        self.frame_7.setMaximumSize(QtCore.QSize(16777215, 50))
        self.frame_7.setFrameShape(QtWidgets.QFrame.StyledPanel)
        self.frame_7.setFrameShadow(QtWidgets.QFrame.Raised)
        self.frame_7.setObjectName("frame_7")
        self.gridLayout_8 = QtWidgets.QGridLayout(self.frame_7)
        self.gridLayout_8.setObjectName("gridLayout_8")
        spacerItem = QtWidgets.QSpacerItem(887, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
        self.gridLayout_8.addItem(spacerItem, 0, 11, 1, 1)
        self.right = QtWidgets.QPushButton(self.frame_7)
        self.right.setStyleSheet("border-image: url(right.png)")
        self.right.setText("")
        self.right.setObjectName("right")
        self.gridLayout_8.addWidget(self.right, 0, 5, 1, 1)
        self.pause2 = QtWidgets.QPushButton(self.frame_7)
        self.pause2.setStyleSheet("border-image: url(stop.png)")
        self.pause2.setText("")
        self.pause2.setObjectName("pause2")
        self.gridLayout_8.addWidget(self.pause2, 0, 0, 1, 1)
        self.left = QtWidgets.QPushButton(self.frame_7)
        self.left.setStyleSheet("border-image: url(left.png)")
        self.left.setText("")
        self.left.setObjectName("left")
        self.gridLayout_8.addWidget(self.left, 0, 4, 1, 1)
        self.up = QtWidgets.QPushButton(self.frame_7)
        self.up.setStyleSheet("border-image: url(up.png)")
        self.up.setText("")
        self.up.setObjectName("up")
        self.gridLayout_8.addWidget(self.up, 0, 2, 1, 1)
        self.zoom_in = QtWidgets.QPushButton(self.frame_7)
        self.zoom_in.setStyleSheet("border-image: url(plus.png)")
        self.zoom_in.setText("")
        self.zoom_in.setObjectName("zoom_in")
        self.gridLayout_8.addWidget(self.zoom_in, 0, 6, 1, 1)
        self.down = QtWidgets.QPushButton(self.frame_7)
        self.down.setStyleSheet("border-image: url(down.png)")
        self.down.setText("")
        self.down.setObjectName("down")
        self.gridLayout_8.addWidget(self.down, 0, 3, 1, 1)
        self.zoom_out = QtWidgets.QPushButton(self.frame_7)
        self.zoom_out.setStyleSheet("border-image: url(minus.png)")
        self.zoom_out.setText("")
        self.zoom_out.setObjectName("zoom_out")
        self.gridLayout_8.addWidget(self.zoom_out, 0, 7, 1, 1)
        self.speed_slow = QtWidgets.QPushButton(self.frame_7)
        self.speed_slow.setMaximumSize(QtCore.QSize(32, 23))
        font = QtGui.QFont()
        font.setFamily("Myanmar Text")
        font.setPointSize(8)
        font.setBold(True)
        font.setWeight(75)
        self.speed_slow.setFont(font)
        self.speed_slow.setObjectName("speed_slow")
        self.gridLayout_8.addWidget(self.speed_slow, 0, 8, 1, 1)
        self.default_speed = QtWidgets.QPushButton(self.frame_7)
        self.default_speed.setMaximumSize(QtCore.QSize(32, 23))
        font = QtGui.QFont()
        font.setFamily("Myanmar Text")
        font.setPointSize(8)
        font.setBold(True)
        font.setWeight(75)
        self.default_speed.setFont(font)
        self.default_speed.setObjectName("default_speed")
        self.gridLayout_8.addWidget(self.default_speed, 0, 9, 1, 1)
        self.fast_speed = QtWidgets.QPushButton(self.frame_7)
        self.fast_speed.setMaximumSize(QtCore.QSize(32, 23))
        font = QtGui.QFont()
        font.setFamily("Myanmar Text")
        font.setPointSize(8)
        font.setBold(True)
        font.setWeight(75)
        self.fast_speed.setFont(font)
        self.fast_speed.setObjectName("fast_speed")
        self.gridLayout_8.addWidget(self.fast_speed, 0, 10, 1, 1)
        self.play2 = QtWidgets.QPushButton(self.frame_7)
        self.play2.setStyleSheet("border-image: url(play1.png)")
        self.play2.setText("")
        self.play2.setObjectName("play2")
        self.gridLayout_8.addWidget(self.play2, 0, 1, 1, 1)
        self.gridLayout_2.addWidget(self.frame_7, 3, 0, 1, 2)
        self.frame_6 = QtWidgets.QFrame(self.frame)
        self.frame_6.setFrameShape(QtWidgets.QFrame.StyledPanel)
        self.frame_6.setFrameShadow(QtWidgets.QFrame.Raised)
        self.frame_6.setObjectName("frame_6")
        self.gridLayout_7 = QtWidgets.QGridLayout(self.frame_6)
        self.gridLayout_7.setObjectName("gridLayout_7")
        self.spectro2 = QtWidgets.QLabel(self.frame_6)
        self.spectro2.setMaximumSize(QtCore.QSize(632, 304))
        self.spectro2.setText("")
        self.spectro2.setPixmap(QtGui.QPixmap("black.png"))
        self.spectro2.setScaledContents(True)
        self.spectro2.setObjectName("spectro2")
        self.gridLayout_7.addWidget(self.spectro2, 0, 0, 1, 1)
        self.gridLayout_2.addWidget(self.frame_6, 2, 1, 1, 1)
        self.frame_4 = QtWidgets.QFrame(self.frame)
        self.frame_4.setMinimumSize(QtCore.QSize(1320, 120))
        self.frame_4.setMaximumSize(QtCore.QSize(1320, 120))
        self.frame_4.setFrameShape(QtWidgets.QFrame.StyledPanel)
        self.frame_4.setFrameShadow(QtWidgets.QFrame.Raised)
        self.frame_4.setObjectName("frame_4")
        self.play1 = QtWidgets.QPushButton(self.frame_4)
        self.play1.setGeometry(QtCore.QRect(70, 40, 41, 28))
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.play1.sizePolicy().hasHeightForWidth())
        self.play1.setSizePolicy(sizePolicy)
        self.play1.setMaximumSize(QtCore.QSize(41, 28))
        self.play1.setStyleSheet("border-image: url(play1.png)")
        self.play1.setText("")
        self.play1.setObjectName("play1")
        self.s1 = QtWidgets.QSlider(self.frame_4)
        self.s1.setGeometry(QtCore.QRect(285, 12, 22, 84))
        self.s1.setMaximum(5)
        self.s1.setSliderPosition(1)
        self.s1.setOrientation(QtCore.Qt.Vertical)
        self.s1.setTickPosition(QtWidgets.QSlider.TicksAbove)
        self.s1.setObjectName("s1")
        self.s2 = QtWidgets.QSlider(self.frame_4)
        self.s2.setGeometry(QtCore.QRect(373, 12, 22, 84))
        self.s2.setMaximum(5)
        self.s2.setSliderPosition(1)
        self.s2.setOrientation(QtCore.Qt.Vertical)
        self.s2.setTickPosition(QtWidgets.QSlider.TicksAbove)
        self.s2.setObjectName("s2")
        self.s3 = QtWidgets.QSlider(self.frame_4)
        self.s3.setGeometry(QtCore.QRect(461, 12, 22, 84))
        self.s3.setMaximum(5)
        self.s3.setSliderPosition(1)
        self.s3.setOrientation(QtCore.Qt.Vertical)
        self.s3.setTickPosition(QtWidgets.QSlider.TicksAbove)
        self.s3.setObjectName("s3")
        self.s4 = QtWidgets.QSlider(self.frame_4)
        self.s4.setGeometry(QtCore.QRect(549, 12, 22, 84))
        self.s4.setMaximum(5)
        self.s4.setSliderPosition(1)
        self.s4.setOrientation(QtCore.Qt.Vertical)
        self.s4.setTickPosition(QtWidgets.QSlider.TicksAbove)
        self.s4.setObjectName("s4")
        self.s5 = QtWidgets.QSlider(self.frame_4)
        self.s5.setGeometry(QtCore.QRect(637, 12, 22, 84))
        self.s5.setMaximum(5)
        self.s5.setSliderPosition(1)
        self.s5.setOrientation(QtCore.Qt.Vertical)
        self.s5.setTickPosition(QtWidgets.QSlider.TicksAbove)
        self.s5.setObjectName("s5")
        self.s6 = QtWidgets.QSlider(self.frame_4)
        self.s6.setGeometry(QtCore.QRect(725, 12, 22, 84))
        self.s6.setMaximum(5)
        self.s6.setSliderPosition(1)
        self.s6.setOrientation(QtCore.Qt.Vertical)
        self.s6.setTickPosition(QtWidgets.QSlider.TicksAbove)
        self.s6.setObjectName("s6")
        self.s7 = QtWidgets.QSlider(self.frame_4)
        self.s7.setGeometry(QtCore.QRect(813, 12, 22, 84))
        self.s7.setMaximum(5)
        self.s7.setSliderPosition(1)
        self.s7.setOrientation(QtCore.Qt.Vertical)
        self.s7.setTickPosition(QtWidgets.QSlider.TicksAbove)
        self.s7.setObjectName("s7")
        self.s8 = QtWidgets.QSlider(self.frame_4)
        self.s8.setGeometry(QtCore.QRect(901, 12, 22, 84))
        self.s8.setMaximum(5)
        self.s8.setSliderPosition(1)
        self.s8.setOrientation(QtCore.Qt.Vertical)
        self.s8.setTickPosition(QtWidgets.QSlider.TicksAbove)
        self.s8.setObjectName("s8")
        self.s9 = QtWidgets.QSlider(self.frame_4)
        self.s9.setGeometry(QtCore.QRect(989, 12, 22, 84))
        self.s9.setMaximumSize(QtCore.QSize(22, 84))
        self.s9.setMaximum(5)
        self.s9.setSliderPosition(1)
        self.s9.setOrientation(QtCore.Qt.Vertical)
        self.s9.setTickPosition(QtWidgets.QSlider.TicksAbove)
        self.s9.setObjectName("s9")
        self.s10 = QtWidgets.QSlider(self.frame_4)
        self.s10.setGeometry(QtCore.QRect(1077, 12, 22, 84))
        self.s10.setMaximum(5)
        self.s10.setSliderPosition(1)
        self.s10.setOrientation(QtCore.Qt.Vertical)
        self.s10.setTickPosition(QtWidgets.QSlider.TicksAbove)
        self.s10.setObjectName("s10")
        self.color = QtWidgets.QComboBox(self.frame_4)
        self.color.setGeometry(QtCore.QRect(1110, 10, 72, 22))
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.color.sizePolicy().hasHeightForWidth())
        self.color.setSizePolicy(sizePolicy)
        self.color.setMaximumSize(QtCore.QSize(72, 22))
        self.color.setObjectName("color")
        self.color.addItem("")
        self.color.addItem("")
        self.color.addItem("")
        self.color.addItem("")
        self.color.addItem("")
        self.pause1 = QtWidgets.QPushButton(self.frame_4)
        self.pause1.setGeometry(QtCore.QRect(10, 40, 41, 28))
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.pause1.sizePolicy().hasHeightForWidth())
        self.pause1.setSizePolicy(sizePolicy)
        self.pause1.setMaximumSize(QtCore.QSize(41, 28))
        self.pause1.setStyleSheet("border-image: url(stop.png)")
        self.pause1.setText("")
        self.pause1.setObjectName("pause1")
        self.checkBox = QtWidgets.QCheckBox(self.frame_4)
        self.checkBox.setGeometry(QtCore.QRect(140, 40, 81, 20))
        self.checkBox.setMaximumSize(QtCore.QSize(81, 20))
        self.checkBox.setObjectName("checkBox")
        self.max_spectro_slider = QtWidgets.QSlider(self.frame_4)
        self.max_spectro_slider.setGeometry(QtCore.QRect(1200, 20, 22, 84))
        self.max_spectro_slider.setMaximumSize(QtCore.QSize(22, 84))
        self.max_spectro_slider.setMinimum(-100)
        self.max_spectro_slider.setMaximum(0)
        self.max_spectro_slider.setProperty("value", -100)
        self.max_spectro_slider.setSliderPosition(-100)
        self.max_spectro_slider.setOrientation(QtCore.Qt.Vertical)
        self.max_spectro_slider.setTickPosition(QtWidgets.QSlider.TicksAbove)
        self.max_spectro_slider.setObjectName("max_spectro_slider")
        self.min_spectro_slider = QtWidgets.QSlider(self.frame_4)
        self.min_spectro_slider.setGeometry(QtCore.QRect(1250, 20, 22, 84))
        self.min_spectro_slider.setMaximumSize(QtCore.QSize(22, 84))
        self.min_spectro_slider.setMinimum(-100)
        self.min_spectro_slider.setMaximum(0)
        self.min_spectro_slider.setProperty("value", -20)
        self.min_spectro_slider.setSliderPosition(-20)
        self.min_spectro_slider.setOrientation(QtCore.Qt.Vertical)
        self.min_spectro_slider.setTickPosition(QtWidgets.QSlider.TicksAbove)
        self.min_spectro_slider.setObjectName("min_spectro_slider")
        self.gain1 = QtWidgets.QLabel(self.frame_4)
        self.gain1.setGeometry(QtCore.QRect(290, 100, 21, 16))
        self.gain1.setObjectName("gain1")
        self.gain2 = QtWidgets.QLabel(self.frame_4)
        self.gain2.setGeometry(QtCore.QRect(380, 100, 21, 16))
        self.gain2.setObjectName("gain2")
        self.gain3 = QtWidgets.QLabel(self.frame_4)
        self.gain3.setGeometry(QtCore.QRect(460, 100, 21, 16))
        self.gain3.setObjectName("gain3")
        self.gain4 = QtWidgets.QLabel(self.frame_4)
        self.gain4.setGeometry(QtCore.QRect(550, 100, 21, 16))
        self.gain4.setObjectName("gain4")
        self.gain5 = QtWidgets.QLabel(self.frame_4)
        self.gain5.setGeometry(QtCore.QRect(640, 100, 21, 16))
        self.gain5.setObjectName("gain5")
        self.gain6 = QtWidgets.QLabel(self.frame_4)
        self.gain6.setGeometry(QtCore.QRect(730, 100, 21, 16))
        self.gain6.setObjectName("gain6")
        self.gain7 = QtWidgets.QLabel(self.frame_4)
        self.gain7.setGeometry(QtCore.QRect(820, 100, 21, 16))
        self.gain7.setObjectName("gain7")
        self.gain8 = QtWidgets.QLabel(self.frame_4)
        self.gain8.setGeometry(QtCore.QRect(910, 100, 21, 16))
        self.gain8.setObjectName("gain8")
        self.gain9 = QtWidgets.QLabel(self.frame_4)
        self.gain9.setGeometry(QtCore.QRect(990, 100, 21, 16))
        self.gain9.setObjectName("gain9")
        self.gain10 = QtWidgets.QLabel(self.frame_4)
        self.gain10.setGeometry(QtCore.QRect(1080, 100, 21, 16))
        self.gain10.setObjectName("gain10")
        self.gridLayout_2.addWidget(self.frame_4, 1, 0, 1, 2)
        self.frame_2 = QtWidgets.QFrame(self.frame)
        self.frame_2.setMinimumSize(QtCore.QSize(657, 328))
        self.frame_2.setFrameShape(QtWidgets.QFrame.StyledPanel)
        self.frame_2.setFrameShadow(QtWidgets.QFrame.Raised)
        self.frame_2.setObjectName("frame_2")
        self.sig1 = PlotWidget(self.frame_2)
        self.sig1.setGeometry(QtCore.QRect(12, 12, 633, 149))
        self.sig1.setMinimumSize(QtCore.QSize(633, 149))
        self.sig1.setMaximumSize(QtCore.QSize(633, 304))
        self.sig1.setObjectName("sig1")
        self.fourier1 = PlotWidget(self.frame_2)
        self.fourier1.setGeometry(QtCore.QRect(12, 168, 633, 148))
        self.fourier1.setMinimumSize(QtCore.QSize(633, 148))
        self.fourier1.setMaximumSize(QtCore.QSize(633, 304))
        self.fourier1.setObjectName("fourier1")
        self.gridLayout_2.addWidget(self.frame_2, 0, 0, 1, 1)
        self.gridLayout.addWidget(self.frame, 0, 0, 1, 1)
        MainWindow.setCentralWidget(self.centralwidget)
        self.menubar = QtWidgets.QMenuBar(MainWindow)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 1366, 21))
        self.menubar.setObjectName("menubar")
        self.menuFile = QtWidgets.QMenu(self.menubar)
        self.menuFile.setObjectName("menuFile")
        self.menuPrint_2 = QtWidgets.QMenu(self.menuFile)
        self.menuPrint_2.setObjectName("menuPrint_2")
        MainWindow.setMenuBar(self.menubar)
        self.statusbar = QtWidgets.QStatusBar(MainWindow)
        self.statusbar.setObjectName("statusbar")
        MainWindow.setStatusBar(self.statusbar)
        self.actionimport = QtWidgets.QAction(MainWindow)
        self.actionimport.setObjectName("actionimport")
        # self.actionas_PDF = QtWidgets.QAction(MainWindow)
        # self.actionas_PDF.setObjectName("actionas_PDF")
        self.actionNew = QtWidgets.QAction(MainWindow)
        self.actionNew.setShortcutContext(QtCore.Qt.WindowShortcut)
        self.actionNew.setObjectName("actionNew")
        self.actionImport = QtWidgets.QAction(MainWindow)
        self.actionImport.setObjectName("actionImport")
        self.actionas_PDF_2 = QtWidgets.QAction(MainWindow)
        self.actionas_PDF_2.setObjectName("actionas_PDF_2")
        self.menuPrint_2.addAction(self.actionas_PDF_2)
        self.menuFile.addAction(self.actionNew)
        self.menuFile.addAction(self.actionImport)
        self.menuFile.addAction(self.menuPrint_2.menuAction())
        self.menubar.addAction(self.menuFile.menuAction())

        self.retranslateUi(MainWindow)
        self.s1.valueChanged['int'].connect(self.gain1.setNum)
        self.s2.valueChanged['int'].connect(self.gain2.setNum)
        self.s3.valueChanged['int'].connect(self.gain3.setNum)
        self.s4.valueChanged['int'].connect(self.gain4.setNum)
        self.s5.valueChanged['int'].connect(self.gain5.setNum)
        self.s6.valueChanged['int'].connect(self.gain6.setNum)
        self.s7.valueChanged['int'].connect(self.gain7.setNum)
        self.s8.valueChanged['int'].connect(self.gain8.setNum)
        self.s9.valueChanged['int'].connect(self.gain9.setNum)
        self.s10.valueChanged['int'].connect(self.gain10.setNum)
        QtCore.QMetaObject.connectSlotsByName(MainWindow)

    def retranslateUi(self, MainWindow):
        _translate = QtCore.QCoreApplication.translate
        MainWindow.setWindowTitle(_translate("MainWindow", "MainWindow"))
        self.right.setShortcut(_translate("MainWindow", "Right"))
        self.pause2.setShortcut(_translate("MainWindow", "Ctrl+O"))
        self.left.setShortcut(_translate("MainWindow", "Left"))
        self.up.setShortcut(_translate("MainWindow", "Up"))
        self.zoom_in.setShortcut(_translate("MainWindow", "+"))
        self.down.setShortcut(_translate("MainWindow", "Down"))
        self.zoom_out.setShortcut(_translate("MainWindow", "-"))
        self.play2.setShortcut(_translate("MainWindow", "Ctrl+P"))
        self.play1.setShortcut(_translate("MainWindow", "P"))
        self.speed_slow.setShortcut(_translate("MainWindow", "Ctrl+S"))
        self.default_speed.setText(_translate("MainWindow", "X1"))
        self.speed_slow.setText(_translate("MainWindow", "X0.5"))
        self.default_speed.setShortcut(_translate("MainWindow", "Ctrl+A"))
        self.fast_speed.setText(_translate("MainWindow", "X2"))
        self.fast_speed.setShortcut(_translate("MainWindow", "Ctrl+F"))
        self.color.setItemText(0, _translate("MainWindow", "Viridis"))
        self.color.setItemText(1, _translate("MainWindow", "Plasma"))
        self.color.setItemText(2, _translate("MainWindow", "Inferno"))
        self.color.setItemText(3, _translate("MainWindow", "Magma"))
        self.color.setItemText(4, _translate("MainWindow", "Cividis"))
        self.pause1.setShortcut(_translate("MainWindow", "O"))
        self.checkBox.setText(_translate("MainWindow", "hide/show"))
        self.gain1.setText(_translate("MainWindow", "1"))
        self.gain2.setText(_translate("MainWindow", "1"))
        self.gain3.setText(_translate("MainWindow", "1"))
        self.gain4.setText(_translate("MainWindow", "1"))
        self.gain5.setText(_translate("MainWindow", "1"))
        self.gain6.setText(_translate("MainWindow", "1"))
        self.gain7.setText(_translate("MainWindow", "1"))
        self.gain8.setText(_translate("MainWindow", "1"))
        self.gain9.setText(_translate("MainWindow", "1"))
        self.gain10.setText(_translate("MainWindow", "1"))
        self.menuFile.setTitle(_translate("MainWindow", "File"))
        self.menuPrint_2.setTitle(_translate("MainWindow", "Print"))
        self.actionimport.setText(_translate("MainWindow", "import"))
        self.actionimport.setShortcut(_translate("MainWindow", "Ctrl+I"))
        # self.actionas_PDF.setText(_translate("MainWindow", "as PDF"))
        # self.actionas_PDF.setShortcut(_translate("MainWindow", "Ctrl+P"))
        self.actionNew.setText(_translate("MainWindow", "New"))
        self.actionNew.setShortcut(_translate("MainWindow", "Ctrl+N"))
        self.actionImport.setText(_translate("MainWindow", "Import"))
        self.actionImport.setShortcut(_translate("MainWindow", "Ctrl+I"))
        self.actionas_PDF_2.setText(_translate("MainWindow", "as PDF"))
        self.actionas_PDF_2.setShortcut(_translate("MainWindow", "Ctrl+D"))
        self.checkBox.stateChanged.connect(self.hide)



    def hide(self, state):

        if state == QtCore.Qt.Checked:
            self.spectro1.hide()
            self.spectro2.hide()
        else:
            self.spectro1.show()
            self.spectro2.show()
Пример #19
0
class Ui_HitFinding(object):
    def setupUi(self, HitFinding):
        HitFinding.setObjectName(_fromUtf8("HitFinding"))
        HitFinding.resize(622, 817)
        HitFinding.setFrameShape(QtGui.QFrame.StyledPanel)
        HitFinding.setFrameShadow(QtGui.QFrame.Raised)
        self.HitRateView = PlotWidget(HitFinding)
        self.HitRateView.setGeometry(QtCore.QRect(20, 20, 590, 400))
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.HitRateView.sizePolicy().hasHeightForWidth())
        self.HitRateView.setSizePolicy(sizePolicy)
        self.HitRateView.setMinimumSize(QtCore.QSize(590, 400))
        self.HitRateView.setMaximumSize(QtCore.QSize(590, 400))
        self.HitRateView.setSizeIncrement(QtCore.QSize(1, 1))
        self.HitRateView.setObjectName(_fromUtf8("HitRateView"))
        self.groupBox_4 = QtGui.QGroupBox(HitFinding)
        self.groupBox_4.setGeometry(QtCore.QRect(20, 430, 581, 221))
        self.groupBox_4.setObjectName(_fromUtf8("groupBox_4"))
        self.label_24 = QtGui.QLabel(self.groupBox_4)
        self.label_24.setGeometry(QtCore.QRect(444, 71, 17, 21))
        self.label_24.setObjectName(_fromUtf8("label_24"))
        self.label_25 = QtGui.QLabel(self.groupBox_4)
        self.label_25.setGeometry(QtCore.QRect(444, 40, 17, 21))
        self.label_25.setObjectName(_fromUtf8("label_25"))
        self.ROIX1 = QtGui.QLineEdit(self.groupBox_4)
        self.ROIX1.setGeometry(QtCore.QRect(359, 40, 75, 21))
        self.ROIX1.setObjectName(_fromUtf8("ROIX1"))
        self.label_26 = QtGui.QLabel(self.groupBox_4)
        self.label_26.setGeometry(QtCore.QRect(326, 71, 25, 21))
        self.label_26.setObjectName(_fromUtf8("label_26"))
        self.ROIX2 = QtGui.QLineEdit(self.groupBox_4)
        self.ROIX2.setGeometry(QtCore.QRect(359, 71, 75, 21))
        self.ROIX2.setObjectName(_fromUtf8("ROIX2"))
        self.ROIY2 = QtGui.QLineEdit(self.groupBox_4)
        self.ROIY2.setGeometry(QtCore.QRect(471, 71, 76, 21))
        self.ROIY2.setObjectName(_fromUtf8("ROIY2"))
        self.ROIY1 = QtGui.QLineEdit(self.groupBox_4)
        self.ROIY1.setGeometry(QtCore.QRect(471, 40, 76, 21))
        self.ROIY1.setObjectName(_fromUtf8("ROIY1"))
        self.label_27 = QtGui.QLabel(self.groupBox_4)
        self.label_27.setGeometry(QtCore.QRect(326, 40, 25, 21))
        self.label_27.setObjectName(_fromUtf8("label_27"))
        self.label_28 = QtGui.QLabel(self.groupBox_4)
        self.label_28.setGeometry(QtCore.QRect(290, 40, 26, 21))
        self.label_28.setObjectName(_fromUtf8("label_28"))
        self.UpdateROI = QtGui.QPushButton(self.groupBox_4)
        self.UpdateROI.setGeometry(QtCore.QRect(330, 100, 121, 32))
        self.UpdateROI.setObjectName(_fromUtf8("UpdateROI"))
        self.npix = QtGui.QLineEdit(self.groupBox_4)
        self.npix.setGeometry(QtCore.QRect(100, 70, 51, 21))
        self.npix.setObjectName(_fromUtf8("npix"))
        self.label_22 = QtGui.QLabel(self.groupBox_4)
        self.label_22.setGeometry(QtCore.QRect(30, 39, 61, 21))
        self.label_22.setObjectName(_fromUtf8("label_22"))
        self.thresh = QtGui.QLineEdit(self.groupBox_4)
        self.thresh.setGeometry(QtCore.QRect(99, 39, 51, 21))
        self.thresh.setObjectName(_fromUtf8("thresh"))
        self.label_21 = QtGui.QLabel(self.groupBox_4)
        self.label_21.setGeometry(QtCore.QRect(30, 70, 61, 21))
        self.label_21.setObjectName(_fromUtf8("label_21"))
        self.clearHitRate = QtGui.QPushButton(self.groupBox_4)
        self.clearHitRate.setGeometry(QtCore.QRect(340, 150, 221, 32))
        self.clearHitRate.setObjectName(_fromUtf8("clearHitRate"))
        self.label_23 = QtGui.QLabel(self.groupBox_4)
        self.label_23.setGeometry(QtCore.QRect(30, 100, 61, 21))
        self.label_23.setObjectName(_fromUtf8("label_23"))
        self.ncpus = QtGui.QLineEdit(self.groupBox_4)
        self.ncpus.setGeometry(QtCore.QRect(100, 100, 51, 21))
        self.ncpus.setObjectName(_fromUtf8("ncpus"))
        self.ShowROI = QtGui.QPushButton(self.groupBox_4)
        self.ShowROI.setGeometry(QtCore.QRect(450, 100, 131, 32))
        self.ShowROI.setObjectName(_fromUtf8("ShowROI"))
        self.FastScan = QtGui.QRadioButton(self.groupBox_4)
        self.FastScan.setGeometry(QtCore.QRect(30, 140, 100, 20))
        self.FastScan.setChecked(True)
        self.FastScan.setObjectName(_fromUtf8("FastScan"))
        self.ShootNTrap = QtGui.QRadioButton(self.groupBox_4)
        self.ShootNTrap.setGeometry(QtCore.QRect(30, 170, 100, 20))
        self.ShootNTrap.setObjectName(_fromUtf8("ShootNTrap"))
        self.NShots = QtGui.QLineEdit(self.groupBox_4)
        self.NShots.setGeometry(QtCore.QRect(240, 170, 51, 21))
        self.NShots.setObjectName(_fromUtf8("NShots"))
        self.label_29 = QtGui.QLabel(self.groupBox_4)
        self.label_29.setGeometry(QtCore.QRect(170, 170, 61, 21))
        self.label_29.setObjectName(_fromUtf8("label_29"))
        self.HitLog = QtGui.QPlainTextEdit(HitFinding)
        self.HitLog.setGeometry(QtCore.QRect(20, 660, 581, 141))
        font = QtGui.QFont()
        font.setFamily(_fromUtf8("Courier New"))
        font.setPointSize(11)
        self.HitLog.setFont(font)
        self.HitLog.setObjectName(_fromUtf8("HitLog"))

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

    def retranslateUi(self, HitFinding):
        HitFinding.setWindowTitle(_translate("HitFinding", "Frame", None))
        self.groupBox_4.setTitle(_translate("HitFinding", "Hit Finding", None))
        self.label_24.setText(_translate("HitFinding", "Y2", None))
        self.label_25.setText(_translate("HitFinding", "Y1", None))
        self.ROIX1.setText(_translate("HitFinding", "0", None))
        self.label_26.setText(_translate("HitFinding", "X2", None))
        self.ROIX2.setText(_translate("HitFinding", "2167", None))
        self.ROIY2.setText(_translate("HitFinding", "2070", None))
        self.ROIY1.setText(_translate("HitFinding", "0", None))
        self.label_27.setText(_translate("HitFinding", "X1", None))
        self.label_28.setText(_translate("HitFinding", "ROI", None))
        self.UpdateROI.setText(_translate("HitFinding", "Reset ROI ", None))
        self.npix.setText(_translate("HitFinding", "10", None))
        self.label_22.setText(_translate("HitFinding", "Threshold", None))
        self.thresh.setText(_translate("HitFinding", "20", None))
        self.label_21.setText(_translate("HitFinding", "# Pixels", None))
        self.clearHitRate.setText(_translate("HitFinding", "Clear Plot", None))
        self.label_23.setText(_translate("HitFinding", "# Cpus", None))
        self.ncpus.setText(_translate("HitFinding", "1", None))
        self.ShowROI.setText(_translate("HitFinding", "Show ROI", None))
        self.FastScan.setText(_translate("HitFinding", "Fast Scan", None))
        self.ShootNTrap.setText(_translate("HitFinding", "Shoot\'N Trap", None))
        self.NShots.setText(_translate("HitFinding", "10", None))
        self.label_29.setText(_translate("HitFinding", "# Shots", None))
Пример #20
0
class Ui_MainWindow(object):
    def setupUi(self, MainWindow):
        MainWindow.setObjectName("MainWindow")
        MainWindow.resize(1637, 1053)
        palette = QtGui.QPalette()
        brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Base, brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Window, brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Base, brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Window, brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Base, brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Window, brush)
        MainWindow.setPalette(palette)
        self.centralwidget = QtWidgets.QWidget(MainWindow)
        self.centralwidget.setObjectName("centralwidget")
        self.horizontalLayout = QtWidgets.QHBoxLayout(self.centralwidget)
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.splitter_2 = QtWidgets.QSplitter(self.centralwidget)
        self.splitter_2.setOrientation(QtCore.Qt.Horizontal)
        self.splitter_2.setObjectName("splitter_2")
        self.treeWidget = QtWidgets.QTreeWidget(self.splitter_2)
        self.treeWidget.setMaximumSize(QtCore.QSize(450, 16777215))
        self.treeWidget.setSelectionMode(
            QtWidgets.QAbstractItemView.ExtendedSelection)
        self.treeWidget.setObjectName("treeWidget")
        self.treeWidget.headerItem().setText(0, "1")
        self.splitter = QtWidgets.QSplitter(self.splitter_2)
        self.splitter.setOrientation(QtCore.Qt.Vertical)
        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.label = QtWidgets.QLabel(self.layoutWidget)
        self.label.setMinimumSize(QtCore.QSize(0, 50))
        self.label.setText("")
        self.label.setWordWrap(True)
        self.label.setObjectName("label")
        self.verticalLayout.addWidget(self.label)
        self.dataPlot = PlotWidget(self.layoutWidget)
        self.dataPlot.setObjectName("dataPlot")
        self.verticalLayout.addWidget(self.dataPlot)
        self.dataPlotRange = PlotWidget(self.splitter)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.dataPlotRange.sizePolicy().hasHeightForWidth())
        self.dataPlotRange.setSizePolicy(sizePolicy)
        self.dataPlotRange.setMaximumSize(QtCore.QSize(16777215, 200))
        self.dataPlotRange.setObjectName("dataPlotRange")
        self.horizontalLayout.addWidget(self.splitter_2)
        MainWindow.setCentralWidget(self.centralwidget)
        self.menubar = QtWidgets.QMenuBar(MainWindow)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 1637, 26))
        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", "Test Data Post Tool"))
Пример #21
0
class Ui_MainWindow(object):
    def setupUi(self, MainWindow):
        MainWindow.setObjectName("MainWindow")
        MainWindow.resize(750, 500)
        MainWindow.setTabShape(QtWidgets.QTabWidget.Rounded)
        self.centralwidget = QtWidgets.QWidget(MainWindow)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.centralwidget.sizePolicy().hasHeightForWidth())
        self.centralwidget.setSizePolicy(sizePolicy)
        self.centralwidget.setObjectName("centralwidget")
        self.verticalLayout = QtWidgets.QVBoxLayout(self.centralwidget)
        self.verticalLayout.setContentsMargins(5, 10, 5, 0)
        self.verticalLayout.setSpacing(0)
        self.verticalLayout.setObjectName("verticalLayout")
        self.bar = QtWidgets.QWidget(self.centralwidget)
        self.bar.setMaximumSize(QtCore.QSize(16777215, 30))
        self.bar.setObjectName("bar")
        self.horizontalLayout = QtWidgets.QHBoxLayout(self.bar)
        self.horizontalLayout.setContentsMargins(-1, 5, 11, 5)
        self.horizontalLayout.setSpacing(9)
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.close = QtWidgets.QPushButton(self.bar)
        self.close.setMaximumSize(QtCore.QSize(30, 20))
        self.close.setText("")
        self.close.setObjectName("close")
        self.horizontalLayout.addWidget(self.close)
        self.visit = QtWidgets.QPushButton(self.bar)
        self.visit.setMaximumSize(QtCore.QSize(30, 20))
        self.visit.setText("")
        self.visit.setObjectName("visit")
        self.horizontalLayout.addWidget(self.visit)
        self.mini = QtWidgets.QPushButton(self.bar)
        self.mini.setMaximumSize(QtCore.QSize(30, 20))
        self.mini.setFocusPolicy(QtCore.Qt.StrongFocus)
        self.mini.setText("")
        self.mini.setAutoDefault(False)
        self.mini.setDefault(False)
        self.mini.setFlat(False)
        self.mini.setObjectName("mini")
        self.horizontalLayout.addWidget(self.mini)
        spacerItem = QtWidgets.QSpacerItem(40, 15,
                                           QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout.addItem(spacerItem)
        self.next_page = QtWidgets.QPushButton(self.bar)
        self.next_page.setMaximumSize(QtCore.QSize(70, 30))
        self.next_page.setObjectName("next_page")
        self.horizontalLayout.addWidget(self.next_page)
        self.verticalLayout.addWidget(self.bar)
        self.Menu = QtWidgets.QGridLayout()
        self.Menu.setVerticalSpacing(6)
        self.Menu.setObjectName("Menu")
        self.down = QtWidgets.QWidget(self.centralwidget)
        self.down.setMinimumSize(QtCore.QSize(0, 130))
        self.down.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.down.setObjectName("down")
        self.gridLayout_down = QtWidgets.QGridLayout(self.down)
        self.gridLayout_down.setHorizontalSpacing(5)
        self.gridLayout_down.setObjectName("gridLayout_down")
        self.TotalScore = QtWidgets.QLabel(self.down)
        self.TotalScore.setMinimumSize(QtCore.QSize(0, 0))
        self.TotalScore.setMaximumSize(QtCore.QSize(250, 120))
        font = QtGui.QFont()
        font.setFamily("Book Antiqua")
        font.setPointSize(15)
        font.setKerning(True)
        self.TotalScore.setFont(font)
        self.TotalScore.setLayoutDirection(QtCore.Qt.RightToLeft)
        self.TotalScore.setAlignment(QtCore.Qt.AlignCenter)
        self.TotalScore.setObjectName("TotalScore")
        self.gridLayout_down.addWidget(self.TotalScore, 0, 2, 1, 1)
        self.CurrentScore = QtWidgets.QLabel(self.down)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.CurrentScore.sizePolicy().hasHeightForWidth())
        self.CurrentScore.setSizePolicy(sizePolicy)
        self.CurrentScore.setMinimumSize(QtCore.QSize(20, 60))
        self.CurrentScore.setMaximumSize(QtCore.QSize(300, 120))
        font = QtGui.QFont()
        font.setFamily("Brush Script Std")
        font.setPointSize(50)
        font.setBold(False)
        font.setItalic(False)
        font.setWeight(50)
        self.CurrentScore.setFont(font)
        self.CurrentScore.setAlignment(QtCore.Qt.AlignCenter)
        self.CurrentScore.setObjectName("CurrentScore")
        self.gridLayout_down.addWidget(self.CurrentScore, 0, 1, 1, 1)
        self.widget = PlotWidget(self.down)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.widget.sizePolicy().hasHeightForWidth())
        self.widget.setSizePolicy(sizePolicy)
        self.widget.setMinimumSize(QtCore.QSize(0, 0))
        self.widget.setMaximumSize(QtCore.QSize(300, 120))
        self.widget.setLayoutDirection(QtCore.Qt.LeftToRight)
        self.widget.setObjectName("widget")
        self.gridLayout_down.addWidget(self.widget, 0, 0, 1, 1)
        self.Menu.addWidget(self.down, 4, 0, 1, 1)
        self.line = QtWidgets.QFrame(self.centralwidget)
        self.line.setFrameShadow(QtWidgets.QFrame.Plain)
        self.line.setLineWidth(10)
        self.line.setFrameShape(QtWidgets.QFrame.HLine)
        self.line.setObjectName("line")
        self.Menu.addWidget(self.line, 1, 0, 1, 1)
        self.up = QtWidgets.QWidget(self.centralwidget)
        self.up.setMinimumSize(QtCore.QSize(0, 0))
        self.up.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.up.setObjectName("up")
        self.gridLayout_up = QtWidgets.QGridLayout(self.up)
        self.gridLayout_up.setContentsMargins(-1, 0, -1, 0)
        self.gridLayout_up.setSpacing(0)
        self.gridLayout_up.setObjectName("gridLayout_up")
        self.backCircle = QtWidgets.QWidget(self.up)
        self.backCircle.setMinimumSize(QtCore.QSize(50, 50))
        self.backCircle.setMaximumSize(QtCore.QSize(320, 320))
        self.backCircle.setObjectName("backCircle")
        self.backCircleLayout = QtWidgets.QGridLayout(self.backCircle)
        self.backCircleLayout.setContentsMargins(60, 50, 60, 50)
        self.backCircleLayout.setObjectName("backCircleLayout")
        self.feedback = QtWidgets.QToolButton(self.backCircle)
        self.feedback.setEnabled(False)
        self.feedback.setMinimumSize(QtCore.QSize(50, 50))
        self.feedback.setMaximumSize(QtCore.QSize(320, 320))
        self.feedback.setFocusPolicy(QtCore.Qt.TabFocus)
        self.feedback.setText("")
        self.feedback.setObjectName("feedback")
        self.backCircleLayout.addWidget(self.feedback, 0, 0, 1, 1)
        self.gridLayout_up.addWidget(self.backCircle, 0, 3, 2, 1)
        self.brake_bar = QtWidgets.QWidget(self.up)
        self.brake_bar.setMaximumSize(QtCore.QSize(80, 220))
        self.brake_bar.setObjectName("brake_bar")
        self.verticalLayout_break = QtWidgets.QVBoxLayout(self.brake_bar)
        self.verticalLayout_break.setContentsMargins(15, 0, 15, 0)
        self.verticalLayout_break.setSpacing(0)
        self.verticalLayout_break.setObjectName("verticalLayout_break")
        self.brake_bar1 = QtWidgets.QLabel(self.brake_bar)
        self.brake_bar1.setText("")
        self.brake_bar1.setObjectName("brake_bar1")
        self.verticalLayout_break.addWidget(self.brake_bar1)
        self.brake_bar2 = QtWidgets.QLabel(self.brake_bar)
        self.brake_bar2.setText("")
        self.brake_bar2.setObjectName("brake_bar2")
        self.verticalLayout_break.addWidget(self.brake_bar2)
        self.brake_bar3 = QtWidgets.QLabel(self.brake_bar)
        self.brake_bar3.setText("")
        self.brake_bar3.setObjectName("brake_bar3")
        self.verticalLayout_break.addWidget(self.brake_bar3)
        self.gridLayout_up.addWidget(self.brake_bar, 0, 1, 1, 1)
        self.Acc_level = QtWidgets.QWidget(self.up)
        self.Acc_level.setMaximumSize(QtCore.QSize(80, 35))
        self.Acc_level.setObjectName("Acc_level")
        self.gridLayout_up.addWidget(self.Acc_level, 1, 0, 1, 1)
        self.Swerve_level = QtWidgets.QWidget(self.up)
        self.Swerve_level.setMaximumSize(QtCore.QSize(80, 35))
        self.Swerve_level.setObjectName("Swerve_level")
        self.gridLayout_up.addWidget(self.Swerve_level, 1, 6, 1, 1)
        self.acc_bar = QtWidgets.QWidget(self.up)
        self.acc_bar.setMaximumSize(QtCore.QSize(80, 220))
        self.acc_bar.setObjectName("acc_bar")
        self.verticalLayout_acc = QtWidgets.QVBoxLayout(self.acc_bar)
        self.verticalLayout_acc.setContentsMargins(15, 0, 15, 0)
        self.verticalLayout_acc.setSpacing(0)
        self.verticalLayout_acc.setObjectName("verticalLayout_acc")
        self.acc_bar1 = QtWidgets.QLabel(self.acc_bar)
        self.acc_bar1.setText("")
        self.acc_bar1.setObjectName("acc_bar1")
        self.verticalLayout_acc.addWidget(self.acc_bar1)
        self.acc_bar2 = QtWidgets.QLabel(self.acc_bar)
        self.acc_bar2.setText("")
        self.acc_bar2.setObjectName("acc_bar2")
        self.verticalLayout_acc.addWidget(self.acc_bar2)
        self.acc_bar3 = QtWidgets.QLabel(self.acc_bar)
        self.acc_bar3.setText("")
        self.acc_bar3.setObjectName("acc_bar3")
        self.verticalLayout_acc.addWidget(self.acc_bar3)
        self.gridLayout_up.addWidget(self.acc_bar, 0, 0, 1, 1)
        self.Turn_level = QtWidgets.QWidget(self.up)
        self.Turn_level.setMaximumSize(QtCore.QSize(80, 35))
        self.Turn_level.setObjectName("Turn_level")
        self.gridLayout_up.addWidget(self.Turn_level, 1, 5, 1, 1)
        self.turn_bar = QtWidgets.QWidget(self.up)
        self.turn_bar.setMaximumSize(QtCore.QSize(80, 220))
        self.turn_bar.setObjectName("turn_bar")
        self.verticalLayout_turn = QtWidgets.QVBoxLayout(self.turn_bar)
        self.verticalLayout_turn.setContentsMargins(15, 0, 15, 0)
        self.verticalLayout_turn.setSpacing(0)
        self.verticalLayout_turn.setObjectName("verticalLayout_turn")
        self.turn_bar1 = QtWidgets.QLabel(self.turn_bar)
        self.turn_bar1.setText("")
        self.turn_bar1.setObjectName("turn_bar1")
        self.verticalLayout_turn.addWidget(self.turn_bar1)
        self.turn_bar2 = QtWidgets.QLabel(self.turn_bar)
        self.turn_bar2.setText("")
        self.turn_bar2.setObjectName("turn_bar2")
        self.verticalLayout_turn.addWidget(self.turn_bar2)
        self.turn_bar3 = QtWidgets.QLabel(self.turn_bar)
        self.turn_bar3.setText("")
        self.turn_bar3.setObjectName("turn_bar3")
        self.verticalLayout_turn.addWidget(self.turn_bar3)
        self.gridLayout_up.addWidget(self.turn_bar, 0, 5, 1, 1)
        spacerItem1 = QtWidgets.QSpacerItem(15, 20,
                                            QtWidgets.QSizePolicy.Fixed,
                                            QtWidgets.QSizePolicy.Minimum)
        self.gridLayout_up.addItem(spacerItem1, 0, 4, 1, 1)
        spacerItem2 = QtWidgets.QSpacerItem(15, 20,
                                            QtWidgets.QSizePolicy.Fixed,
                                            QtWidgets.QSizePolicy.Minimum)
        self.gridLayout_up.addItem(spacerItem2, 0, 2, 1, 1)
        self.Brake_level = QtWidgets.QWidget(self.up)
        self.Brake_level.setMaximumSize(QtCore.QSize(80, 35))
        self.Brake_level.setObjectName("Brake_level")
        self.gridLayout_up.addWidget(self.Brake_level, 1, 1, 1, 1)
        self.swerve_bar = QtWidgets.QWidget(self.up)
        self.swerve_bar.setMaximumSize(QtCore.QSize(80, 220))
        self.swerve_bar.setObjectName("swerve_bar")
        self.verticalLayout_swerve = QtWidgets.QVBoxLayout(self.swerve_bar)
        self.verticalLayout_swerve.setContentsMargins(15, 0, 15, 0)
        self.verticalLayout_swerve.setSpacing(0)
        self.verticalLayout_swerve.setObjectName("verticalLayout_swerve")
        self.swerve_bar1 = QtWidgets.QLabel(self.swerve_bar)
        self.swerve_bar1.setText("")
        self.swerve_bar1.setObjectName("swerve_bar1")
        self.verticalLayout_swerve.addWidget(self.swerve_bar1)
        self.swerve_bar2 = QtWidgets.QLabel(self.swerve_bar)
        self.swerve_bar2.setText("")
        self.swerve_bar2.setObjectName("swerve_bar2")
        self.verticalLayout_swerve.addWidget(self.swerve_bar2)
        self.swerve_bar3 = QtWidgets.QLabel(self.swerve_bar)
        self.swerve_bar3.setText("")
        self.swerve_bar3.setObjectName("swerve_bar3")
        self.verticalLayout_swerve.addWidget(self.swerve_bar3)
        self.gridLayout_up.addWidget(self.swerve_bar, 0, 6, 1, 1)
        self.Menu.addWidget(self.up, 0, 0, 1, 1)
        self.verticalLayout.addLayout(self.Menu)
        MainWindow.setCentralWidget(self.centralwidget)
        self.menubar = QtWidgets.QMenuBar(MainWindow)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 750, 18))
        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.next_page.setText(_translate("MainWindow", "Next Page"))
        self.TotalScore.setText(_translate("MainWindow", "1240 points"))
        self.CurrentScore.setText(_translate("MainWindow", "86"))
class Ui_MainWindow(object):
    def setupUi(self, MainWindow, nombreCourbes):
        MainWindow.setObjectName("MainWindow")

        MainWindow.showMaximized()
        self.centralWidget = QtWidgets.QWidget(MainWindow)
        self.centralWidget.setObjectName("centralWidget")

        ##BEGIN
        self.horizontalLayoutWidget = QtWidgets.QWidget(self.centralWidget)
        self.horizontalLayoutWidget.setGeometry(QtCore.QRect(
            10, 40, 1800, 900))
        self.horizontalLayoutWidget.setObjectName("horizontalLayoutWidget")
        self.horizontalLayout = QtWidgets.QHBoxLayout(
            self.horizontalLayoutWidget)
        self.horizontalLayout.setContentsMargins(50, 11, 11, 11)
        self.horizontalLayout.setSpacing(50)
        self.horizontalLayout.setObjectName("horizontalLayout")

        self.verticalLayout = QtWidgets.QVBoxLayout()
        self.verticalLayout.setSizeConstraint(
            QtWidgets.QLayout.SetDefaultConstraint)
        self.verticalLayout.setContentsMargins(50, -1, -1, -1)
        self.verticalLayout.setSpacing(20)
        self.verticalLayout.setObjectName("verticalLayout")
        self.verticalLayout.setAlignment(QtCore.Qt.AlignTop)

        self.tableWidget = QtWidgets.QTableWidget(self.centralWidget)
        self.tableWidget.setMinimumSize(QtCore.QSize(600, 600))
        self.tableWidget.setMaximumSize(QtCore.QSize(600, 600))
        #        self.tableWidget.setGeometry(QtCore.QRect(10, 10, 741, 741))
        self.tableWidget.setObjectName("tableWidget")
        self.verticalLayout.addWidget(self.tableWidget)

        self.verticalLayout2 = QtWidgets.QVBoxLayout()
        self.verticalLayout2.setSizeConstraint(
            QtWidgets.QLayout.SetDefaultConstraint)
        self.verticalLayout2.setContentsMargins(50, -1, -1, -1)
        self.verticalLayout2.setSpacing(20)
        self.verticalLayout2.setObjectName("verticalLayout2")
        self.verticalLayout2.setAlignment(QtCore.Qt.AlignTop)

        self.graphicsView = PlotWidget(self.centralWidget)
        self.graphicsView.setMinimumSize(QtCore.QSize(800, 800))
        self.graphicsView.setMaximumSize(QtCore.QSize(800, 800))
        self.graphicsView.setObjectName("graphicsView")
        self.graphicsView.showGrid(True, True)

        self.verticalLayout2.addWidget(self.graphicsView)
        ##END

        self.horizontalLayout.addLayout(self.verticalLayout)
        self.horizontalLayout.addLayout(self.verticalLayout2)

        logins = {}
        logins2 = []
        gammas = []
        numPostes = []
        scores = []
        if versionENSAE:
            import mysql.connector
            mydb = mysql.connector.connect(host="localhost",
                                           user="******",
                                           passwd="Hgb3des2",
                                           database="marko")
        else:
            import MySQLdb
            mydb = MySQLdb.connect(host="localhost",
                                   user="******",
                                   passwd='',
                                   db="PSC_DONNEES")
        cursor = mydb.cursor()
        ##INITIALISATION DES LOGINS ETC..#####
        cursor.execute("SELECT * FROM data WHERE numCourbe = 1")
        myresult = cursor.fetchall()
        nbUsers = len(myresult)
        VAL_TOT = nbUsers * nombreCourbes
        for ligne in myresult:
            numPostes.append(ligne[1])
            logins[ligne[2]] = len(numPostes) - 1
            logins2.append(ligne[2])
            gammas.append(ligne[4])
            scores.append(0)
        for i in range(nombreCourbes):
            cursor.execute("SELECT * FROM data WHERE numCourbe =" + str(i + 1))
            myresult = cursor.fetchall()
            distances = []
            i = 0
            for ligne in myresult:
                distances.append([ligne[len(ligne) - 1], logins[ligne[2]]])
            distances.sort()
            for k in range(len(distances)):
                scores[distances[k][1]] += k + 1
        classement = []
        for i in range(nbUsers):
            classement.append([scores[i], i])
        classement.sort()
        classement = [classement[i][1] for i in range(len(classement))]
        scores = [VAL_TOT - scores[i] for i in range(nbUsers)]
        cursor.close()
        mydb.close()

        self.tableWidget.setColumnCount(5)
        self.tableWidget.setRowCount(nbUsers)
        print(nbUsers)
        for i in range(nbUsers):
            item = QtWidgets.QTableWidgetItem()
            self.tableWidget.setVerticalHeaderItem(i, item)
        self.gammas = gammas
        self.numPostes = numPostes
        self.scores = scores
        self.classement = classement
        self.nbUsers = nbUsers
        self.logins2 = logins2
        ## Ici on a les bonnes informations
        #        gammis = [self.gammas[e] for e in self.classement]
        #        scoris = [self.scores[e] for e in self.classement]
        self.graphicsView.plot(self.gammas, self.scores, symbol='o', pen=None)

        item = QtWidgets.QTableWidgetItem()
        self.tableWidget.setHorizontalHeaderItem(0, item)
        item = QtWidgets.QTableWidgetItem()
        self.tableWidget.setHorizontalHeaderItem(1, item)
        item = QtWidgets.QTableWidgetItem()
        self.tableWidget.setHorizontalHeaderItem(2, item)
        item = QtWidgets.QTableWidgetItem()
        self.tableWidget.setHorizontalHeaderItem(3, item)
        item = QtWidgets.QTableWidgetItem()
        self.tableWidget.setHorizontalHeaderItem(4, item)
        for i in range(nbUsers):
            item = QtWidgets.QTableWidgetItem()
            item.setFlags(QtCore.Qt.ItemIsSelectable | QtCore.Qt.ItemIsEnabled)
            self.tableWidget.setItem(i, 0, item)
            item = QtWidgets.QTableWidgetItem()
            item.setFlags(QtCore.Qt.ItemIsSelectable | QtCore.Qt.ItemIsEnabled)
            self.tableWidget.setItem(i, 1, item)
            item = QtWidgets.QTableWidgetItem()
            item.setFlags(QtCore.Qt.ItemIsSelectable | QtCore.Qt.ItemIsEnabled)
            self.tableWidget.setItem(i, 2, item)
            item = QtWidgets.QTableWidgetItem()
            item.setFlags(QtCore.Qt.ItemIsSelectable | QtCore.Qt.ItemIsEnabled)
            self.tableWidget.setItem(i, 3, item)
            item = QtWidgets.QTableWidgetItem()
            item.setFlags(QtCore.Qt.ItemIsSelectable | QtCore.Qt.ItemIsEnabled)
            self.tableWidget.setItem(i, 4, item)
        MainWindow.setCentralWidget(self.centralWidget)
        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", "Classement"))
        self.tableWidget.setSortingEnabled(True)
        for i in range(self.nbUsers):
            print(i)
            item = self.tableWidget.verticalHeaderItem(i)
            item.setText(_translate("MainWindow", ""))

            rg = self.classement[i]

            item = self.tableWidget.item(i, 0)
            item.setText(_translate("MainWindow", str(i + 1)))
            item = self.tableWidget.item(i, 1)
            item.setText(_translate("MainWindow", str(self.logins2[rg])))
            item = self.tableWidget.item(i, 2)
            item.setText(_translate("MainWindow", str(self.numPostes[rg])))
            item = self.tableWidget.item(i, 3)
            item.setText(_translate("MainWindow", str(self.gammas[rg])))
            item = self.tableWidget.item(i, 4)
            item.setText(_translate("MainWindow", str(self.scores[rg])))

        item = self.tableWidget.horizontalHeaderItem(0)
        item.setText(_translate("MainWindow", "Classement"))
        item = self.tableWidget.horizontalHeaderItem(1)
        item.setText(_translate("MainWindow", "Utilisateur"))
        item = self.tableWidget.horizontalHeaderItem(2)
        item.setText(_translate("MainWindow", "Poste"))
        item = self.tableWidget.horizontalHeaderItem(3)
        item.setText(_translate("MainWindow", "Gamma"))
        item = self.tableWidget.horizontalHeaderItem(4)
        item.setText(_translate("MainWindow", "Points"))
Пример #23
0
class Ui_MainWindow(object):
    def setupUi(self, MainWindow):
        MainWindow.setObjectName("MainWindow")
        MainWindow.resize(960, 546)
        self.centralwidget = QtWidgets.QWidget(MainWindow)
        self.centralwidget.setObjectName("centralwidget")
        self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.centralwidget)
        self.verticalLayout_2.setContentsMargins(9, 9, 9, 0)
        self.verticalLayout_2.setSpacing(0)
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        self.Content = QtWidgets.QWidget(self.centralwidget)
        self.Content.setObjectName("Content")
        self.horizontalLayout_2 = QtWidgets.QHBoxLayout(self.Content)
        self.horizontalLayout_2.setContentsMargins(0, 0, 0, 0)
        self.horizontalLayout_2.setSpacing(10)
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.Electrode = QtWidgets.QWidget(self.Content)
        self.Electrode.setMinimumSize(QtCore.QSize(200, 0))
        self.Electrode.setMaximumSize(QtCore.QSize(400, 800))
        self.Electrode.setObjectName("Electrode")
        self.verticalLayout = QtWidgets.QVBoxLayout(self.Electrode)
        self.verticalLayout.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout.setSpacing(5)
        self.verticalLayout.setObjectName("verticalLayout")
        self.widget = QtWidgets.QWidget(self.Electrode)
        self.widget.setMinimumSize(QtCore.QSize(0, 200))
        self.widget.setMaximumSize(QtCore.QSize(16777215, 700))
        self.widget.setObjectName("widget")
        self.verticalLayout_5 = QtWidgets.QVBoxLayout(self.widget)
        self.verticalLayout_5.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout_5.setSpacing(0)
        self.verticalLayout_5.setObjectName("verticalLayout_5")
        self.tabWidget = QtWidgets.QTabWidget(self.widget)
        self.tabWidget.setObjectName("tabWidget")
        self.read = QtWidgets.QWidget()
        self.read.setObjectName("read")
        self.verticalLayout_6 = QtWidgets.QVBoxLayout(self.read)
        self.verticalLayout_6.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout_6.setSpacing(0)
        self.verticalLayout_6.setObjectName("verticalLayout_6")
        self.Status = QtWidgets.QWidget(self.read)
        self.Status.setObjectName("Status")
        self.horizontalLayout_5 = QtWidgets.QHBoxLayout(self.Status)
        self.horizontalLayout_5.setContentsMargins(5, 0, 5, 0)
        self.horizontalLayout_5.setObjectName("horizontalLayout_5")
        self.label_2 = QtWidgets.QLabel(self.Status)
        self.label_2.setObjectName("label_2")
        self.horizontalLayout_5.addWidget(self.label_2)
        self.leStatus = QtWidgets.QLineEdit(self.Status)
        self.leStatus.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.leStatus.setReadOnly(True)
        self.leStatus.setObjectName("leStatus")
        self.horizontalLayout_5.addWidget(self.leStatus)
        self.verticalLayout_6.addWidget(self.Status)
        self.Refrence = QtWidgets.QWidget(self.read)
        self.Refrence.setObjectName("Refrence")
        self.horizontalLayout_6 = QtWidgets.QHBoxLayout(self.Refrence)
        self.horizontalLayout_6.setContentsMargins(5, 0, 5, 0)
        self.horizontalLayout_6.setObjectName("horizontalLayout_6")
        self.label_3 = QtWidgets.QLabel(self.Refrence)
        self.label_3.setObjectName("label_3")
        self.horizontalLayout_6.addWidget(self.label_3)
        self.leRE = QtWidgets.QLineEdit(self.Refrence)
        self.leRE.setMinimumSize(QtCore.QSize(100, 0))
        self.leRE.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.leRE.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.leRE.setReadOnly(True)
        self.leRE.setObjectName("leRE")
        self.horizontalLayout_6.addWidget(self.leRE)
        self.verticalLayout_6.addWidget(self.Refrence)
        self.Counter = QtWidgets.QWidget(self.read)
        self.Counter.setObjectName("Counter")
        self.horizontalLayout_7 = QtWidgets.QHBoxLayout(self.Counter)
        self.horizontalLayout_7.setContentsMargins(5, 0, 5, 0)
        self.horizontalLayout_7.setObjectName("horizontalLayout_7")
        self.label_4 = QtWidgets.QLabel(self.Counter)
        self.label_4.setObjectName("label_4")
        self.horizontalLayout_7.addWidget(self.label_4)
        self.leCE = QtWidgets.QLineEdit(self.Counter)
        self.leCE.setMinimumSize(QtCore.QSize(100, 0))
        self.leCE.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.leCE.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.leCE.setReadOnly(True)
        self.leCE.setObjectName("leCE")
        self.horizontalLayout_7.addWidget(self.leCE)
        self.verticalLayout_6.addWidget(self.Counter)
        self.Working1 = QtWidgets.QWidget(self.read)
        self.Working1.setObjectName("Working1")
        self.horizontalLayout_9 = QtWidgets.QHBoxLayout(self.Working1)
        self.horizontalLayout_9.setContentsMargins(5, 0, 5, 0)
        self.horizontalLayout_9.setObjectName("horizontalLayout_9")
        self.label_6 = QtWidgets.QLabel(self.Working1)
        self.label_6.setObjectName("label_6")
        self.horizontalLayout_9.addWidget(self.label_6)
        self.leWE1 = QtWidgets.QLineEdit(self.Working1)
        self.leWE1.setMinimumSize(QtCore.QSize(100, 0))
        self.leWE1.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.leWE1.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.leWE1.setReadOnly(True)
        self.leWE1.setObjectName("leWE1")
        self.horizontalLayout_9.addWidget(self.leWE1)
        self.verticalLayout_6.addWidget(self.Working1)
        self.Working2 = QtWidgets.QWidget(self.read)
        self.Working2.setObjectName("Working2")
        self.horizontalLayout_8 = QtWidgets.QHBoxLayout(self.Working2)
        self.horizontalLayout_8.setContentsMargins(5, 0, 5, 0)
        self.horizontalLayout_8.setObjectName("horizontalLayout_8")
        self.label_5 = QtWidgets.QLabel(self.Working2)
        self.label_5.setObjectName("label_5")
        self.horizontalLayout_8.addWidget(self.label_5)
        self.leWE2 = QtWidgets.QLineEdit(self.Working2)
        self.leWE2.setMinimumSize(QtCore.QSize(100, 0))
        self.leWE2.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.leWE2.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.leWE2.setReadOnly(True)
        self.leWE2.setObjectName("leWE2")
        self.horizontalLayout_8.addWidget(self.leWE2)
        self.verticalLayout_6.addWidget(self.Working2)
        self.Extra1 = QtWidgets.QWidget(self.read)
        self.Extra1.setObjectName("Extra1")
        self.horizontalLayout_10 = QtWidgets.QHBoxLayout(self.Extra1)
        self.horizontalLayout_10.setContentsMargins(5, 0, 5, 0)
        self.horizontalLayout_10.setObjectName("horizontalLayout_10")
        self.label_7 = QtWidgets.QLabel(self.Extra1)
        self.label_7.setObjectName("label_7")
        self.horizontalLayout_10.addWidget(self.label_7)
        self.leEx1 = QtWidgets.QLineEdit(self.Extra1)
        self.leEx1.setMinimumSize(QtCore.QSize(100, 0))
        self.leEx1.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.leEx1.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.leEx1.setReadOnly(True)
        self.leEx1.setObjectName("leEx1")
        self.horizontalLayout_10.addWidget(self.leEx1)
        self.verticalLayout_6.addWidget(self.Extra1)
        self.Extra2 = QtWidgets.QWidget(self.read)
        self.Extra2.setObjectName("Extra2")
        self.horizontalLayout_11 = QtWidgets.QHBoxLayout(self.Extra2)
        self.horizontalLayout_11.setContentsMargins(5, 0, 5, 0)
        self.horizontalLayout_11.setObjectName("horizontalLayout_11")
        self.label_8 = QtWidgets.QLabel(self.Extra2)
        self.label_8.setObjectName("label_8")
        self.horizontalLayout_11.addWidget(self.label_8)
        self.leEx2 = QtWidgets.QLineEdit(self.Extra2)
        self.leEx2.setMinimumSize(QtCore.QSize(100, 0))
        self.leEx2.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.leEx2.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.leEx2.setReadOnly(True)
        self.leEx2.setObjectName("leEx2")
        self.horizontalLayout_11.addWidget(self.leEx2)
        self.verticalLayout_6.addWidget(self.Extra2)
        self.Extra3 = QtWidgets.QWidget(self.read)
        self.Extra3.setObjectName("Extra3")
        self.horizontalLayout_12 = QtWidgets.QHBoxLayout(self.Extra3)
        self.horizontalLayout_12.setContentsMargins(5, 0, 5, 0)
        self.horizontalLayout_12.setObjectName("horizontalLayout_12")
        self.label_9 = QtWidgets.QLabel(self.Extra3)
        self.label_9.setObjectName("label_9")
        self.horizontalLayout_12.addWidget(self.label_9)
        self.leEx3 = QtWidgets.QLineEdit(self.Extra3)
        self.leEx3.setMinimumSize(QtCore.QSize(100, 0))
        self.leEx3.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.leEx3.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.leEx3.setReadOnly(True)
        self.leEx3.setObjectName("leEx3")
        self.horizontalLayout_12.addWidget(self.leEx3)
        self.verticalLayout_6.addWidget(self.Extra3)
        self.Extra4 = QtWidgets.QWidget(self.read)
        self.Extra4.setObjectName("Extra4")
        self.horizontalLayout_13 = QtWidgets.QHBoxLayout(self.Extra4)
        self.horizontalLayout_13.setContentsMargins(5, 0, 5, 0)
        self.horizontalLayout_13.setObjectName("horizontalLayout_13")
        self.label_10 = QtWidgets.QLabel(self.Extra4)
        self.label_10.setObjectName("label_10")
        self.horizontalLayout_13.addWidget(self.label_10)
        self.leEx4 = QtWidgets.QLineEdit(self.Extra4)
        self.leEx4.setMinimumSize(QtCore.QSize(100, 0))
        self.leEx4.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.leEx4.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.leEx4.setReadOnly(True)
        self.leEx4.setObjectName("leEx4")
        self.horizontalLayout_13.addWidget(self.leEx4)
        self.verticalLayout_6.addWidget(self.Extra4)
        self.tabWidget.addTab(self.read, "")
        self.set = QtWidgets.QWidget()
        self.set.setObjectName("set")
        self.verticalLayout_7 = QtWidgets.QVBoxLayout(self.set)
        self.verticalLayout_7.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout_7.setObjectName("verticalLayout_7")
        self.setRE = QtWidgets.QWidget(self.set)
        self.setRE.setObjectName("setRE")
        self.horizontalLayout_14 = QtWidgets.QHBoxLayout(self.setRE)
        self.horizontalLayout_14.setContentsMargins(3, 0, 3, 0)
        self.horizontalLayout_14.setObjectName("horizontalLayout_14")
        self.pbSetRE = QtWidgets.QPushButton(self.setRE)
        self.pbSetRE.setMinimumSize(QtCore.QSize(90, 0))
        self.pbSetRE.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.pbSetRE.setObjectName("pbSetRE")
        self.horizontalLayout_14.addWidget(self.pbSetRE)
        self.leSetRE = QtWidgets.QLineEdit(self.setRE)
        self.leSetRE.setMinimumSize(QtCore.QSize(90, 0))
        self.leSetRE.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.leSetRE.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.leSetRE.setObjectName("leSetRE")
        self.horizontalLayout_14.addWidget(self.leSetRE)
        self.verticalLayout_7.addWidget(self.setRE)
        self.setWE1 = QtWidgets.QWidget(self.set)
        self.setWE1.setObjectName("setWE1")
        self.horizontalLayout_15 = QtWidgets.QHBoxLayout(self.setWE1)
        self.horizontalLayout_15.setContentsMargins(3, 0, 3, 0)
        self.horizontalLayout_15.setObjectName("horizontalLayout_15")
        self.pbSetWE1 = QtWidgets.QPushButton(self.setWE1)
        self.pbSetWE1.setMinimumSize(QtCore.QSize(90, 0))
        self.pbSetWE1.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.pbSetWE1.setObjectName("pbSetWE1")
        self.horizontalLayout_15.addWidget(self.pbSetWE1)
        self.leSetWE1 = QtWidgets.QLineEdit(self.setWE1)
        self.leSetWE1.setMinimumSize(QtCore.QSize(90, 0))
        self.leSetWE1.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.leSetWE1.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.leSetWE1.setObjectName("leSetWE1")
        self.horizontalLayout_15.addWidget(self.leSetWE1)
        self.verticalLayout_7.addWidget(self.setWE1)
        self.setWe2 = QtWidgets.QWidget(self.set)
        self.setWe2.setObjectName("setWe2")
        self.horizontalLayout_16 = QtWidgets.QHBoxLayout(self.setWe2)
        self.horizontalLayout_16.setContentsMargins(3, 0, 3, 0)
        self.horizontalLayout_16.setObjectName("horizontalLayout_16")
        self.pbSetWE2 = QtWidgets.QPushButton(self.setWe2)
        self.pbSetWE2.setMinimumSize(QtCore.QSize(90, 0))
        self.pbSetWE2.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.pbSetWE2.setObjectName("pbSetWE2")
        self.horizontalLayout_16.addWidget(self.pbSetWE2)
        self.leSetWE2 = QtWidgets.QLineEdit(self.setWe2)
        self.leSetWE2.setMinimumSize(QtCore.QSize(90, 0))
        self.leSetWE2.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.leSetWE2.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.leSetWE2.setObjectName("leSetWE2")
        self.horizontalLayout_16.addWidget(self.leSetWE2)
        self.verticalLayout_7.addWidget(self.setWe2)
        self.setADCRef = QtWidgets.QWidget(self.set)
        self.setADCRef.setObjectName("setADCRef")
        self.horizontalLayout_22 = QtWidgets.QHBoxLayout(self.setADCRef)
        self.horizontalLayout_22.setContentsMargins(3, 0, 3, 0)
        self.horizontalLayout_22.setObjectName("horizontalLayout_22")
        self.pbSetADCRef = QtWidgets.QPushButton(self.setADCRef)
        self.pbSetADCRef.setMinimumSize(QtCore.QSize(90, 0))
        self.pbSetADCRef.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.pbSetADCRef.setObjectName("pbSetADCRef")
        self.horizontalLayout_22.addWidget(self.pbSetADCRef)
        self.leSetADCRef = QtWidgets.QLineEdit(self.setADCRef)
        self.leSetADCRef.setMinimumSize(QtCore.QSize(90, 0))
        self.leSetADCRef.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.leSetADCRef.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.leSetADCRef.setObjectName("leSetADCRef")
        self.horizontalLayout_22.addWidget(self.leSetADCRef)
        self.verticalLayout_7.addWidget(self.setADCRef)
        self.switchWE = QtWidgets.QWidget(self.set)
        self.switchWE.setObjectName("switchWE")
        self.horizontalLayout_17 = QtWidgets.QHBoxLayout(self.switchWE)
        self.horizontalLayout_17.setContentsMargins(3, 0, 3, 0)
        self.horizontalLayout_17.setObjectName("horizontalLayout_17")
        self.pbSwWe1 = QtWidgets.QPushButton(self.switchWE)
        self.pbSwWe1.setMinimumSize(QtCore.QSize(90, 0))
        self.pbSwWe1.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.pbSwWe1.setCheckable(True)
        self.pbSwWe1.setChecked(False)
        self.pbSwWe1.setObjectName("pbSwWe1")
        self.horizontalLayout_17.addWidget(self.pbSwWe1)
        self.pbSwWe2 = QtWidgets.QPushButton(self.switchWE)
        self.pbSwWe2.setMinimumSize(QtCore.QSize(90, 0))
        self.pbSwWe2.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.pbSwWe2.setCheckable(True)
        self.pbSwWe2.setObjectName("pbSwWe2")
        self.horizontalLayout_17.addWidget(self.pbSwWe2)
        self.verticalLayout_7.addWidget(self.switchWE)
        self.switchEx = QtWidgets.QWidget(self.set)
        self.switchEx.setObjectName("switchEx")
        self.horizontalLayout_18 = QtWidgets.QHBoxLayout(self.switchEx)
        self.horizontalLayout_18.setContentsMargins(3, 0, 3, 0)
        self.horizontalLayout_18.setObjectName("horizontalLayout_18")
        self.pbSwEx1 = QtWidgets.QPushButton(self.switchEx)
        self.pbSwEx1.setMinimumSize(QtCore.QSize(90, 0))
        self.pbSwEx1.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.pbSwEx1.setCheckable(True)
        self.pbSwEx1.setObjectName("pbSwEx1")
        self.horizontalLayout_18.addWidget(self.pbSwEx1)
        self.pbSwEx2 = QtWidgets.QPushButton(self.switchEx)
        self.pbSwEx2.setMinimumSize(QtCore.QSize(90, 0))
        self.pbSwEx2.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.pbSwEx2.setCheckable(True)
        self.pbSwEx2.setObjectName("pbSwEx2")
        self.horizontalLayout_18.addWidget(self.pbSwEx2)
        self.verticalLayout_7.addWidget(self.switchEx)
        self.enableADC1 = QtWidgets.QWidget(self.set)
        self.enableADC1.setObjectName("enableADC1")
        self.horizontalLayout_19 = QtWidgets.QHBoxLayout(self.enableADC1)
        self.horizontalLayout_19.setContentsMargins(3, 0, 3, 0)
        self.horizontalLayout_19.setObjectName("horizontalLayout_19")
        self.pbEnADC5 = QtWidgets.QPushButton(self.enableADC1)
        self.pbEnADC5.setMinimumSize(QtCore.QSize(90, 0))
        self.pbEnADC5.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.pbEnADC5.setCheckable(True)
        self.pbEnADC5.setObjectName("pbEnADC5")
        self.horizontalLayout_19.addWidget(self.pbEnADC5)
        self.pbEnADC6 = QtWidgets.QPushButton(self.enableADC1)
        self.pbEnADC6.setMinimumSize(QtCore.QSize(90, 0))
        self.pbEnADC6.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.pbEnADC6.setCheckable(True)
        self.pbEnADC6.setObjectName("pbEnADC6")
        self.horizontalLayout_19.addWidget(self.pbEnADC6)
        self.verticalLayout_7.addWidget(self.enableADC1)
        self.enableADC2 = QtWidgets.QWidget(self.set)
        self.enableADC2.setObjectName("enableADC2")
        self.horizontalLayout_20 = QtWidgets.QHBoxLayout(self.enableADC2)
        self.horizontalLayout_20.setContentsMargins(3, 0, 3, 0)
        self.horizontalLayout_20.setObjectName("horizontalLayout_20")
        self.pbEnADC7 = QtWidgets.QPushButton(self.enableADC2)
        self.pbEnADC7.setMinimumSize(QtCore.QSize(90, 0))
        self.pbEnADC7.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.pbEnADC7.setCheckable(True)
        self.pbEnADC7.setObjectName("pbEnADC7")
        self.horizontalLayout_20.addWidget(self.pbEnADC7)
        self.pbEnADC8 = QtWidgets.QPushButton(self.enableADC2)
        self.pbEnADC8.setMinimumSize(QtCore.QSize(90, 0))
        self.pbEnADC8.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.pbEnADC8.setCheckable(True)
        self.pbEnADC8.setObjectName("pbEnADC8")
        self.horizontalLayout_20.addWidget(self.pbEnADC8)
        self.verticalLayout_7.addWidget(self.enableADC2)
        self.tabWidget.addTab(self.set, "")
        self.measure = QtWidgets.QWidget()
        self.measure.setObjectName("measure")
        self.tabWidget.addTab(self.measure, "")
        self.verticalLayout_5.addWidget(self.tabWidget)
        self.verticalLayout.addWidget(self.widget)
        self.Buttons = QtWidgets.QWidget(self.Electrode)
        self.Buttons.setMinimumSize(QtCore.QSize(200, 170))
        self.Buttons.setMaximumSize(QtCore.QSize(400, 200))
        self.Buttons.setObjectName("Buttons")
        self.verticalLayout_3 = QtWidgets.QVBoxLayout(self.Buttons)
        self.verticalLayout_3.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout_3.setSpacing(0)
        self.verticalLayout_3.setObjectName("verticalLayout_3")
        self.bRE = QtWidgets.QPushButton(self.Buttons)
        self.bRE.setMinimumSize(QtCore.QSize(140, 40))
        self.bRE.setMaximumSize(QtCore.QSize(140, 40))
        self.bRE.setLayoutDirection(QtCore.Qt.LeftToRight)
        self.bRE.setCheckable(True)
        self.bRE.setObjectName("bRE")
        self.verticalLayout_3.addWidget(self.bRE, 0, QtCore.Qt.AlignHCenter)
        self.WEs = QtWidgets.QWidget(self.Buttons)
        self.WEs.setMaximumSize(QtCore.QSize(16777215, 80))
        self.WEs.setObjectName("WEs")
        self.horizontalLayout_3 = QtWidgets.QHBoxLayout(self.WEs)
        self.horizontalLayout_3.setContentsMargins(10, 0, 9, 0)
        self.horizontalLayout_3.setSpacing(0)
        self.horizontalLayout_3.setObjectName("horizontalLayout_3")
        self.bWE1 = QtWidgets.QPushButton(self.WEs)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.bWE1.sizePolicy().hasHeightForWidth())
        self.bWE1.setSizePolicy(sizePolicy)
        self.bWE1.setMinimumSize(QtCore.QSize(50, 80))
        self.bWE1.setMaximumSize(QtCore.QSize(60, 80))
        self.bWE1.setCheckable(True)
        self.bWE1.setObjectName("bWE1")
        self.horizontalLayout_3.addWidget(self.bWE1)
        self.bWE2 = QtWidgets.QPushButton(self.WEs)
        self.bWE2.setMinimumSize(QtCore.QSize(50, 80))
        self.bWE2.setMaximumSize(QtCore.QSize(60, 80))
        self.bWE2.setCheckable(True)
        self.bWE2.setObjectName("bWE2")
        self.horizontalLayout_3.addWidget(self.bWE2)
        self.verticalLayout_3.addWidget(self.WEs)
        self.bCE = QtWidgets.QPushButton(self.Buttons)
        self.bCE.setMinimumSize(QtCore.QSize(140, 40))
        self.bCE.setMaximumSize(QtCore.QSize(400, 40))
        self.bCE.setCheckable(True)
        self.bCE.setObjectName("bCE")
        self.verticalLayout_3.addWidget(self.bCE, 0, QtCore.Qt.AlignHCenter)
        self.verticalLayout.addWidget(self.Buttons, 0, QtCore.Qt.AlignRight|QtCore.Qt.AlignVCenter)
        self.horizontalLayout_2.addWidget(self.Electrode)
        self.plots = QtWidgets.QWidget(self.Content)
        self.plots.setObjectName("plots")
        self.verticalLayout_4 = QtWidgets.QVBoxLayout(self.plots)
        self.verticalLayout_4.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout_4.setSpacing(0)
        self.verticalLayout_4.setObjectName("verticalLayout_4")
        self.widget_2 = QtWidgets.QWidget(self.plots)
        self.widget_2.setMaximumSize(QtCore.QSize(16777215, 50))
        self.widget_2.setObjectName("widget_2")
        self.horizontalLayout = QtWidgets.QHBoxLayout(self.widget_2)
        self.horizontalLayout.setContentsMargins(0, 0, 0, 0)
        self.horizontalLayout.setObjectName("horizontalLayout")
        spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout.addItem(spacerItem)
        self.label = QtWidgets.QLabel(self.widget_2)
        font = QtGui.QFont()
        font.setPointSize(22)
        font.setBold(True)
        font.setWeight(75)
        self.label.setFont(font)
        self.label.setTextFormat(QtCore.Qt.AutoText)
        self.label.setObjectName("label")
        self.horizontalLayout.addWidget(self.label)
        spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout.addItem(spacerItem1)
        self.verticalLayout_4.addWidget(self.widget_2)
        self.plot1_layout = QtWidgets.QWidget(self.plots)
        self.plot1_layout.setMinimumSize(QtCore.QSize(0, 200))
        self.plot1_layout.setMaximumSize(QtCore.QSize(16777215, 500))
        self.plot1_layout.setObjectName("plot1_layout")
        self.horizontalLayout_4 = QtWidgets.QHBoxLayout(self.plot1_layout)
        self.horizontalLayout_4.setContentsMargins(0, 5, 0, 0)
        self.horizontalLayout_4.setSpacing(5)
        self.horizontalLayout_4.setObjectName("horizontalLayout_4")
        self.widget_6 = QtWidgets.QWidget(self.plot1_layout)
        self.widget_6.setMinimumSize(QtCore.QSize(80, 0))
        self.widget_6.setMaximumSize(QtCore.QSize(200, 16777215))
        self.widget_6.setObjectName("widget_6")
        self.verticalLayout_8 = QtWidgets.QVBoxLayout(self.widget_6)
        self.verticalLayout_8.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout_8.setSpacing(8)
        self.verticalLayout_8.setObjectName("verticalLayout_8")
        self.setymax = QtWidgets.QWidget(self.widget_6)
        self.setymax.setMaximumSize(QtCore.QSize(16777215, 50))
        self.setymax.setObjectName("setymax")
        self.verticalLayout_9 = QtWidgets.QVBoxLayout(self.setymax)
        self.verticalLayout_9.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout_9.setSpacing(0)
        self.verticalLayout_9.setObjectName("verticalLayout_9")
        self.label_11 = QtWidgets.QLabel(self.setymax)
        self.label_11.setMaximumSize(QtCore.QSize(80, 15))
        self.label_11.setObjectName("label_11")
        self.verticalLayout_9.addWidget(self.label_11)
        self.leYMax1 = QtWidgets.QLineEdit(self.setymax)
        self.leYMax1.setObjectName("leYMax1")
        self.verticalLayout_9.addWidget(self.leYMax1)
        self.verticalLayout_8.addWidget(self.setymax)
        self.pbAutoScale1 = QtWidgets.QPushButton(self.widget_6)
        self.pbAutoScale1.setCheckable(True)
        self.pbAutoScale1.setChecked(True)
        self.pbAutoScale1.setObjectName("pbAutoScale1")
        self.verticalLayout_8.addWidget(self.pbAutoScale1)
        self.pbSetDisplay1 = QtWidgets.QPushButton(self.widget_6)
        self.pbSetDisplay1.setCheckable(True)
        self.pbSetDisplay1.setObjectName("pbSetDisplay1")
        self.verticalLayout_8.addWidget(self.pbSetDisplay1)
        self.setymin = QtWidgets.QWidget(self.widget_6)
        self.setymin.setMaximumSize(QtCore.QSize(16777215, 50))
        self.setymin.setObjectName("setymin")
        self.verticalLayout_10 = QtWidgets.QVBoxLayout(self.setymin)
        self.verticalLayout_10.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout_10.setSpacing(0)
        self.verticalLayout_10.setObjectName("verticalLayout_10")
        self.label_12 = QtWidgets.QLabel(self.setymin)
        self.label_12.setMaximumSize(QtCore.QSize(16777215, 15))
        self.label_12.setObjectName("label_12")
        self.verticalLayout_10.addWidget(self.label_12)
        self.leYMin1 = QtWidgets.QLineEdit(self.setymin)
        self.leYMin1.setObjectName("leYMin1")
        self.verticalLayout_10.addWidget(self.leYMin1)
        self.verticalLayout_8.addWidget(self.setymin)
        self.horizontalLayout_4.addWidget(self.widget_6)
        self.plot1 = PlotWidget(self.plot1_layout)
        self.plot1.setMinimumSize(QtCore.QSize(640, 180))
        self.plot1.setMaximumSize(QtCore.QSize(16777215, 360))
        self.plot1.setObjectName("plot1")
        self.horizontalLayout_4.addWidget(self.plot1)
        self.verticalLayout_4.addWidget(self.plot1_layout)
        self.plot2_layout = QtWidgets.QWidget(self.plots)
        self.plot2_layout.setMinimumSize(QtCore.QSize(0, 200))
        self.plot2_layout.setMaximumSize(QtCore.QSize(16777215, 500))
        self.plot2_layout.setObjectName("plot2_layout")
        self.horizontalLayout_21 = QtWidgets.QHBoxLayout(self.plot2_layout)
        self.horizontalLayout_21.setContentsMargins(0, 5, 0, 0)
        self.horizontalLayout_21.setSpacing(5)
        self.horizontalLayout_21.setObjectName("horizontalLayout_21")
        self.widget_7 = QtWidgets.QWidget(self.plot2_layout)
        self.widget_7.setMinimumSize(QtCore.QSize(80, 0))
        self.widget_7.setMaximumSize(QtCore.QSize(200, 16777215))
        self.widget_7.setObjectName("widget_7")
        self.verticalLayout_11 = QtWidgets.QVBoxLayout(self.widget_7)
        self.verticalLayout_11.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout_11.setSpacing(8)
        self.verticalLayout_11.setObjectName("verticalLayout_11")
        self.setymax_2 = QtWidgets.QWidget(self.widget_7)
        self.setymax_2.setMaximumSize(QtCore.QSize(16777215, 50))
        self.setymax_2.setObjectName("setymax_2")
        self.verticalLayout_12 = QtWidgets.QVBoxLayout(self.setymax_2)
        self.verticalLayout_12.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout_12.setSpacing(0)
        self.verticalLayout_12.setObjectName("verticalLayout_12")
        self.label_13 = QtWidgets.QLabel(self.setymax_2)
        self.label_13.setMaximumSize(QtCore.QSize(80, 15))
        self.label_13.setObjectName("label_13")
        self.verticalLayout_12.addWidget(self.label_13)
        self.leYMax2 = QtWidgets.QLineEdit(self.setymax_2)
        self.leYMax2.setObjectName("leYMax2")
        self.verticalLayout_12.addWidget(self.leYMax2)
        self.verticalLayout_11.addWidget(self.setymax_2)
        self.pbAutoScale2 = QtWidgets.QPushButton(self.widget_7)
        self.pbAutoScale2.setCheckable(True)
        self.pbAutoScale2.setChecked(True)
        self.pbAutoScale2.setObjectName("pbAutoScale2")
        self.verticalLayout_11.addWidget(self.pbAutoScale2)
        self.pbSetDisplay2 = QtWidgets.QPushButton(self.widget_7)
        self.pbSetDisplay2.setCheckable(True)
        self.pbSetDisplay2.setObjectName("pbSetDisplay2")
        self.verticalLayout_11.addWidget(self.pbSetDisplay2)
        self.setymin_2 = QtWidgets.QWidget(self.widget_7)
        self.setymin_2.setMaximumSize(QtCore.QSize(16777215, 50))
        self.setymin_2.setObjectName("setymin_2")
        self.verticalLayout_13 = QtWidgets.QVBoxLayout(self.setymin_2)
        self.verticalLayout_13.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout_13.setSpacing(0)
        self.verticalLayout_13.setObjectName("verticalLayout_13")
        self.label_14 = QtWidgets.QLabel(self.setymin_2)
        self.label_14.setMaximumSize(QtCore.QSize(16777215, 15))
        self.label_14.setObjectName("label_14")
        self.verticalLayout_13.addWidget(self.label_14)
        self.leYMin2 = QtWidgets.QLineEdit(self.setymin_2)
        self.leYMin2.setObjectName("leYMin2")
        self.verticalLayout_13.addWidget(self.leYMin2)
        self.verticalLayout_11.addWidget(self.setymin_2)
        self.horizontalLayout_21.addWidget(self.widget_7)
        self.plot2 = PlotWidget(self.plot2_layout)
        self.plot2.setMinimumSize(QtCore.QSize(640, 180))
        self.plot2.setMaximumSize(QtCore.QSize(16777215, 360))
        self.plot2.setObjectName("plot2")
        self.horizontalLayout_21.addWidget(self.plot2)
        self.verticalLayout_4.addWidget(self.plot2_layout)
        self.horizontalLayout_2.addWidget(self.plots)
        self.verticalLayout_2.addWidget(self.Content)
        MainWindow.setCentralWidget(self.centralwidget)
        self.menubar = QtWidgets.QMenuBar(MainWindow)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 960, 19))
        self.menubar.setObjectName("menubar")
        self.menu_File = QtWidgets.QMenu(self.menubar)
        self.menu_File.setObjectName("menu_File")
        self.menu_Tools = QtWidgets.QMenu(self.menubar)
        self.menu_Tools.setObjectName("menu_Tools")
        self.menu_Electrochemistry_Measurement = QtWidgets.QMenu(self.menu_Tools)
        self.menu_Electrochemistry_Measurement.setObjectName("menu_Electrochemistry_Measurement")
        MainWindow.setMenuBar(self.menubar)
        self.statusbar = QtWidgets.QStatusBar(MainWindow)
        self.statusbar.setObjectName("statusbar")
        MainWindow.setStatusBar(self.statusbar)
        self.action_Load_FPGA = QtWidgets.QAction(MainWindow)
        self.action_Load_FPGA.setObjectName("action_Load_FPGA")
        self.actionLog_browser = QtWidgets.QAction(MainWindow)
        self.actionLog_browser.setObjectName("actionLog_browser")
        self.actionCyclic_voltametry = QtWidgets.QAction(MainWindow)
        self.actionCyclic_voltametry.setObjectName("actionCyclic_voltametry")
        self.actionSquare_wave_voltametry = QtWidgets.QAction(MainWindow)
        self.actionSquare_wave_voltametry.setObjectName("actionSquare_wave_voltametry")
        self.actionOpen = QtWidgets.QAction(MainWindow)
        self.actionOpen.setObjectName("actionOpen")
        self.action_Exit = QtWidgets.QAction(MainWindow)
        self.action_Exit.setObjectName("action_Exit")
        self.action_Save = QtWidgets.QAction(MainWindow)
        self.action_Save.setObjectName("action_Save")
        self.action_Connect_FPGA = QtWidgets.QAction(MainWindow)
        self.action_Connect_FPGA.setObjectName("action_Connect_FPGA")
        self.menu_File.addAction(self.actionOpen)
        self.menu_File.addAction(self.action_Save)
        self.menu_File.addAction(self.action_Connect_FPGA)
        self.menu_File.addAction(self.action_Load_FPGA)
        self.menu_File.addAction(self.action_Exit)
        self.menu_Electrochemistry_Measurement.addAction(self.actionCyclic_voltametry)
        self.menu_Electrochemistry_Measurement.addAction(self.actionSquare_wave_voltametry)
        self.menu_Tools.addAction(self.actionLog_browser)
        self.menu_Tools.addAction(self.menu_Electrochemistry_Measurement.menuAction())
        self.menubar.addAction(self.menu_File.menuAction())
        self.menubar.addAction(self.menu_Tools.menuAction())

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

    def retranslateUi(self, MainWindow):
        _translate = QtCore.QCoreApplication.translate
        MainWindow.setWindowTitle(_translate("MainWindow", "MainWindow"))
        self.label_2.setText(_translate("MainWindow", "General Status: "))
        self.label_3.setText(_translate("MainWindow", "Reference:"))
        self.label_4.setText(_translate("MainWindow", "Counter:"))
        self.label_6.setText(_translate("MainWindow", "Working1:"))
        self.label_5.setText(_translate("MainWindow", "Working2:"))
        self.label_7.setText(_translate("MainWindow", "Extra1:"))
        self.label_8.setText(_translate("MainWindow", "Extra2:"))
        self.label_9.setText(_translate("MainWindow", "Extra3:"))
        self.label_10.setText(_translate("MainWindow", "Extra4:"))
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.read), _translate("MainWindow", "Read"))
        self.pbSetRE.setText(_translate("MainWindow", "Set RE"))
        self.pbSetWE1.setText(_translate("MainWindow", "Set WE1"))
        self.pbSetWE2.setText(_translate("MainWindow", "Set WE2"))
        self.pbSetADCRef.setText(_translate("MainWindow", "Set ADC Ref"))
        self.pbSwWe1.setText(_translate("MainWindow", "SW_WE1"))
        self.pbSwWe2.setText(_translate("MainWindow", "SW_WE2"))
        self.pbSwEx1.setText(_translate("MainWindow", "SW_EX1"))
        self.pbSwEx2.setText(_translate("MainWindow", "SW_EX2"))
        self.pbEnADC5.setText(_translate("MainWindow", "EN_ADC5"))
        self.pbEnADC6.setText(_translate("MainWindow", "EN_ADC6"))
        self.pbEnADC7.setText(_translate("MainWindow", "EN_ADC7"))
        self.pbEnADC8.setText(_translate("MainWindow", "EN_ADC8"))
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.set), _translate("MainWindow", "Set"))
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.measure), _translate("MainWindow", "Measure"))
        self.bRE.setText(_translate("MainWindow", "RE"))
        self.bWE1.setText(_translate("MainWindow", "WE1"))
        self.bWE2.setText(_translate("MainWindow", "WE2"))
        self.bCE.setText(_translate("MainWindow", "CE"))
        self.label.setText(_translate("MainWindow", "BioEE Colony Stimulation Platform"))
        self.label_11.setText(_translate("MainWindow", "Y Max"))
        self.pbAutoScale1.setText(_translate("MainWindow", "Auto Scale"))
        self.pbSetDisplay1.setText(_translate("MainWindow", "Set Display"))
        self.label_12.setText(_translate("MainWindow", "Y Min"))
        self.label_13.setText(_translate("MainWindow", "Y Max"))
        self.pbAutoScale2.setText(_translate("MainWindow", "Auto Scale"))
        self.pbSetDisplay2.setText(_translate("MainWindow", "Set Display"))
        self.label_14.setText(_translate("MainWindow", "Y Min"))
        self.menu_File.setTitle(_translate("MainWindow", "&File"))
        self.menu_Tools.setTitle(_translate("MainWindow", "&Tools"))
        self.menu_Electrochemistry_Measurement.setTitle(_translate("MainWindow", "&Electrochemistry Measurement"))
        self.action_Load_FPGA.setText(_translate("MainWindow", "&Load FPGA ..."))
        self.actionLog_browser.setText(_translate("MainWindow", "Lo&g browser"))
        self.actionCyclic_voltametry.setText(_translate("MainWindow", "Cyclic voltametry ..."))
        self.actionSquare_wave_voltametry.setText(_translate("MainWindow", "Square wave voltametry ..."))
        self.actionOpen.setText(_translate("MainWindow", "&Open ..."))
        self.action_Exit.setText(_translate("MainWindow", "&Exit"))
        self.action_Save.setText(_translate("MainWindow", "&Save ..."))
        self.action_Connect_FPGA.setText(_translate("MainWindow", "&Connect FPGA"))
Пример #24
0
class Ui_MainWindow(object):
    def setupUi(self, MainWindow):
        MainWindow.setObjectName("MainWindow")
        MainWindow.resize(1121, 894)
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap(":/reaload/GUI/Icons/comport.png"),
                       QtGui.QIcon.Normal, QtGui.QIcon.On)
        MainWindow.setWindowIcon(icon)
        self.centralwidget = QtWidgets.QWidget(MainWindow)
        self.centralwidget.setObjectName("centralwidget")
        self.gridLayout = QtWidgets.QGridLayout(self.centralwidget)
        self.gridLayout.setObjectName("gridLayout")
        self.frame = QtWidgets.QFrame(self.centralwidget)
        sizePolicy = QtWidgets.QSizePolicy(
            QtWidgets.QSizePolicy.MinimumExpanding,
            QtWidgets.QSizePolicy.MinimumExpanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.frame.sizePolicy().hasHeightForWidth())
        self.frame.setSizePolicy(sizePolicy)
        self.frame.setMinimumSize(QtCore.QSize(120, 100))
        self.frame.setMaximumSize(QtCore.QSize(16777215, 100))
        self.frame.setFrameShape(QtWidgets.QFrame.StyledPanel)
        self.frame.setFrameShadow(QtWidgets.QFrame.Raised)
        self.frame.setObjectName("frame")
        self.gridLayout_10 = QtWidgets.QGridLayout(self.frame)
        self.gridLayout_10.setObjectName("gridLayout_10")
        self.directory_button = QtWidgets.QPushButton(self.frame)
        self.directory_button.setObjectName("directory_button")
        self.gridLayout_10.addWidget(self.directory_button, 0, 13, 1, 1)
        self.channel_box = QtWidgets.QComboBox(self.frame)
        self.channel_box.setEnabled(False)
        self.channel_box.setObjectName("channel_box")
        self.channel_box.addItem("")
        self.channel_box.addItem("")
        self.gridLayout_10.addWidget(self.channel_box, 2, 12, 1, 1)
        self.line = QtWidgets.QFrame(self.frame)
        self.line.setFrameShape(QtWidgets.QFrame.VLine)
        self.line.setFrameShadow(QtWidgets.QFrame.Sunken)
        self.line.setObjectName("line")
        self.gridLayout_10.addWidget(self.line, 0, 7, 3, 2)
        self.label_10 = QtWidgets.QLabel(self.frame)
        self.label_10.setAlignment(QtCore.Qt.AlignCenter)
        self.label_10.setObjectName("label_10")
        self.gridLayout_10.addWidget(self.label_10, 0, 10, 1, 1)
        self.quitButton = QtWidgets.QPushButton(self.frame)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.quitButton.sizePolicy().hasHeightForWidth())
        self.quitButton.setSizePolicy(sizePolicy)
        self.quitButton.setMinimumSize(QtCore.QSize(60, 40))
        self.quitButton.setMaximumSize(QtCore.QSize(60, 40))
        self.quitButton.setObjectName("quitButton")
        self.gridLayout_10.addWidget(self.quitButton, 0, 16, 1, 1)
        self.fullscreenButton = QtWidgets.QPushButton(self.frame)
        self.fullscreenButton.setMinimumSize(QtCore.QSize(60, 40))
        self.fullscreenButton.setMaximumSize(QtCore.QSize(60, 40))
        self.fullscreenButton.setObjectName("fullscreenButton")
        self.gridLayout_10.addWidget(self.fullscreenButton, 2, 16, 1, 1)
        self.device_box = QtWidgets.QComboBox(self.frame)
        self.device_box.setObjectName("device_box")
        self.device_box.addItem("")
        self.device_box.addItem("")
        self.gridLayout_10.addWidget(self.device_box, 2, 10, 1, 1)
        self.stopButton = QtWidgets.QPushButton(self.frame)
        self.stopButton.setEnabled(False)
        self.stopButton.setMinimumSize(QtCore.QSize(85, 60))
        self.stopButton.setObjectName("stopButton")
        self.gridLayout_10.addWidget(self.stopButton, 0, 2, 1, 1)
        self.startButton = QtWidgets.QPushButton(self.frame)
        self.startButton.setEnabled(False)
        self.startButton.setMinimumSize(QtCore.QSize(85, 60))
        self.startButton.setObjectName("startButton")
        self.gridLayout_10.addWidget(self.startButton, 0, 0, 1, 1)
        self.label_11 = QtWidgets.QLabel(self.frame)
        self.label_11.setAlignment(QtCore.Qt.AlignCenter)
        self.label_11.setObjectName("label_11")
        self.gridLayout_10.addWidget(self.label_11, 0, 12, 1, 1)
        self.directory_path = QtWidgets.QPlainTextEdit(self.frame)
        self.directory_path.setEnabled(True)
        font = QtGui.QFont()
        font.setBold(True)
        font.setWeight(75)
        self.directory_path.setFont(font)
        self.directory_path.setFrameShape(QtWidgets.QFrame.Box)
        self.directory_path.setFrameShadow(QtWidgets.QFrame.Plain)
        self.directory_path.setLineWidth(2)
        self.directory_path.setVerticalScrollBarPolicy(
            QtCore.Qt.ScrollBarAlwaysOff)
        self.directory_path.setReadOnly(True)
        self.directory_path.setObjectName("directory_path")
        self.gridLayout_10.addWidget(self.directory_path, 0, 14, 1, 1)
        self.label_17 = QtWidgets.QLabel(self.frame)
        self.label_17.setAlignment(QtCore.Qt.AlignCenter)
        self.label_17.setObjectName("label_17")
        self.gridLayout_10.addWidget(self.label_17, 2, 13, 1, 1)
        self.name_of_cell = QtWidgets.QPlainTextEdit(self.frame)
        self.name_of_cell.setVerticalScrollBarPolicy(
            QtCore.Qt.ScrollBarAlwaysOff)
        self.name_of_cell.setHorizontalScrollBarPolicy(
            QtCore.Qt.ScrollBarAlwaysOff)
        self.name_of_cell.setObjectName("name_of_cell")
        self.gridLayout_10.addWidget(self.name_of_cell, 2, 14, 1, 1)
        self.runingLabel = QtWidgets.QLabel(self.frame)
        font = QtGui.QFont()
        font.setPointSize(28)
        self.runingLabel.setFont(font)
        self.runingLabel.setTextFormat(QtCore.Qt.RichText)
        self.runingLabel.setAlignment(QtCore.Qt.AlignCenter)
        self.runingLabel.setObjectName("runingLabel")
        self.gridLayout_10.addWidget(self.runingLabel, 0, 6, 3, 1)
        self.gridLayout.addWidget(self.frame, 0, 0, 1, 1)
        self.tabWidget = QtWidgets.QTabWidget(self.centralwidget)
        self.tabWidget.setObjectName("tabWidget")
        self.vach_tab = QtWidgets.QWidget()
        self.vach_tab.setObjectName("vach_tab")
        self.gridLayout_2 = QtWidgets.QGridLayout(self.vach_tab)
        self.gridLayout_2.setObjectName("gridLayout_2")
        self.power_graph = PlotWidget(self.vach_tab)
        sizePolicy = QtWidgets.QSizePolicy(
            QtWidgets.QSizePolicy.MinimumExpanding,
            QtWidgets.QSizePolicy.MinimumExpanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.power_graph.sizePolicy().hasHeightForWidth())
        self.power_graph.setSizePolicy(sizePolicy)
        self.power_graph.setMinimumSize(QtCore.QSize(300, 200))
        self.power_graph.setObjectName("power_graph")
        self.gridLayout_2.addWidget(self.power_graph, 1, 2, 1, 1)
        self.frame_2 = QtWidgets.QFrame(self.vach_tab)
        sizePolicy = QtWidgets.QSizePolicy(
            QtWidgets.QSizePolicy.MinimumExpanding,
            QtWidgets.QSizePolicy.MinimumExpanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.frame_2.sizePolicy().hasHeightForWidth())
        self.frame_2.setSizePolicy(sizePolicy)
        self.frame_2.setMinimumSize(QtCore.QSize(700, 300))
        self.frame_2.setMaximumSize(QtCore.QSize(16777215, 300))
        self.frame_2.setFrameShape(QtWidgets.QFrame.StyledPanel)
        self.frame_2.setFrameShadow(QtWidgets.QFrame.Raised)
        self.frame_2.setObjectName("frame_2")
        self.gridLayout_3 = QtWidgets.QGridLayout(self.frame_2)
        self.gridLayout_3.setObjectName("gridLayout_3")
        self.frame_3 = QtWidgets.QFrame(self.frame_2)
        sizePolicy = QtWidgets.QSizePolicy(
            QtWidgets.QSizePolicy.MinimumExpanding,
            QtWidgets.QSizePolicy.MinimumExpanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.frame_3.sizePolicy().hasHeightForWidth())
        self.frame_3.setSizePolicy(sizePolicy)
        self.frame_3.setMinimumSize(QtCore.QSize(330, 144))
        self.frame_3.setMaximumSize(QtCore.QSize(330, 16777215))
        self.frame_3.setFrameShape(QtWidgets.QFrame.StyledPanel)
        self.frame_3.setFrameShadow(QtWidgets.QFrame.Raised)
        self.frame_3.setObjectName("frame_3")
        self.gridLayout_8 = QtWidgets.QGridLayout(self.frame_3)
        self.gridLayout_8.setObjectName("gridLayout_8")
        self.label = QtWidgets.QLabel(self.frame_3)
        font = QtGui.QFont()
        font.setPointSize(11)
        font.setBold(True)
        font.setWeight(75)
        self.label.setFont(font)
        self.label.setLayoutDirection(QtCore.Qt.LeftToRight)
        self.label.setTextFormat(QtCore.Qt.AutoText)
        self.label.setAlignment(QtCore.Qt.AlignCenter)
        self.label.setObjectName("label")
        self.gridLayout_8.addWidget(self.label, 0, 0, 1, 2)
        self.label_2 = QtWidgets.QLabel(self.frame_3)
        self.label_2.setAlignment(QtCore.Qt.AlignCenter)
        self.label_2.setObjectName("label_2")
        self.gridLayout_8.addWidget(self.label_2, 1, 0, 1, 1)
        self.label_4 = QtWidgets.QLabel(self.frame_3)
        self.label_4.setAlignment(QtCore.Qt.AlignCenter)
        self.label_4.setObjectName("label_4")
        self.gridLayout_8.addWidget(self.label_4, 1, 1, 1, 1)
        self.startV_box = QtWidgets.QDoubleSpinBox(self.frame_3)
        self.startV_box.setMinimumSize(QtCore.QSize(0, 25))
        self.startV_box.setMinimum(-20.0)
        self.startV_box.setMaximum(20.0)
        self.startV_box.setSingleStep(0.1)
        self.startV_box.setProperty("value", 2.0)
        self.startV_box.setObjectName("startV_box")
        self.gridLayout_8.addWidget(self.startV_box, 2, 0, 1, 1)
        self.limitA_box = QtWidgets.QDoubleSpinBox(self.frame_3)
        self.limitA_box.setMinimumSize(QtCore.QSize(0, 25))
        self.limitA_box.setProperty("value", 0.05)
        self.limitA_box.setObjectName("limitA_box")
        self.gridLayout_8.addWidget(self.limitA_box, 2, 1, 1, 1)
        self.label_3 = QtWidgets.QLabel(self.frame_3)
        self.label_3.setAlignment(QtCore.Qt.AlignCenter)
        self.label_3.setObjectName("label_3")
        self.gridLayout_8.addWidget(self.label_3, 3, 0, 1, 1)
        self.label_5 = QtWidgets.QLabel(self.frame_3)
        self.label_5.setAlignment(QtCore.Qt.AlignCenter)
        self.label_5.setObjectName("label_5")
        self.gridLayout_8.addWidget(self.label_5, 3, 1, 1, 1)
        self.endV_box = QtWidgets.QDoubleSpinBox(self.frame_3)
        self.endV_box.setMinimumSize(QtCore.QSize(0, 25))
        self.endV_box.setMinimum(-20.0)
        self.endV_box.setMaximum(20.0)
        self.endV_box.setSingleStep(0.1)
        self.endV_box.setObjectName("endV_box")
        self.gridLayout_8.addWidget(self.endV_box, 4, 0, 1, 1)
        self.points_box = QtWidgets.QSpinBox(self.frame_3)
        self.points_box.setMinimumSize(QtCore.QSize(0, 25))
        self.points_box.setMaximum(1000)
        self.points_box.setProperty("value", 50)
        self.points_box.setObjectName("points_box")
        self.gridLayout_8.addWidget(self.points_box, 4, 1, 1, 1)
        self.gridLayout_3.addWidget(self.frame_3, 0, 0, 1, 1)
        self.current_graph = PlotWidget(self.frame_2)
        sizePolicy = QtWidgets.QSizePolicy(
            QtWidgets.QSizePolicy.MinimumExpanding,
            QtWidgets.QSizePolicy.MinimumExpanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.current_graph.sizePolicy().hasHeightForWidth())
        self.current_graph.setSizePolicy(sizePolicy)
        self.current_graph.setMinimumSize(QtCore.QSize(200, 150))
        self.current_graph.setMaximumSize(QtCore.QSize(450, 300))
        self.current_graph.setSizeIncrement(QtCore.QSize(0, 0))
        self.current_graph.setLayoutDirection(QtCore.Qt.LeftToRight)
        self.current_graph.setObjectName("current_graph")
        self.gridLayout_3.addWidget(self.current_graph, 0, 1, 2, 1)
        spacerItem = QtWidgets.QSpacerItem(40, 20,
                                           QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Minimum)
        self.gridLayout_3.addItem(spacerItem, 0, 4, 1, 1)
        self.frame_4 = QtWidgets.QFrame(self.frame_2)
        sizePolicy = QtWidgets.QSizePolicy(
            QtWidgets.QSizePolicy.MinimumExpanding,
            QtWidgets.QSizePolicy.MinimumExpanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.frame_4.sizePolicy().hasHeightForWidth())
        self.frame_4.setSizePolicy(sizePolicy)
        self.frame_4.setMinimumSize(QtCore.QSize(330, 135))
        self.frame_4.setMaximumSize(QtCore.QSize(330, 135))
        self.frame_4.setFrameShape(QtWidgets.QFrame.StyledPanel)
        self.frame_4.setFrameShadow(QtWidgets.QFrame.Raised)
        self.frame_4.setObjectName("frame_4")
        self.gridLayout_7 = QtWidgets.QGridLayout(self.frame_4)
        self.gridLayout_7.setObjectName("gridLayout_7")
        self.label_7 = QtWidgets.QLabel(self.frame_4)
        self.label_7.setAlignment(QtCore.Qt.AlignCenter)
        self.label_7.setObjectName("label_7")
        self.gridLayout_7.addWidget(self.label_7, 0, 0, 1, 1)
        self.array_size_box = QtWidgets.QSpinBox(self.frame_4)
        self.array_size_box.setMaximum(1000)
        self.array_size_box.setProperty("value", 50)
        self.array_size_box.setObjectName("array_size_box")
        self.gridLayout_7.addWidget(self.array_size_box, 1, 0, 1, 1)
        self.wait_box = QtWidgets.QSpinBox(self.frame_4)
        self.wait_box.setObjectName("wait_box")
        self.gridLayout_7.addWidget(self.wait_box, 3, 0, 1, 1)
        self.label_8 = QtWidgets.QLabel(self.frame_4)
        self.label_8.setAlignment(QtCore.Qt.AlignCenter)
        self.label_8.setObjectName("label_8")
        self.gridLayout_7.addWidget(self.label_8, 2, 0, 1, 1)
        self.x_mean_box = QtWidgets.QDoubleSpinBox(self.frame_4)
        self.x_mean_box.setDecimals(3)
        self.x_mean_box.setSingleStep(0.1)
        self.x_mean_box.setProperty("value", 0.5)
        self.x_mean_box.setObjectName("x_mean_box")
        self.gridLayout_7.addWidget(self.x_mean_box, 3, 2, 1, 1)
        self.label_9 = QtWidgets.QLabel(self.frame_4)
        self.label_9.setAlignment(QtCore.Qt.AlignCenter)
        self.label_9.setWordWrap(False)
        self.label_9.setObjectName("label_9")
        self.gridLayout_7.addWidget(self.label_9, 2, 2, 1, 1)
        self.label_6 = QtWidgets.QLabel(self.frame_4)
        font = QtGui.QFont()
        font.setPointSize(11)
        font.setBold(True)
        font.setWeight(75)
        self.label_6.setFont(font)
        self.label_6.setLayoutDirection(QtCore.Qt.LeftToRight)
        self.label_6.setTextFormat(QtCore.Qt.AutoText)
        self.label_6.setAlignment(QtCore.Qt.AlignCenter)
        self.label_6.setObjectName("label_6")
        self.gridLayout_7.addWidget(self.label_6, 1, 2, 1, 1)
        self.live_error = QtWidgets.QLabel(self.frame_4)
        self.live_error.setAlignment(QtCore.Qt.AlignCenter)
        self.live_error.setObjectName("live_error")
        self.gridLayout_7.addWidget(self.live_error, 0, 2, 1, 1)
        self.gridLayout_3.addWidget(self.frame_4, 1, 0, 2, 1)
        self.frame_6 = QtWidgets.QFrame(self.frame_2)
        sizePolicy = QtWidgets.QSizePolicy(
            QtWidgets.QSizePolicy.MinimumExpanding,
            QtWidgets.QSizePolicy.MinimumExpanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.frame_6.sizePolicy().hasHeightForWidth())
        self.frame_6.setSizePolicy(sizePolicy)
        self.frame_6.setMinimumSize(QtCore.QSize(330, 120))
        self.frame_6.setMaximumSize(QtCore.QSize(450, 120))
        self.frame_6.setFrameShape(QtWidgets.QFrame.StyledPanel)
        self.frame_6.setFrameShadow(QtWidgets.QFrame.Raised)
        self.frame_6.setObjectName("frame_6")
        self.gridLayout_11 = QtWidgets.QGridLayout(self.frame_6)
        self.gridLayout_11.setObjectName("gridLayout_11")
        self.label_18 = QtWidgets.QLabel(self.frame_6)
        self.label_18.setAlignment(QtCore.Qt.AlignCenter)
        self.label_18.setObjectName("label_18")
        self.gridLayout_11.addWidget(self.label_18, 0, 0, 1, 1)
        self.label_20 = QtWidgets.QLabel(self.frame_6)
        self.label_20.setAlignment(QtCore.Qt.AlignCenter)
        self.label_20.setWordWrap(False)
        self.label_20.setObjectName("label_20")
        self.gridLayout_11.addWidget(self.label_20, 0, 1, 1, 1)
        self.power_input_box = QtWidgets.QDoubleSpinBox(self.frame_6)
        self.power_input_box.setMinimum(1.0)
        self.power_input_box.setMaximum(1000.0)
        self.power_input_box.setProperty("value", 100.0)
        self.power_input_box.setObjectName("power_input_box")
        self.gridLayout_11.addWidget(self.power_input_box, 1, 1, 1, 1)
        self.area_box = QtWidgets.QDoubleSpinBox(self.frame_6)
        self.area_box.setMinimum(1.0)
        self.area_box.setMaximum(1000.0)
        self.area_box.setProperty("value", 8.0)
        self.area_box.setObjectName("area_box")
        self.gridLayout_11.addWidget(self.area_box, 1, 0, 1, 1)
        self.gridLayout_3.addWidget(self.frame_6, 2, 1, 1, 1)
        spacerItem1 = QtWidgets.QSpacerItem(40, 20,
                                            QtWidgets.QSizePolicy.Expanding,
                                            QtWidgets.QSizePolicy.Minimum)
        self.gridLayout_3.addItem(spacerItem1, 2, 4, 1, 1)
        self.real_data_output = QtWidgets.QPlainTextEdit(self.frame_2)
        self.real_data_output.setMaximumSize(QtCore.QSize(300, 16777215))
        self.real_data_output.setVerticalScrollBarPolicy(
            QtCore.Qt.ScrollBarAlwaysOn)
        self.real_data_output.setObjectName("real_data_output")
        self.gridLayout_3.addWidget(self.real_data_output, 0, 2, 3, 1)
        self.current_graph.raise_()
        self.frame_3.raise_()
        self.frame_6.raise_()
        self.frame_4.raise_()
        self.real_data_output.raise_()
        self.gridLayout_2.addWidget(self.frame_2, 0, 0, 1, 3)
        self.frame_5 = QtWidgets.QFrame(self.vach_tab)
        sizePolicy = QtWidgets.QSizePolicy(
            QtWidgets.QSizePolicy.Fixed,
            QtWidgets.QSizePolicy.MinimumExpanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.frame_5.sizePolicy().hasHeightForWidth())
        self.frame_5.setSizePolicy(sizePolicy)
        self.frame_5.setMinimumSize(QtCore.QSize(90, 200))
        self.frame_5.setFrameShape(QtWidgets.QFrame.StyledPanel)
        self.frame_5.setFrameShadow(QtWidgets.QFrame.Raised)
        self.frame_5.setObjectName("frame_5")
        self.verticalLayout = QtWidgets.QVBoxLayout(self.frame_5)
        self.verticalLayout.setObjectName("verticalLayout")
        self.fbStatusLabel = QtWidgets.QLabel(self.frame_5)
        font = QtGui.QFont()
        font.setBold(True)
        font.setWeight(75)
        self.fbStatusLabel.setFont(font)
        self.fbStatusLabel.setObjectName("fbStatusLabel")
        self.verticalLayout.addWidget(self.fbStatusLabel)
        self.label_12 = QtWidgets.QLabel(self.frame_5)
        font = QtGui.QFont()
        font.setBold(True)
        font.setWeight(75)
        self.label_12.setFont(font)
        self.label_12.setAlignment(QtCore.Qt.AlignCenter)
        self.label_12.setObjectName("label_12")
        self.verticalLayout.addWidget(self.label_12)
        self.pceLCD = QtWidgets.QDoubleSpinBox(self.frame_5)
        font = QtGui.QFont()
        font.setPointSize(14)
        self.pceLCD.setFont(font)
        self.pceLCD.setReadOnly(True)
        self.pceLCD.setDecimals(7)
        self.pceLCD.setMinimum(-1000.0)
        self.pceLCD.setMaximum(1000.0)
        self.pceLCD.setObjectName("pceLCD")
        self.verticalLayout.addWidget(self.pceLCD)
        self.label_13 = QtWidgets.QLabel(self.frame_5)
        self.label_13.setAlignment(QtCore.Qt.AlignCenter)
        self.label_13.setObjectName("label_13")
        self.verticalLayout.addWidget(self.label_13)
        self.ffLCD = QtWidgets.QDoubleSpinBox(self.frame_5)
        font = QtGui.QFont()
        font.setPointSize(14)
        self.ffLCD.setFont(font)
        self.ffLCD.setReadOnly(True)
        self.ffLCD.setDecimals(7)
        self.ffLCD.setMinimum(-10000.0)
        self.ffLCD.setMaximum(10000.0)
        self.ffLCD.setObjectName("ffLCD")
        self.verticalLayout.addWidget(self.ffLCD)
        self.label_14 = QtWidgets.QLabel(self.frame_5)
        self.label_14.setAlignment(QtCore.Qt.AlignCenter)
        self.label_14.setObjectName("label_14")
        self.verticalLayout.addWidget(self.label_14)
        self.uocLCD = QtWidgets.QDoubleSpinBox(self.frame_5)
        font = QtGui.QFont()
        font.setPointSize(14)
        self.uocLCD.setFont(font)
        self.uocLCD.setReadOnly(True)
        self.uocLCD.setDecimals(7)
        self.uocLCD.setMinimum(-10000.0)
        self.uocLCD.setMaximum(10000.0)
        self.uocLCD.setObjectName("uocLCD")
        self.verticalLayout.addWidget(self.uocLCD)
        self.label_15 = QtWidgets.QLabel(self.frame_5)
        self.label_15.setAlignment(QtCore.Qt.AlignCenter)
        self.label_15.setObjectName("label_15")
        self.verticalLayout.addWidget(self.label_15)
        self.jscLCD = QtWidgets.QDoubleSpinBox(self.frame_5)
        font = QtGui.QFont()
        font.setPointSize(14)
        self.jscLCD.setFont(font)
        self.jscLCD.setReadOnly(True)
        self.jscLCD.setDecimals(7)
        self.jscLCD.setMinimum(-10000.0)
        self.jscLCD.setMaximum(10000.0)
        self.jscLCD.setObjectName("jscLCD")
        self.verticalLayout.addWidget(self.jscLCD)
        self.gridLayout_2.addWidget(self.frame_5, 1, 1, 1, 1)
        self.density_graph = PlotWidget(self.vach_tab)
        sizePolicy = QtWidgets.QSizePolicy(
            QtWidgets.QSizePolicy.MinimumExpanding,
            QtWidgets.QSizePolicy.MinimumExpanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.density_graph.sizePolicy().hasHeightForWidth())
        self.density_graph.setSizePolicy(sizePolicy)
        self.density_graph.setMinimumSize(QtCore.QSize(300, 200))
        self.density_graph.setObjectName("density_graph")
        self.gridLayout_2.addWidget(self.density_graph, 1, 0, 1, 1)
        self.tabWidget.addTab(self.vach_tab, "")
        self.time_tab = QtWidgets.QWidget()
        self.time_tab.setObjectName("time_tab")
        self.gridLayout_6 = QtWidgets.QGridLayout(self.time_tab)
        self.gridLayout_6.setObjectName("gridLayout_6")
        self.jUatThisMoment = PlotWidget(self.time_tab)
        self.jUatThisMoment.setObjectName("jUatThisMoment")
        self.gridLayout_6.addWidget(self.jUatThisMoment, 0, 0, 1, 1)
        self.PUatThisMoment = PlotWidget(self.time_tab)
        self.PUatThisMoment.setObjectName("PUatThisMoment")
        self.gridLayout_6.addWidget(self.PUatThisMoment, 0, 1, 1, 1)
        self.jscVsTime = PlotWidget(self.time_tab)
        self.jscVsTime.setObjectName("jscVsTime")
        self.gridLayout_6.addWidget(self.jscVsTime, 1, 1, 1, 1)
        self.UocVsTime = PlotWidget(self.time_tab)
        self.UocVsTime.setObjectName("UocVsTime")
        self.gridLayout_6.addWidget(self.UocVsTime, 2, 0, 1, 1)
        self.FFVsTime = PlotWidget(self.time_tab)
        self.FFVsTime.setObjectName("FFVsTime")
        self.gridLayout_6.addWidget(self.FFVsTime, 2, 1, 1, 1)
        self.PCEVsTime = PlotWidget(self.time_tab)
        self.PCEVsTime.setObjectName("PCEVsTime")
        self.gridLayout_6.addWidget(self.PCEVsTime, 1, 0, 1, 1)
        self.tabWidget.addTab(self.time_tab, "")
        self.opt_tab = QtWidgets.QWidget()
        self.opt_tab.setObjectName("opt_tab")
        self.gridLayout_14 = QtWidgets.QGridLayout(self.opt_tab)
        self.gridLayout_14.setObjectName("gridLayout_14")
        self.gridLayout_5 = QtWidgets.QGridLayout()
        self.gridLayout_5.setObjectName("gridLayout_5")
        self.frame_7 = QtWidgets.QFrame(self.opt_tab)
        self.frame_7.setMaximumSize(QtCore.QSize(350, 250))
        self.frame_7.setFrameShape(QtWidgets.QFrame.StyledPanel)
        self.frame_7.setFrameShadow(QtWidgets.QFrame.Raised)
        self.frame_7.setObjectName("frame_7")
        self.gridLayout_9 = QtWidgets.QGridLayout(self.frame_7)
        self.gridLayout_9.setObjectName("gridLayout_9")
        self.lineEndingBox = QtWidgets.QComboBox(self.frame_7)
        self.lineEndingBox.setObjectName("lineEndingBox")
        self.lineEndingBox.addItem("")
        self.lineEndingBox.addItem("")
        self.lineEndingBox.addItem("")
        self.gridLayout_9.addWidget(self.lineEndingBox, 5, 2, 1, 1)
        self.label_23 = QtWidgets.QLabel(self.frame_7)
        self.label_23.setObjectName("label_23")
        self.gridLayout_9.addWidget(self.label_23, 2, 0, 1, 1)
        self.usbtmcComboBox = QtWidgets.QComboBox(self.frame_7)
        self.usbtmcComboBox.setObjectName("usbtmcComboBox")
        self.gridLayout_9.addWidget(self.usbtmcComboBox, 5, 0, 1, 1)
        self.rescanButton = QtWidgets.QPushButton(self.frame_7)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.rescanButton.sizePolicy().hasHeightForWidth())
        self.rescanButton.setSizePolicy(sizePolicy)
        self.rescanButton.setMinimumSize(QtCore.QSize(45, 45))
        self.rescanButton.setMaximumSize(QtCore.QSize(45, 45))
        self.rescanButton.setText("")
        icon1 = QtGui.QIcon()
        icon1.addPixmap(QtGui.QPixmap(":/reaload/GUI/Icons/reload.png"),
                        QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.rescanButton.setIcon(icon1)
        self.rescanButton.setIconSize(QtCore.QSize(45, 45))
        self.rescanButton.setObjectName("rescanButton")
        self.gridLayout_9.addWidget(self.rescanButton, 4, 0, 1, 1)
        self.label_22 = QtWidgets.QLabel(self.frame_7)
        font = QtGui.QFont()
        font.setBold(True)
        font.setWeight(75)
        self.label_22.setFont(font)
        self.label_22.setTextFormat(QtCore.Qt.PlainText)
        self.label_22.setObjectName("label_22")
        self.gridLayout_9.addWidget(self.label_22, 1, 1, 1, 2)
        self.connectUSBbutton = QtWidgets.QPushButton(self.frame_7)
        self.connectUSBbutton.setObjectName("connectUSBbutton")
        self.gridLayout_9.addWidget(self.connectUSBbutton, 5, 1, 1, 1)
        self.connect_button = QtWidgets.QPushButton(self.frame_7)
        self.connect_button.setObjectName("connect_button")
        self.gridLayout_9.addWidget(self.connect_button, 4, 1, 1, 2)
        self.nplc_value = QtWidgets.QLabel(self.frame_7)
        self.nplc_value.setObjectName("nplc_value")
        self.gridLayout_9.addWidget(self.nplc_value, 6, 0, 1, 1)
        self.nplc_box = QtWidgets.QComboBox(self.frame_7)
        self.nplc_box.setObjectName("nplc_box")
        self.nplc_box.addItem("")
        self.nplc_box.addItem("")
        self.nplc_box.addItem("")
        self.nplc_box.addItem("")
        self.nplc_box.addItem("")
        self.nplc_box.addItem("")
        self.nplc_box.addItem("")
        self.nplc_box.addItem("")
        self.gridLayout_9.addWidget(self.nplc_box, 6, 1, 1, 1)
        self.ip_address = QtWidgets.QTextEdit(self.frame_7)
        self.ip_address.setMaximumSize(QtCore.QSize(256, 41))
        font = QtGui.QFont()
        font.setPointSize(14)
        self.ip_address.setFont(font)
        self.ip_address.setObjectName("ip_address")
        self.gridLayout_9.addWidget(self.ip_address, 2, 1, 1, 2)
        self.gridLayout_5.addWidget(self.frame_7, 0, 0, 1, 1)
        self.connectionErrorsBox = QtWidgets.QPlainTextEdit(self.opt_tab)
        self.connectionErrorsBox.setVerticalScrollBarPolicy(
            QtCore.Qt.ScrollBarAlwaysOn)
        self.connectionErrorsBox.setObjectName("connectionErrorsBox")
        self.gridLayout_5.addWidget(self.connectionErrorsBox, 2, 1, 1, 1)
        self.widget = QtWidgets.QWidget(self.opt_tab)
        self.widget.setMinimumSize(QtCore.QSize(400, 150))
        self.widget.setMaximumSize(QtCore.QSize(450, 350))
        self.widget.setObjectName("widget")
        self.gridLayout_4 = QtWidgets.QGridLayout(self.widget)
        self.gridLayout_4.setObjectName("gridLayout_4")
        self.label_21 = QtWidgets.QLabel(self.widget)
        self.label_21.setAlignment(QtCore.Qt.AlignCenter)
        self.label_21.setWordWrap(False)
        self.label_21.setObjectName("label_21")
        self.gridLayout_4.addWidget(self.label_21, 0, 0, 1, 1)
        self.relay_combo = QtWidgets.QComboBox(self.widget)
        self.relay_combo.setObjectName("relay_combo")
        self.relay_combo.addItem("")
        self.relay_combo.addItem("")
        self.relay_combo.addItem("")
        self.relay_combo.addItem("")
        self.relay_combo.addItem("")
        self.relay_combo.addItem("")
        self.gridLayout_4.addWidget(self.relay_combo, 0, 1, 1, 1)
        spacerItem2 = QtWidgets.QSpacerItem(40, 20,
                                            QtWidgets.QSizePolicy.Expanding,
                                            QtWidgets.QSizePolicy.Minimum)
        self.gridLayout_4.addItem(spacerItem2, 0, 2, 1, 1)
        self.label_19 = QtWidgets.QLabel(self.widget)
        self.label_19.setMinimumSize(QtCore.QSize(200, 0))
        self.label_19.setAlignment(QtCore.Qt.AlignCenter)
        self.label_19.setObjectName("label_19")
        self.gridLayout_4.addWidget(self.label_19, 1, 0, 1, 1)
        self.electrode_combo = QtWidgets.QComboBox(self.widget)
        self.electrode_combo.setObjectName("electrode_combo")
        self.electrode_combo.addItem("")
        self.electrode_combo.addItem("")
        self.electrode_combo.addItem("")
        self.electrode_combo.addItem("")
        self.electrode_combo.addItem("")
        self.electrode_combo.addItem("")
        self.gridLayout_4.addWidget(self.electrode_combo, 1, 1, 1, 1)
        self.fb_scan = QtWidgets.QCheckBox(self.widget)
        self.fb_scan.setMaximumSize(QtCore.QSize(16777215, 24))
        self.fb_scan.setObjectName("fb_scan")
        self.gridLayout_4.addWidget(self.fb_scan, 2, 0, 1, 1)
        self.darkBox = QtWidgets.QCheckBox(self.widget)
        self.darkBox.setObjectName("darkBox")
        self.gridLayout_4.addWidget(self.darkBox, 2, 1, 1, 1)
        self.oneShotMode = QtWidgets.QRadioButton(self.widget)
        self.oneShotMode.setChecked(True)
        self.oneShotMode.setObjectName("oneShotMode")
        self.gridLayout_4.addWidget(self.oneShotMode, 3, 0, 1, 1)
        self.chooseRel = QtWidgets.QCheckBox(self.widget)
        self.chooseRel.setObjectName("chooseRel")
        self.gridLayout_4.addWidget(self.chooseRel, 3, 1, 1, 1)
        self.relayMode = QtWidgets.QRadioButton(self.widget)
        self.relayMode.setObjectName("relayMode")
        self.gridLayout_4.addWidget(self.relayMode, 4, 0, 1, 1)
        self.timeMode = QtWidgets.QRadioButton(self.widget)
        self.timeMode.setObjectName("timeMode")
        self.gridLayout_4.addWidget(self.timeMode, 5, 0, 1, 1)
        self.timeMode_2 = QtWidgets.QRadioButton(self.widget)
        self.timeMode_2.setObjectName("timeMode_2")
        self.gridLayout_4.addWidget(self.timeMode_2, 5, 1, 1, 1)
        self.label_16 = QtWidgets.QLabel(self.widget)
        self.label_16.setObjectName("label_16")
        self.gridLayout_4.addWidget(self.label_16, 6, 0, 1, 1)
        self.timeDelayBox = QtWidgets.QDoubleSpinBox(self.widget)
        self.timeDelayBox.setMaximum(100.0)
        self.timeDelayBox.setObjectName("timeDelayBox")
        self.gridLayout_4.addWidget(self.timeDelayBox, 7, 0, 1, 1)
        self.countBox = QtWidgets.QSpinBox(self.widget)
        self.countBox.setMaximum(1000)
        self.countBox.setObjectName("countBox")
        self.gridLayout_4.addWidget(self.countBox, 7, 1, 1, 1)
        self.gridLayout_5.addWidget(self.widget, 0, 1, 1, 1)
        self.serialPortWidget = serialPortWidget(self.opt_tab)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.serialPortWidget.sizePolicy().hasHeightForWidth())
        self.serialPortWidget.setSizePolicy(sizePolicy)
        self.serialPortWidget.setMinimumSize(QtCore.QSize(100, 100))
        self.serialPortWidget.setMaximumSize(QtCore.QSize(1000, 1000))
        self.serialPortWidget.setObjectName("serialPortWidget")
        self.gridLayout_5.addWidget(self.serialPortWidget, 2, 0, 1, 1)
        self.gridLayout_14.addLayout(self.gridLayout_5, 0, 0, 1, 1)
        self.tabWidget.addTab(self.opt_tab, "")
        self.result_tab = QtWidgets.QWidget()
        self.result_tab.setObjectName("result_tab")
        self.gridLayout_12 = QtWidgets.QGridLayout(self.result_tab)
        self.gridLayout_12.setObjectName("gridLayout_12")
        self.save_as_button = QtWidgets.QPushButton(self.result_tab)
        self.save_as_button.setObjectName("save_as_button")
        self.gridLayout_12.addWidget(self.save_as_button, 0, 0, 1, 1)
        self.vach_text = QtWidgets.QTextEdit(self.result_tab)
        self.vach_text.setMaximumSize(QtCore.QSize(400, 16777215))
        self.vach_text.setObjectName("vach_text")
        self.gridLayout_12.addWidget(self.vach_text, 2, 0, 1, 1)
        self.params_file_name = QtWidgets.QLineEdit(self.result_tab)
        self.params_file_name.setObjectName("params_file_name")
        self.gridLayout_12.addWidget(self.params_file_name, 0, 1, 1, 1)
        self.params_field = QtWidgets.QTextEdit(self.result_tab)
        self.params_field.setVerticalScrollBarPolicy(
            QtCore.Qt.ScrollBarAlwaysOn)
        self.params_field.setHorizontalScrollBarPolicy(
            QtCore.Qt.ScrollBarAlwaysOn)
        self.params_field.setObjectName("params_field")
        self.gridLayout_12.addWidget(self.params_field, 2, 1, 1, 1)
        self.tabWidget.addTab(self.result_tab, "")
        self.motorTab = QtWidgets.QWidget()
        self.motorTab.setObjectName("motorTab")
        self.gridLayout_13 = QtWidgets.QGridLayout(self.motorTab)
        self.gridLayout_13.setObjectName("gridLayout_13")
        self.motorButton = QtWidgets.QPushButton(self.motorTab)
        self.motorButton.setObjectName("motorButton")
        self.gridLayout_13.addWidget(self.motorButton, 0, 0, 1, 1)
        spacerItem3 = QtWidgets.QSpacerItem(943, 20,
                                            QtWidgets.QSizePolicy.Expanding,
                                            QtWidgets.QSizePolicy.Minimum)
        self.gridLayout_13.addItem(spacerItem3, 0, 1, 1, 4)
        self.turnCWbutton = QtWidgets.QPushButton(self.motorTab)
        self.turnCWbutton.setObjectName("turnCWbutton")
        self.gridLayout_13.addWidget(self.turnCWbutton, 1, 0, 1, 1)
        self.degreeBox = QtWidgets.QSpinBox(self.motorTab)
        self.degreeBox.setMaximum(360)
        self.degreeBox.setProperty("value", 180)
        self.degreeBox.setObjectName("degreeBox")
        self.gridLayout_13.addWidget(self.degreeBox, 1, 1, 1, 1)
        self.stepsBox = QtWidgets.QSpinBox(self.motorTab)
        self.stepsBox.setMaximum(1024)
        self.stepsBox.setProperty("value", 256)
        self.stepsBox.setObjectName("stepsBox")
        self.gridLayout_13.addWidget(self.stepsBox, 1, 2, 1, 1)
        self.turnCCWbutton = QtWidgets.QPushButton(self.motorTab)
        self.turnCCWbutton.setObjectName("turnCCWbutton")
        self.gridLayout_13.addWidget(self.turnCCWbutton, 1, 3, 1, 1)
        spacerItem4 = QtWidgets.QSpacerItem(696, 20,
                                            QtWidgets.QSizePolicy.Expanding,
                                            QtWidgets.QSizePolicy.Minimum)
        self.gridLayout_13.addItem(spacerItem4, 1, 4, 1, 1)
        spacerItem5 = QtWidgets.QSpacerItem(20, 586,
                                            QtWidgets.QSizePolicy.Minimum,
                                            QtWidgets.QSizePolicy.Expanding)
        self.gridLayout_13.addItem(spacerItem5, 3, 0, 1, 1)
        self.infoBox = QtWidgets.QLineEdit(self.motorTab)
        self.infoBox.setObjectName("infoBox")
        self.gridLayout_13.addWidget(self.infoBox, 2, 0, 1, 5)
        self.tabWidget.addTab(self.motorTab, "")
        self.gridLayout.addWidget(self.tabWidget, 1, 0, 1, 1)
        MainWindow.setCentralWidget(self.centralwidget)
        self.menubar = QtWidgets.QMenuBar(MainWindow)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 1121, 28))
        self.menubar.setObjectName("menubar")
        self.menuFile = QtWidgets.QMenu(self.menubar)
        self.menuFile.setObjectName("menuFile")
        self.menuEdit = QtWidgets.QMenu(self.menubar)
        self.menuEdit.setObjectName("menuEdit")
        MainWindow.setMenuBar(self.menubar)
        self.statusbar = QtWidgets.QStatusBar(MainWindow)
        self.statusbar.setObjectName("statusbar")
        MainWindow.setStatusBar(self.statusbar)
        self.actionQuit = QtWidgets.QAction(MainWindow)
        self.actionQuit.setShortcutContext(QtCore.Qt.ApplicationShortcut)
        self.actionQuit.setObjectName("actionQuit")
        self.actionDemo_mode = QtWidgets.QAction(MainWindow)
        self.actionDemo_mode.setObjectName("actionDemo_mode")
        self.menuFile.addAction(self.actionQuit)
        self.menuEdit.addAction(self.actionDemo_mode)
        self.menubar.addAction(self.menuFile.menuAction())
        self.menubar.addAction(self.menuEdit.menuAction())

        self.retranslateUi(MainWindow)
        self.device_box.setCurrentIndex(1)
        self.tabWidget.setCurrentIndex(2)
        self.nplc_box.setCurrentIndex(0)
        self.relay_combo.setCurrentIndex(0)
        self.electrode_combo.setCurrentIndex(0)
        QtCore.QMetaObject.connectSlotsByName(MainWindow)

    def retranslateUi(self, MainWindow):
        _translate = QtCore.QCoreApplication.translate
        MainWindow.setWindowTitle(_translate("MainWindow", "SolarTestModule"))
        self.directory_button.setText(
            _translate("MainWindow", "Set a directory ..."))
        self.channel_box.setItemText(0, _translate("MainWindow", "A"))
        self.channel_box.setItemText(1, _translate("MainWindow", "B"))
        self.label_10.setText(_translate("MainWindow", "Device"))
        self.quitButton.setText(_translate("MainWindow", "Quit"))
        self.fullscreenButton.setText(_translate("MainWindow", "[]"))
        self.device_box.setItemText(0, _translate("MainWindow", "Keithley"))
        self.device_box.setItemText(1, _translate("MainWindow", "Keysight"))
        self.stopButton.setText(_translate("MainWindow", "STOP"))
        self.startButton.setText(_translate("MainWindow", "Start"))
        self.label_11.setText(_translate("MainWindow", "Channel"))
        self.label_17.setText(_translate("MainWindow", "SC name:"))
        self.runingLabel.setText(_translate("MainWindow", "STOPPED"))
        self.label.setText(_translate("MainWindow", "Voltage"))
        self.label_2.setText(_translate("MainWindow", "Start [V]"))
        self.label_4.setText(_translate("MainWindow", "Current limit [A]"))
        self.label_3.setText(_translate("MainWindow", "End [V]"))
        self.label_5.setText(_translate("MainWindow", "Points"))
        self.label_7.setText(_translate("MainWindow", "Size of array"))
        self.label_8.setText(_translate("MainWindow", "Wait[ms]"))
        self.label_9.setText(
            _translate(
                "MainWindow",
                "<html><head/><body><p>x<span style=\" vertical-align:sub;\">mean</span>/𝚫x</p></body></html>"
            ))
        self.label_6.setText(_translate("MainWindow", "Error"))
        self.live_error.setText(_translate("MainWindow", "Live Error"))
        self.label_18.setText(
            _translate(
                "MainWindow",
                "<html><head/><body><p>Area of electrode [mm<span style=\" vertical-align:super;\">2</span>]</p></body></html>"
            ))
        self.label_20.setText(
            _translate(
                "MainWindow",
                "<html><head/><body><p>Power input[mW/cm<span style=\" vertical-align:super;\">2</span>]</p></body></html>"
            ))
        self.fbStatusLabel.setText(_translate("MainWindow", "FW/BW?"))
        self.label_12.setText(
            _translate(
                "MainWindow",
                "<html><head/><body><p><span style=\" font-weight:600;\">𝜂, %</span></p></body></html>"
            ))
        self.label_13.setText(
            _translate(
                "MainWindow",
                "<html><head/><body><p><span style=\" font-weight:600;\">FF, %</span></p></body></html>"
            ))
        self.label_14.setText(
            _translate(
                "MainWindow",
                "<html><head/><body><p><span style=\" font-weight:600;\">U</span><span style=\" font-weight:600; vertical-align:sub;\">oc</span><span style=\" font-weight:600;\">, V</span></p></body></html>"
            ))
        self.label_15.setText(
            _translate(
                "MainWindow",
                "<html><head/><body><p><span style=\" font-weight:600;\">J</span><span style=\" font-weight:600; vertical-align:sub;\">sc</span><span style=\" font-weight:600;\">, mA/cm</span><span style=\" font-weight:600; vertical-align:super;\">2</span></p></body></html>"
            ))
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.vach_tab),
                                  _translate("MainWindow", "VACh"))
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.time_tab),
                                  _translate("MainWindow", "Time functions"))
        self.lineEndingBox.setItemText(
            0, _translate("MainWindow", "Win (\\r\\n)"))
        self.lineEndingBox.setItemText(1, _translate("MainWindow",
                                                     "Lin (\\n)"))
        self.lineEndingBox.setItemText(2, _translate("MainWindow",
                                                     "Mac (\\r)"))
        self.label_23.setText(_translate("MainWindow", "Device IP :"))
        self.label_22.setText(_translate("MainWindow", "DEVICE CONFIGURATION"))
        self.connectUSBbutton.setText(
            _translate("MainWindow", "Connect to USB"))
        self.connect_button.setText(_translate("MainWindow", "Connect to IP"))
        self.nplc_value.setText(_translate("MainWindow", "NPLC?"))
        self.nplc_box.setItemText(0, _translate("MainWindow", "0.001"))
        self.nplc_box.setItemText(1, _translate("MainWindow", "0.01"))
        self.nplc_box.setItemText(2, _translate("MainWindow", "0.1"))
        self.nplc_box.setItemText(3, _translate("MainWindow", "1"))
        self.nplc_box.setItemText(4, _translate("MainWindow", "2"))
        self.nplc_box.setItemText(5, _translate("MainWindow", "5"))
        self.nplc_box.setItemText(6, _translate("MainWindow", "10"))
        self.nplc_box.setItemText(7, _translate("MainWindow", "20"))
        self.ip_address.setHtml(
            _translate(
                "MainWindow",
                "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
                "<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
                "p, li { white-space: pre-wrap; }\n"
                "</style></head><body style=\" font-family:\'Noto Sans\'; font-size:14pt; font-weight:400; font-style:normal;\">\n"
                "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-size:12pt;\">192.168.0.100</span></p></body></html>"
            ))
        self.label_21.setText(
            _translate(
                "MainWindow",
                "<html><head/><body><p>Start from relay:</p></body></html>"))
        self.relay_combo.setItemText(0, _translate("MainWindow", "1"))
        self.relay_combo.setItemText(1, _translate("MainWindow", "2"))
        self.relay_combo.setItemText(2, _translate("MainWindow", "3"))
        self.relay_combo.setItemText(3, _translate("MainWindow", "4"))
        self.relay_combo.setItemText(4, _translate("MainWindow", "5"))
        self.relay_combo.setItemText(5, _translate("MainWindow", "6"))
        self.label_19.setText(
            _translate(
                "MainWindow",
                "<html><head/><body><p>Number of electrodes:</p></body></html>"
            ))
        self.electrode_combo.setItemText(0, _translate("MainWindow", "1"))
        self.electrode_combo.setItemText(1, _translate("MainWindow", "2"))
        self.electrode_combo.setItemText(2, _translate("MainWindow", "3"))
        self.electrode_combo.setItemText(3, _translate("MainWindow", "4"))
        self.electrode_combo.setItemText(4, _translate("MainWindow", "5"))
        self.electrode_combo.setItemText(5, _translate("MainWindow", "6"))
        self.fb_scan.setText(_translate("MainWindow", "Forward-Backward Scan"))
        self.darkBox.setText(_translate("MainWindow", "Measure dark?"))
        self.oneShotMode.setText(_translate("MainWindow", "O&ne contact"))
        self.chooseRel.setText(_translate("MainWindow", "Choose from relay"))
        self.relayMode.setText(_translate("MainWindow", "Rela&y mode"))
        self.timeMode.setText(
            _translate("MainWindow", "&Continuous observation"))
        self.timeMode_2.setText(
            _translate("MainWindow", "Continuous &relay observation"))
        self.label_16.setText(_translate("MainWindow", "t [min] and counts"))
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.opt_tab),
                                  _translate("MainWindow", "Options"))
        self.save_as_button.setText(_translate("MainWindow",
                                               "Save parameters"))
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.result_tab),
                                  _translate("MainWindow", "Results"))
        self.motorButton.setText(_translate("MainWindow", "Connect to motor"))
        self.turnCWbutton.setText(_translate("MainWindow", "Turn clockwise"))
        self.turnCCWbutton.setText(
            _translate("MainWindow", "Turn counter-clockwise"))
        self.tabWidget.setTabText(
            self.tabWidget.indexOf(self.motorTab),
            _translate("MainWindow", "Manual control of a shutter"))
        self.menuFile.setTitle(_translate("MainWindow", "Fi&le"))
        self.menuEdit.setTitle(_translate("MainWindow", "E&dit"))
        self.actionQuit.setText(_translate("MainWindow", "&Quit(Ctrl+Q)"))
        self.actionDemo_mode.setText(_translate("MainWindow", "&Demo mode"))
Пример #25
0
class stc_MainWindow(object):
    def setupUi(self, MainWindow):
        MainWindow.setObjectName("MainWindow")
        MainWindow.resize(916, 609)
        MainWindow.setMinimumSize(QtCore.QSize(916, 609))
        MainWindow.setMaximumSize(QtCore.QSize(916, 609))
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap(QtCore.QDir().currentPath()+"/logo/icon.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        MainWindow.setWindowIcon(icon)
        self.centralwidget = QtGui.QWidget(MainWindow)
        self.centralwidget.setObjectName("centralwidget")
        self.groupBox = QtGui.QGroupBox(self.centralwidget)
        self.groupBox.setGeometry(QtCore.QRect(10, 320, 211, 131))
        self.groupBox.setObjectName("groupBox")
        self.pot_label = QtGui.QLabel(self.groupBox)
        self.pot_label.setGeometry(QtCore.QRect(10, 30, 91, 31))
        self.pot_label.setObjectName("pot_label")
        self.pot_num = QtGui.QComboBox(self.groupBox)
        self.pot_num.setGeometry(QtCore.QRect(110, 40, 69, 22))
        self.pot_num.setObjectName("pot_num")
        self.new_show = QtGui.QPushButton(self.groupBox)
        self.new_show.setGeometry(QtCore.QRect(10, 80, 91, 31))
        self.new_show.setObjectName("new_show")
        self.on_show = QtGui.QPushButton(self.groupBox)
        self.on_show.setGeometry(QtCore.QRect(110, 80, 91, 31))
        self.on_show.setObjectName("on_show")
        self.groupBox_2 = QtGui.QGroupBox(self.centralwidget)
        self.groupBox_2.setGeometry(QtCore.QRect(10, 459, 211, 121))
        self.groupBox_2.setObjectName("groupBox_2")
        self.weekday = QtGui.QComboBox(self.groupBox_2)
        self.weekday.setGeometry(QtCore.QRect(10, 30, 69, 22))
        self.weekday.setObjectName("weekday")
        self.spe_time = QtGui.QComboBox(self.groupBox_2)
        self.spe_time.setGeometry(QtCore.QRect(110, 30, 69, 22))
        self.spe_time.setObjectName("spe_time")
        self.pushButton = QtGui.QPushButton(self.groupBox_2)
        self.pushButton.setGeometry(QtCore.QRect(60, 60, 75, 23))
        self.pushButton.setObjectName("pushButton")
        self.label_2 = QtGui.QLabel(self.groupBox_2)
        self.label_2.setGeometry(QtCore.QRect(20, 90, 141, 31))
        self.label_2.setObjectName("label_2")
        self.groupBox_3 = QtGui.QGroupBox(self.centralwidget)
        self.groupBox_3.setGeometry(QtCore.QRect(10, 10, 211, 291))
        self.groupBox_3.setObjectName("groupBox_3")
        self.attr_list = QtGui.QListWidget(self.groupBox_3)
        self.attr_list.setGeometry(QtCore.QRect(0, 20, 201, 261))
        self.attr_list.setObjectName("attr_list")
        self.groupBox_4 = QtGui.QGroupBox(self.centralwidget)
        self.groupBox_4.setGeometry(QtCore.QRect(230, 0, 681, 581))
        self.groupBox_4.setObjectName("groupBox_4")
        self.curve_graphics = PlotWidget(self.groupBox_4)
        self.curve_graphics.setGeometry(QtCore.QRect(10, 20, 661, 551))
        self.curve_graphics.setMinimumSize(QtCore.QSize(661, 551))
        self.curve_graphics.setMaximumSize(QtCore.QSize(661, 551))
        self.curve_graphics.setObjectName("curve_graphics")
        MainWindow.setCentralWidget(self.centralwidget)
        self.menubar = QtGui.QMenuBar(MainWindow)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 916, 23))
        self.menubar.setObjectName("menubar")
        MainWindow.setMenuBar(self.menubar)

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

    def retranslateUi(self, MainWindow):
        MainWindow.setWindowTitle(QtGui.QApplication.translate("MainWindow", "预测结果", None, QtGui.QApplication.UnicodeUTF8))
        self.groupBox.setTitle(QtGui.QApplication.translate("MainWindow", "展示其它窗口结果", None, QtGui.QApplication.UnicodeUTF8))
        self.pot_label.setText(QtGui.QApplication.translate("MainWindow", " 选择窗口号:", None, QtGui.QApplication.UnicodeUTF8))
        self.new_show.setText(QtGui.QApplication.translate("MainWindow", "单独显示", None, QtGui.QApplication.UnicodeUTF8))
        self.on_show.setText(QtGui.QApplication.translate("MainWindow", "原图显示", None, QtGui.QApplication.UnicodeUTF8))
        self.groupBox_2.setTitle(QtGui.QApplication.translate("MainWindow", "所选窗口某段时间金额", None, QtGui.QApplication.UnicodeUTF8))
        self.pushButton.setText(QtGui.QApplication.translate("MainWindow", "显示金额", None, QtGui.QApplication.UnicodeUTF8))
        self.label_2.setText(QtGui.QApplication.translate("MainWindow", "金额:", None, QtGui.QApplication.UnicodeUTF8))
        self.groupBox_3.setTitle(QtGui.QApplication.translate("MainWindow", "数据属性列表", None, QtGui.QApplication.UnicodeUTF8))
        self.groupBox_4.setTitle(QtGui.QApplication.translate("MainWindow", "预测结果图形化展示", None, QtGui.QApplication.UnicodeUTF8))
Пример #26
0
class Ui_MainWindow(object):
    def setupUi(self, MainWindow):
        MainWindow.setObjectName("MainWindow")
        MainWindow.resize(960, 546)
        self.centralwidget = QtWidgets.QWidget(MainWindow)
        self.centralwidget.setObjectName("centralwidget")
        self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.centralwidget)
        self.verticalLayout_2.setContentsMargins(9, 9, 9, 0)
        self.verticalLayout_2.setSpacing(0)
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        self.Content = QtWidgets.QWidget(self.centralwidget)
        self.Content.setObjectName("Content")
        self.horizontalLayout_2 = QtWidgets.QHBoxLayout(self.Content)
        self.horizontalLayout_2.setContentsMargins(0, 0, 0, 0)
        self.horizontalLayout_2.setSpacing(10)
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.Electrode = QtWidgets.QWidget(self.Content)
        self.Electrode.setMinimumSize(QtCore.QSize(200, 0))
        self.Electrode.setMaximumSize(QtCore.QSize(400, 800))
        self.Electrode.setObjectName("Electrode")
        self.verticalLayout = QtWidgets.QVBoxLayout(self.Electrode)
        self.verticalLayout.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout.setSpacing(5)
        self.verticalLayout.setObjectName("verticalLayout")
        self.widget = QtWidgets.QWidget(self.Electrode)
        self.widget.setMinimumSize(QtCore.QSize(0, 200))
        self.widget.setMaximumSize(QtCore.QSize(16777215, 700))
        self.widget.setObjectName("widget")
        self.verticalLayout_5 = QtWidgets.QVBoxLayout(self.widget)
        self.verticalLayout_5.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout_5.setSpacing(0)
        self.verticalLayout_5.setObjectName("verticalLayout_5")
        self.tabWidget = QtWidgets.QTabWidget(self.widget)
        self.tabWidget.setObjectName("tabWidget")
        self.read = QtWidgets.QWidget()
        self.read.setObjectName("read")
        self.verticalLayout_6 = QtWidgets.QVBoxLayout(self.read)
        self.verticalLayout_6.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout_6.setSpacing(0)
        self.verticalLayout_6.setObjectName("verticalLayout_6")
        self.Status = QtWidgets.QWidget(self.read)
        self.Status.setObjectName("Status")
        self.horizontalLayout_5 = QtWidgets.QHBoxLayout(self.Status)
        self.horizontalLayout_5.setContentsMargins(5, 0, 5, 0)
        self.horizontalLayout_5.setObjectName("horizontalLayout_5")
        self.label_2 = QtWidgets.QLabel(self.Status)
        self.label_2.setObjectName("label_2")
        self.horizontalLayout_5.addWidget(self.label_2)
        self.leStatus = QtWidgets.QLineEdit(self.Status)
        self.leStatus.setAlignment(QtCore.Qt.AlignRight
                                   | QtCore.Qt.AlignTrailing
                                   | QtCore.Qt.AlignVCenter)
        self.leStatus.setReadOnly(True)
        self.leStatus.setObjectName("leStatus")
        self.horizontalLayout_5.addWidget(self.leStatus)
        self.verticalLayout_6.addWidget(self.Status)
        self.Refrence = QtWidgets.QWidget(self.read)
        self.Refrence.setObjectName("Refrence")
        self.horizontalLayout_6 = QtWidgets.QHBoxLayout(self.Refrence)
        self.horizontalLayout_6.setContentsMargins(5, 0, 5, 0)
        self.horizontalLayout_6.setObjectName("horizontalLayout_6")
        self.label_3 = QtWidgets.QLabel(self.Refrence)
        self.label_3.setObjectName("label_3")
        self.horizontalLayout_6.addWidget(self.label_3)
        self.leRE = QtWidgets.QLineEdit(self.Refrence)
        self.leRE.setMinimumSize(QtCore.QSize(100, 0))
        self.leRE.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.leRE.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing
                               | QtCore.Qt.AlignVCenter)
        self.leRE.setReadOnly(True)
        self.leRE.setObjectName("leRE")
        self.horizontalLayout_6.addWidget(self.leRE)
        self.verticalLayout_6.addWidget(self.Refrence)
        self.Counter = QtWidgets.QWidget(self.read)
        self.Counter.setObjectName("Counter")
        self.horizontalLayout_7 = QtWidgets.QHBoxLayout(self.Counter)
        self.horizontalLayout_7.setContentsMargins(5, 0, 5, 0)
        self.horizontalLayout_7.setObjectName("horizontalLayout_7")
        self.label_4 = QtWidgets.QLabel(self.Counter)
        self.label_4.setObjectName("label_4")
        self.horizontalLayout_7.addWidget(self.label_4)
        self.leCE = QtWidgets.QLineEdit(self.Counter)
        self.leCE.setMinimumSize(QtCore.QSize(100, 0))
        self.leCE.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.leCE.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing
                               | QtCore.Qt.AlignVCenter)
        self.leCE.setReadOnly(True)
        self.leCE.setObjectName("leCE")
        self.horizontalLayout_7.addWidget(self.leCE)
        self.verticalLayout_6.addWidget(self.Counter)
        self.Working1 = QtWidgets.QWidget(self.read)
        self.Working1.setObjectName("Working1")
        self.horizontalLayout_9 = QtWidgets.QHBoxLayout(self.Working1)
        self.horizontalLayout_9.setContentsMargins(5, 0, 5, 0)
        self.horizontalLayout_9.setObjectName("horizontalLayout_9")
        self.label_6 = QtWidgets.QLabel(self.Working1)
        self.label_6.setObjectName("label_6")
        self.horizontalLayout_9.addWidget(self.label_6)
        self.leWE1 = QtWidgets.QLineEdit(self.Working1)
        self.leWE1.setMinimumSize(QtCore.QSize(100, 0))
        self.leWE1.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.leWE1.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing
                                | QtCore.Qt.AlignVCenter)
        self.leWE1.setReadOnly(True)
        self.leWE1.setObjectName("leWE1")
        self.horizontalLayout_9.addWidget(self.leWE1)
        self.verticalLayout_6.addWidget(self.Working1)
        self.Working2 = QtWidgets.QWidget(self.read)
        self.Working2.setObjectName("Working2")
        self.horizontalLayout_8 = QtWidgets.QHBoxLayout(self.Working2)
        self.horizontalLayout_8.setContentsMargins(5, 0, 5, 0)
        self.horizontalLayout_8.setObjectName("horizontalLayout_8")
        self.label_5 = QtWidgets.QLabel(self.Working2)
        self.label_5.setObjectName("label_5")
        self.horizontalLayout_8.addWidget(self.label_5)
        self.leWE2 = QtWidgets.QLineEdit(self.Working2)
        self.leWE2.setMinimumSize(QtCore.QSize(100, 0))
        self.leWE2.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.leWE2.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing
                                | QtCore.Qt.AlignVCenter)
        self.leWE2.setReadOnly(True)
        self.leWE2.setObjectName("leWE2")
        self.horizontalLayout_8.addWidget(self.leWE2)
        self.verticalLayout_6.addWidget(self.Working2)
        self.Extra1 = QtWidgets.QWidget(self.read)
        self.Extra1.setObjectName("Extra1")
        self.horizontalLayout_10 = QtWidgets.QHBoxLayout(self.Extra1)
        self.horizontalLayout_10.setContentsMargins(5, 0, 5, 0)
        self.horizontalLayout_10.setObjectName("horizontalLayout_10")
        self.label_7 = QtWidgets.QLabel(self.Extra1)
        self.label_7.setObjectName("label_7")
        self.horizontalLayout_10.addWidget(self.label_7)
        self.leEx1 = QtWidgets.QLineEdit(self.Extra1)
        self.leEx1.setMinimumSize(QtCore.QSize(100, 0))
        self.leEx1.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.leEx1.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing
                                | QtCore.Qt.AlignVCenter)
        self.leEx1.setReadOnly(True)
        self.leEx1.setObjectName("leEx1")
        self.horizontalLayout_10.addWidget(self.leEx1)
        self.verticalLayout_6.addWidget(self.Extra1)
        self.Extra2 = QtWidgets.QWidget(self.read)
        self.Extra2.setObjectName("Extra2")
        self.horizontalLayout_11 = QtWidgets.QHBoxLayout(self.Extra2)
        self.horizontalLayout_11.setContentsMargins(5, 0, 5, 0)
        self.horizontalLayout_11.setObjectName("horizontalLayout_11")
        self.label_8 = QtWidgets.QLabel(self.Extra2)
        self.label_8.setObjectName("label_8")
        self.horizontalLayout_11.addWidget(self.label_8)
        self.leEx2 = QtWidgets.QLineEdit(self.Extra2)
        self.leEx2.setMinimumSize(QtCore.QSize(100, 0))
        self.leEx2.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.leEx2.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing
                                | QtCore.Qt.AlignVCenter)
        self.leEx2.setReadOnly(True)
        self.leEx2.setObjectName("leEx2")
        self.horizontalLayout_11.addWidget(self.leEx2)
        self.verticalLayout_6.addWidget(self.Extra2)
        self.Extra3 = QtWidgets.QWidget(self.read)
        self.Extra3.setObjectName("Extra3")
        self.horizontalLayout_12 = QtWidgets.QHBoxLayout(self.Extra3)
        self.horizontalLayout_12.setContentsMargins(5, 0, 5, 0)
        self.horizontalLayout_12.setObjectName("horizontalLayout_12")
        self.label_9 = QtWidgets.QLabel(self.Extra3)
        self.label_9.setObjectName("label_9")
        self.horizontalLayout_12.addWidget(self.label_9)
        self.leEx3 = QtWidgets.QLineEdit(self.Extra3)
        self.leEx3.setMinimumSize(QtCore.QSize(100, 0))
        self.leEx3.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.leEx3.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing
                                | QtCore.Qt.AlignVCenter)
        self.leEx3.setReadOnly(True)
        self.leEx3.setObjectName("leEx3")
        self.horizontalLayout_12.addWidget(self.leEx3)
        self.verticalLayout_6.addWidget(self.Extra3)
        self.Extra4 = QtWidgets.QWidget(self.read)
        self.Extra4.setObjectName("Extra4")
        self.horizontalLayout_13 = QtWidgets.QHBoxLayout(self.Extra4)
        self.horizontalLayout_13.setContentsMargins(5, 0, 5, 0)
        self.horizontalLayout_13.setObjectName("horizontalLayout_13")
        self.label_10 = QtWidgets.QLabel(self.Extra4)
        self.label_10.setObjectName("label_10")
        self.horizontalLayout_13.addWidget(self.label_10)
        self.leEx4 = QtWidgets.QLineEdit(self.Extra4)
        self.leEx4.setMinimumSize(QtCore.QSize(100, 0))
        self.leEx4.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.leEx4.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing
                                | QtCore.Qt.AlignVCenter)
        self.leEx4.setReadOnly(True)
        self.leEx4.setObjectName("leEx4")
        self.horizontalLayout_13.addWidget(self.leEx4)
        self.verticalLayout_6.addWidget(self.Extra4)
        self.tabWidget.addTab(self.read, "")
        self.set = QtWidgets.QWidget()
        self.set.setObjectName("set")
        self.verticalLayout_7 = QtWidgets.QVBoxLayout(self.set)
        self.verticalLayout_7.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout_7.setObjectName("verticalLayout_7")
        self.setRE = QtWidgets.QWidget(self.set)
        self.setRE.setObjectName("setRE")
        self.horizontalLayout_14 = QtWidgets.QHBoxLayout(self.setRE)
        self.horizontalLayout_14.setContentsMargins(3, 0, 3, 0)
        self.horizontalLayout_14.setObjectName("horizontalLayout_14")
        self.pbSetRE = QtWidgets.QPushButton(self.setRE)
        self.pbSetRE.setMinimumSize(QtCore.QSize(90, 0))
        self.pbSetRE.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.pbSetRE.setObjectName("pbSetRE")
        self.horizontalLayout_14.addWidget(self.pbSetRE)
        self.leSetRE = QtWidgets.QLineEdit(self.setRE)
        self.leSetRE.setMinimumSize(QtCore.QSize(90, 0))
        self.leSetRE.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.leSetRE.setAlignment(QtCore.Qt.AlignRight
                                  | QtCore.Qt.AlignTrailing
                                  | QtCore.Qt.AlignVCenter)
        self.leSetRE.setObjectName("leSetRE")
        self.horizontalLayout_14.addWidget(self.leSetRE)
        self.verticalLayout_7.addWidget(self.setRE)
        self.setWE1 = QtWidgets.QWidget(self.set)
        self.setWE1.setObjectName("setWE1")
        self.horizontalLayout_15 = QtWidgets.QHBoxLayout(self.setWE1)
        self.horizontalLayout_15.setContentsMargins(3, 0, 3, 0)
        self.horizontalLayout_15.setObjectName("horizontalLayout_15")
        self.pbSetWE1 = QtWidgets.QPushButton(self.setWE1)
        self.pbSetWE1.setMinimumSize(QtCore.QSize(90, 0))
        self.pbSetWE1.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.pbSetWE1.setObjectName("pbSetWE1")
        self.horizontalLayout_15.addWidget(self.pbSetWE1)
        self.leSetWE1 = QtWidgets.QLineEdit(self.setWE1)
        self.leSetWE1.setMinimumSize(QtCore.QSize(90, 0))
        self.leSetWE1.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.leSetWE1.setAlignment(QtCore.Qt.AlignRight
                                   | QtCore.Qt.AlignTrailing
                                   | QtCore.Qt.AlignVCenter)
        self.leSetWE1.setObjectName("leSetWE1")
        self.horizontalLayout_15.addWidget(self.leSetWE1)
        self.verticalLayout_7.addWidget(self.setWE1)
        self.setWe2 = QtWidgets.QWidget(self.set)
        self.setWe2.setObjectName("setWe2")
        self.horizontalLayout_16 = QtWidgets.QHBoxLayout(self.setWe2)
        self.horizontalLayout_16.setContentsMargins(3, 0, 3, 0)
        self.horizontalLayout_16.setObjectName("horizontalLayout_16")
        self.pbSetWE2 = QtWidgets.QPushButton(self.setWe2)
        self.pbSetWE2.setMinimumSize(QtCore.QSize(90, 0))
        self.pbSetWE2.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.pbSetWE2.setObjectName("pbSetWE2")
        self.horizontalLayout_16.addWidget(self.pbSetWE2)
        self.leSetWE2 = QtWidgets.QLineEdit(self.setWe2)
        self.leSetWE2.setMinimumSize(QtCore.QSize(90, 0))
        self.leSetWE2.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.leSetWE2.setAlignment(QtCore.Qt.AlignRight
                                   | QtCore.Qt.AlignTrailing
                                   | QtCore.Qt.AlignVCenter)
        self.leSetWE2.setObjectName("leSetWE2")
        self.horizontalLayout_16.addWidget(self.leSetWE2)
        self.verticalLayout_7.addWidget(self.setWe2)
        self.setADCRef = QtWidgets.QWidget(self.set)
        self.setADCRef.setObjectName("setADCRef")
        self.horizontalLayout_22 = QtWidgets.QHBoxLayout(self.setADCRef)
        self.horizontalLayout_22.setContentsMargins(3, 0, 3, 0)
        self.horizontalLayout_22.setObjectName("horizontalLayout_22")
        self.pbSetADCRef = QtWidgets.QPushButton(self.setADCRef)
        self.pbSetADCRef.setMinimumSize(QtCore.QSize(90, 0))
        self.pbSetADCRef.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.pbSetADCRef.setObjectName("pbSetADCRef")
        self.horizontalLayout_22.addWidget(self.pbSetADCRef)
        self.leSetADCRef = QtWidgets.QLineEdit(self.setADCRef)
        self.leSetADCRef.setMinimumSize(QtCore.QSize(90, 0))
        self.leSetADCRef.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.leSetADCRef.setAlignment(QtCore.Qt.AlignRight
                                      | QtCore.Qt.AlignTrailing
                                      | QtCore.Qt.AlignVCenter)
        self.leSetADCRef.setObjectName("leSetADCRef")
        self.horizontalLayout_22.addWidget(self.leSetADCRef)
        self.verticalLayout_7.addWidget(self.setADCRef)
        self.switchWE = QtWidgets.QWidget(self.set)
        self.switchWE.setObjectName("switchWE")
        self.horizontalLayout_17 = QtWidgets.QHBoxLayout(self.switchWE)
        self.horizontalLayout_17.setContentsMargins(3, 0, 3, 0)
        self.horizontalLayout_17.setObjectName("horizontalLayout_17")
        self.pbSwWe1 = QtWidgets.QPushButton(self.switchWE)
        self.pbSwWe1.setMinimumSize(QtCore.QSize(90, 0))
        self.pbSwWe1.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.pbSwWe1.setCheckable(True)
        self.pbSwWe1.setChecked(False)
        self.pbSwWe1.setObjectName("pbSwWe1")
        self.horizontalLayout_17.addWidget(self.pbSwWe1)
        self.pbSwWe2 = QtWidgets.QPushButton(self.switchWE)
        self.pbSwWe2.setMinimumSize(QtCore.QSize(90, 0))
        self.pbSwWe2.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.pbSwWe2.setCheckable(True)
        self.pbSwWe2.setObjectName("pbSwWe2")
        self.horizontalLayout_17.addWidget(self.pbSwWe2)
        self.verticalLayout_7.addWidget(self.switchWE)
        self.switchEx = QtWidgets.QWidget(self.set)
        self.switchEx.setObjectName("switchEx")
        self.horizontalLayout_18 = QtWidgets.QHBoxLayout(self.switchEx)
        self.horizontalLayout_18.setContentsMargins(3, 0, 3, 0)
        self.horizontalLayout_18.setObjectName("horizontalLayout_18")
        self.pbSwEx1 = QtWidgets.QPushButton(self.switchEx)
        self.pbSwEx1.setMinimumSize(QtCore.QSize(90, 0))
        self.pbSwEx1.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.pbSwEx1.setCheckable(True)
        self.pbSwEx1.setObjectName("pbSwEx1")
        self.horizontalLayout_18.addWidget(self.pbSwEx1)
        self.pbSwEx2 = QtWidgets.QPushButton(self.switchEx)
        self.pbSwEx2.setMinimumSize(QtCore.QSize(90, 0))
        self.pbSwEx2.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.pbSwEx2.setCheckable(True)
        self.pbSwEx2.setObjectName("pbSwEx2")
        self.horizontalLayout_18.addWidget(self.pbSwEx2)
        self.verticalLayout_7.addWidget(self.switchEx)
        self.enableADC1 = QtWidgets.QWidget(self.set)
        self.enableADC1.setObjectName("enableADC1")
        self.horizontalLayout_19 = QtWidgets.QHBoxLayout(self.enableADC1)
        self.horizontalLayout_19.setContentsMargins(3, 0, 3, 0)
        self.horizontalLayout_19.setObjectName("horizontalLayout_19")
        self.pbEnADC5 = QtWidgets.QPushButton(self.enableADC1)
        self.pbEnADC5.setMinimumSize(QtCore.QSize(90, 0))
        self.pbEnADC5.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.pbEnADC5.setCheckable(True)
        self.pbEnADC5.setObjectName("pbEnADC5")
        self.horizontalLayout_19.addWidget(self.pbEnADC5)
        self.pbEnADC6 = QtWidgets.QPushButton(self.enableADC1)
        self.pbEnADC6.setMinimumSize(QtCore.QSize(90, 0))
        self.pbEnADC6.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.pbEnADC6.setCheckable(True)
        self.pbEnADC6.setObjectName("pbEnADC6")
        self.horizontalLayout_19.addWidget(self.pbEnADC6)
        self.verticalLayout_7.addWidget(self.enableADC1)
        self.enableADC2 = QtWidgets.QWidget(self.set)
        self.enableADC2.setObjectName("enableADC2")
        self.horizontalLayout_20 = QtWidgets.QHBoxLayout(self.enableADC2)
        self.horizontalLayout_20.setContentsMargins(3, 0, 3, 0)
        self.horizontalLayout_20.setObjectName("horizontalLayout_20")
        self.pbEnADC7 = QtWidgets.QPushButton(self.enableADC2)
        self.pbEnADC7.setMinimumSize(QtCore.QSize(90, 0))
        self.pbEnADC7.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.pbEnADC7.setCheckable(True)
        self.pbEnADC7.setObjectName("pbEnADC7")
        self.horizontalLayout_20.addWidget(self.pbEnADC7)
        self.pbEnADC8 = QtWidgets.QPushButton(self.enableADC2)
        self.pbEnADC8.setMinimumSize(QtCore.QSize(90, 0))
        self.pbEnADC8.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.pbEnADC8.setCheckable(True)
        self.pbEnADC8.setObjectName("pbEnADC8")
        self.horizontalLayout_20.addWidget(self.pbEnADC8)
        self.verticalLayout_7.addWidget(self.enableADC2)
        self.tabWidget.addTab(self.set, "")
        self.measure = QtWidgets.QWidget()
        self.measure.setObjectName("measure")
        self.tabWidget.addTab(self.measure, "")
        self.verticalLayout_5.addWidget(self.tabWidget)
        self.verticalLayout.addWidget(self.widget)
        self.Buttons = QtWidgets.QWidget(self.Electrode)
        self.Buttons.setMinimumSize(QtCore.QSize(200, 170))
        self.Buttons.setMaximumSize(QtCore.QSize(400, 200))
        self.Buttons.setObjectName("Buttons")
        self.verticalLayout_3 = QtWidgets.QVBoxLayout(self.Buttons)
        self.verticalLayout_3.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout_3.setSpacing(0)
        self.verticalLayout_3.setObjectName("verticalLayout_3")
        self.bRE = QtWidgets.QPushButton(self.Buttons)
        self.bRE.setMinimumSize(QtCore.QSize(140, 40))
        self.bRE.setMaximumSize(QtCore.QSize(140, 40))
        self.bRE.setLayoutDirection(QtCore.Qt.LeftToRight)
        self.bRE.setCheckable(True)
        self.bRE.setObjectName("bRE")
        self.verticalLayout_3.addWidget(self.bRE, 0, QtCore.Qt.AlignHCenter)
        self.WEs = QtWidgets.QWidget(self.Buttons)
        self.WEs.setMaximumSize(QtCore.QSize(16777215, 80))
        self.WEs.setObjectName("WEs")
        self.horizontalLayout_3 = QtWidgets.QHBoxLayout(self.WEs)
        self.horizontalLayout_3.setContentsMargins(10, 0, 9, 0)
        self.horizontalLayout_3.setSpacing(0)
        self.horizontalLayout_3.setObjectName("horizontalLayout_3")
        self.bWE1 = QtWidgets.QPushButton(self.WEs)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.bWE1.sizePolicy().hasHeightForWidth())
        self.bWE1.setSizePolicy(sizePolicy)
        self.bWE1.setMinimumSize(QtCore.QSize(50, 80))
        self.bWE1.setMaximumSize(QtCore.QSize(60, 80))
        self.bWE1.setCheckable(True)
        self.bWE1.setObjectName("bWE1")
        self.horizontalLayout_3.addWidget(self.bWE1)
        self.bWE2 = QtWidgets.QPushButton(self.WEs)
        self.bWE2.setMinimumSize(QtCore.QSize(50, 80))
        self.bWE2.setMaximumSize(QtCore.QSize(60, 80))
        self.bWE2.setCheckable(True)
        self.bWE2.setObjectName("bWE2")
        self.horizontalLayout_3.addWidget(self.bWE2)
        self.verticalLayout_3.addWidget(self.WEs)
        self.bCE = QtWidgets.QPushButton(self.Buttons)
        self.bCE.setMinimumSize(QtCore.QSize(140, 40))
        self.bCE.setMaximumSize(QtCore.QSize(400, 40))
        self.bCE.setCheckable(True)
        self.bCE.setObjectName("bCE")
        self.verticalLayout_3.addWidget(self.bCE, 0, QtCore.Qt.AlignHCenter)
        self.verticalLayout.addWidget(
            self.Buttons, 0, QtCore.Qt.AlignRight | QtCore.Qt.AlignVCenter)
        self.horizontalLayout_2.addWidget(self.Electrode)
        self.plots = QtWidgets.QWidget(self.Content)
        self.plots.setObjectName("plots")
        self.verticalLayout_4 = QtWidgets.QVBoxLayout(self.plots)
        self.verticalLayout_4.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout_4.setSpacing(0)
        self.verticalLayout_4.setObjectName("verticalLayout_4")
        self.widget_2 = QtWidgets.QWidget(self.plots)
        self.widget_2.setMaximumSize(QtCore.QSize(16777215, 50))
        self.widget_2.setObjectName("widget_2")
        self.horizontalLayout = QtWidgets.QHBoxLayout(self.widget_2)
        self.horizontalLayout.setContentsMargins(0, 0, 0, 0)
        self.horizontalLayout.setObjectName("horizontalLayout")
        spacerItem = QtWidgets.QSpacerItem(40, 20,
                                           QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout.addItem(spacerItem)
        self.label = QtWidgets.QLabel(self.widget_2)
        font = QtGui.QFont()
        font.setPointSize(22)
        font.setBold(True)
        font.setWeight(75)
        self.label.setFont(font)
        self.label.setTextFormat(QtCore.Qt.AutoText)
        self.label.setObjectName("label")
        self.horizontalLayout.addWidget(self.label)
        spacerItem1 = QtWidgets.QSpacerItem(40, 20,
                                            QtWidgets.QSizePolicy.Expanding,
                                            QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout.addItem(spacerItem1)
        self.verticalLayout_4.addWidget(self.widget_2)
        self.plot1_layout = QtWidgets.QWidget(self.plots)
        self.plot1_layout.setMinimumSize(QtCore.QSize(0, 200))
        self.plot1_layout.setMaximumSize(QtCore.QSize(16777215, 500))
        self.plot1_layout.setObjectName("plot1_layout")
        self.horizontalLayout_4 = QtWidgets.QHBoxLayout(self.plot1_layout)
        self.horizontalLayout_4.setContentsMargins(0, 5, 0, 0)
        self.horizontalLayout_4.setSpacing(5)
        self.horizontalLayout_4.setObjectName("horizontalLayout_4")
        self.widget_6 = QtWidgets.QWidget(self.plot1_layout)
        self.widget_6.setMinimumSize(QtCore.QSize(80, 0))
        self.widget_6.setMaximumSize(QtCore.QSize(200, 16777215))
        self.widget_6.setObjectName("widget_6")
        self.verticalLayout_8 = QtWidgets.QVBoxLayout(self.widget_6)
        self.verticalLayout_8.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout_8.setSpacing(8)
        self.verticalLayout_8.setObjectName("verticalLayout_8")
        self.setymax = QtWidgets.QWidget(self.widget_6)
        self.setymax.setMaximumSize(QtCore.QSize(16777215, 50))
        self.setymax.setObjectName("setymax")
        self.verticalLayout_9 = QtWidgets.QVBoxLayout(self.setymax)
        self.verticalLayout_9.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout_9.setSpacing(0)
        self.verticalLayout_9.setObjectName("verticalLayout_9")
        self.label_11 = QtWidgets.QLabel(self.setymax)
        self.label_11.setMaximumSize(QtCore.QSize(80, 15))
        self.label_11.setObjectName("label_11")
        self.verticalLayout_9.addWidget(self.label_11)
        self.leYMax1 = QtWidgets.QLineEdit(self.setymax)
        self.leYMax1.setObjectName("leYMax1")
        self.verticalLayout_9.addWidget(self.leYMax1)
        self.verticalLayout_8.addWidget(self.setymax)
        self.pbAutoScale1 = QtWidgets.QPushButton(self.widget_6)
        self.pbAutoScale1.setCheckable(True)
        self.pbAutoScale1.setChecked(True)
        self.pbAutoScale1.setObjectName("pbAutoScale1")
        self.verticalLayout_8.addWidget(self.pbAutoScale1)
        self.pbSetDisplay1 = QtWidgets.QPushButton(self.widget_6)
        self.pbSetDisplay1.setCheckable(True)
        self.pbSetDisplay1.setObjectName("pbSetDisplay1")
        self.verticalLayout_8.addWidget(self.pbSetDisplay1)
        self.setymin = QtWidgets.QWidget(self.widget_6)
        self.setymin.setMaximumSize(QtCore.QSize(16777215, 50))
        self.setymin.setObjectName("setymin")
        self.verticalLayout_10 = QtWidgets.QVBoxLayout(self.setymin)
        self.verticalLayout_10.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout_10.setSpacing(0)
        self.verticalLayout_10.setObjectName("verticalLayout_10")
        self.label_12 = QtWidgets.QLabel(self.setymin)
        self.label_12.setMaximumSize(QtCore.QSize(16777215, 15))
        self.label_12.setObjectName("label_12")
        self.verticalLayout_10.addWidget(self.label_12)
        self.leYMin1 = QtWidgets.QLineEdit(self.setymin)
        self.leYMin1.setObjectName("leYMin1")
        self.verticalLayout_10.addWidget(self.leYMin1)
        self.verticalLayout_8.addWidget(self.setymin)
        self.horizontalLayout_4.addWidget(self.widget_6)
        self.plot1 = PlotWidget(self.plot1_layout)
        self.plot1.setMinimumSize(QtCore.QSize(640, 180))
        self.plot1.setMaximumSize(QtCore.QSize(16777215, 360))
        self.plot1.setObjectName("plot1")
        self.horizontalLayout_4.addWidget(self.plot1)
        self.verticalLayout_4.addWidget(self.plot1_layout)
        self.plot2_layout = QtWidgets.QWidget(self.plots)
        self.plot2_layout.setMinimumSize(QtCore.QSize(0, 200))
        self.plot2_layout.setMaximumSize(QtCore.QSize(16777215, 500))
        self.plot2_layout.setObjectName("plot2_layout")
        self.horizontalLayout_21 = QtWidgets.QHBoxLayout(self.plot2_layout)
        self.horizontalLayout_21.setContentsMargins(0, 5, 0, 0)
        self.horizontalLayout_21.setSpacing(5)
        self.horizontalLayout_21.setObjectName("horizontalLayout_21")
        self.widget_7 = QtWidgets.QWidget(self.plot2_layout)
        self.widget_7.setMinimumSize(QtCore.QSize(80, 0))
        self.widget_7.setMaximumSize(QtCore.QSize(200, 16777215))
        self.widget_7.setObjectName("widget_7")
        self.verticalLayout_11 = QtWidgets.QVBoxLayout(self.widget_7)
        self.verticalLayout_11.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout_11.setSpacing(8)
        self.verticalLayout_11.setObjectName("verticalLayout_11")
        self.setymax_2 = QtWidgets.QWidget(self.widget_7)
        self.setymax_2.setMaximumSize(QtCore.QSize(16777215, 50))
        self.setymax_2.setObjectName("setymax_2")
        self.verticalLayout_12 = QtWidgets.QVBoxLayout(self.setymax_2)
        self.verticalLayout_12.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout_12.setSpacing(0)
        self.verticalLayout_12.setObjectName("verticalLayout_12")
        self.label_13 = QtWidgets.QLabel(self.setymax_2)
        self.label_13.setMaximumSize(QtCore.QSize(80, 15))
        self.label_13.setObjectName("label_13")
        self.verticalLayout_12.addWidget(self.label_13)
        self.leYMax2 = QtWidgets.QLineEdit(self.setymax_2)
        self.leYMax2.setObjectName("leYMax2")
        self.verticalLayout_12.addWidget(self.leYMax2)
        self.verticalLayout_11.addWidget(self.setymax_2)
        self.pbAutoScale2 = QtWidgets.QPushButton(self.widget_7)
        self.pbAutoScale2.setCheckable(True)
        self.pbAutoScale2.setChecked(True)
        self.pbAutoScale2.setObjectName("pbAutoScale2")
        self.verticalLayout_11.addWidget(self.pbAutoScale2)
        self.pbSetDisplay2 = QtWidgets.QPushButton(self.widget_7)
        self.pbSetDisplay2.setCheckable(True)
        self.pbSetDisplay2.setObjectName("pbSetDisplay2")
        self.verticalLayout_11.addWidget(self.pbSetDisplay2)
        self.setymin_2 = QtWidgets.QWidget(self.widget_7)
        self.setymin_2.setMaximumSize(QtCore.QSize(16777215, 50))
        self.setymin_2.setObjectName("setymin_2")
        self.verticalLayout_13 = QtWidgets.QVBoxLayout(self.setymin_2)
        self.verticalLayout_13.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout_13.setSpacing(0)
        self.verticalLayout_13.setObjectName("verticalLayout_13")
        self.label_14 = QtWidgets.QLabel(self.setymin_2)
        self.label_14.setMaximumSize(QtCore.QSize(16777215, 15))
        self.label_14.setObjectName("label_14")
        self.verticalLayout_13.addWidget(self.label_14)
        self.leYMin2 = QtWidgets.QLineEdit(self.setymin_2)
        self.leYMin2.setObjectName("leYMin2")
        self.verticalLayout_13.addWidget(self.leYMin2)
        self.verticalLayout_11.addWidget(self.setymin_2)
        self.horizontalLayout_21.addWidget(self.widget_7)
        self.plot2 = PlotWidget(self.plot2_layout)
        self.plot2.setMinimumSize(QtCore.QSize(640, 180))
        self.plot2.setMaximumSize(QtCore.QSize(16777215, 360))
        self.plot2.setObjectName("plot2")
        self.horizontalLayout_21.addWidget(self.plot2)
        self.verticalLayout_4.addWidget(self.plot2_layout)
        self.horizontalLayout_2.addWidget(self.plots)
        self.verticalLayout_2.addWidget(self.Content)
        MainWindow.setCentralWidget(self.centralwidget)
        self.menubar = QtWidgets.QMenuBar(MainWindow)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 960, 19))
        self.menubar.setObjectName("menubar")
        self.menu_File = QtWidgets.QMenu(self.menubar)
        self.menu_File.setObjectName("menu_File")
        self.menu_Tools = QtWidgets.QMenu(self.menubar)
        self.menu_Tools.setObjectName("menu_Tools")
        self.menu_Electrochemistry_Measurement = QtWidgets.QMenu(
            self.menu_Tools)
        self.menu_Electrochemistry_Measurement.setObjectName(
            "menu_Electrochemistry_Measurement")
        MainWindow.setMenuBar(self.menubar)
        self.statusbar = QtWidgets.QStatusBar(MainWindow)
        self.statusbar.setObjectName("statusbar")
        MainWindow.setStatusBar(self.statusbar)
        self.action_Load_FPGA = QtWidgets.QAction(MainWindow)
        self.action_Load_FPGA.setObjectName("action_Load_FPGA")
        self.actionLog_browser = QtWidgets.QAction(MainWindow)
        self.actionLog_browser.setObjectName("actionLog_browser")
        self.actionCyclic_voltametry = QtWidgets.QAction(MainWindow)
        self.actionCyclic_voltametry.setObjectName("actionCyclic_voltametry")
        self.actionSquare_wave_voltametry = QtWidgets.QAction(MainWindow)
        self.actionSquare_wave_voltametry.setObjectName(
            "actionSquare_wave_voltametry")
        self.actionOpen = QtWidgets.QAction(MainWindow)
        self.actionOpen.setObjectName("actionOpen")
        self.action_Exit = QtWidgets.QAction(MainWindow)
        self.action_Exit.setObjectName("action_Exit")
        self.action_Save = QtWidgets.QAction(MainWindow)
        self.action_Save.setObjectName("action_Save")
        self.action_Connect_FPGA = QtWidgets.QAction(MainWindow)
        self.action_Connect_FPGA.setObjectName("action_Connect_FPGA")
        self.menu_File.addAction(self.actionOpen)
        self.menu_File.addAction(self.action_Save)
        self.menu_File.addAction(self.action_Connect_FPGA)
        self.menu_File.addAction(self.action_Load_FPGA)
        self.menu_File.addAction(self.action_Exit)
        self.menu_Electrochemistry_Measurement.addAction(
            self.actionCyclic_voltametry)
        self.menu_Electrochemistry_Measurement.addAction(
            self.actionSquare_wave_voltametry)
        self.menu_Tools.addAction(self.actionLog_browser)
        self.menu_Tools.addAction(
            self.menu_Electrochemistry_Measurement.menuAction())
        self.menubar.addAction(self.menu_File.menuAction())
        self.menubar.addAction(self.menu_Tools.menuAction())

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

    def retranslateUi(self, MainWindow):
        _translate = QtCore.QCoreApplication.translate
        MainWindow.setWindowTitle(_translate("MainWindow", "MainWindow"))
        self.label_2.setText(_translate("MainWindow", "General Status: "))
        self.label_3.setText(_translate("MainWindow", "Reference:"))
        self.label_4.setText(_translate("MainWindow", "Counter:"))
        self.label_6.setText(_translate("MainWindow", "Working1:"))
        self.label_5.setText(_translate("MainWindow", "Working2:"))
        self.label_7.setText(_translate("MainWindow", "Extra1:"))
        self.label_8.setText(_translate("MainWindow", "Extra2:"))
        self.label_9.setText(_translate("MainWindow", "Extra3:"))
        self.label_10.setText(_translate("MainWindow", "Extra4:"))
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.read),
                                  _translate("MainWindow", "Read"))
        self.pbSetRE.setText(_translate("MainWindow", "Set RE"))
        self.pbSetWE1.setText(_translate("MainWindow", "Set WE1"))
        self.pbSetWE2.setText(_translate("MainWindow", "Set WE2"))
        self.pbSetADCRef.setText(_translate("MainWindow", "Set ADC Ref"))
        self.pbSwWe1.setText(_translate("MainWindow", "SW_WE1"))
        self.pbSwWe2.setText(_translate("MainWindow", "SW_WE2"))
        self.pbSwEx1.setText(_translate("MainWindow", "SW_EX1"))
        self.pbSwEx2.setText(_translate("MainWindow", "SW_EX2"))
        self.pbEnADC5.setText(_translate("MainWindow", "EN_ADC5"))
        self.pbEnADC6.setText(_translate("MainWindow", "EN_ADC6"))
        self.pbEnADC7.setText(_translate("MainWindow", "EN_ADC7"))
        self.pbEnADC8.setText(_translate("MainWindow", "EN_ADC8"))
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.set),
                                  _translate("MainWindow", "Set"))
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.measure),
                                  _translate("MainWindow", "Measure"))
        self.bRE.setText(_translate("MainWindow", "RE"))
        self.bWE1.setText(_translate("MainWindow", "WE1"))
        self.bWE2.setText(_translate("MainWindow", "WE2"))
        self.bCE.setText(_translate("MainWindow", "CE"))
        self.label.setText(
            _translate("MainWindow", "BioEE Colony Stimulation Platform"))
        self.label_11.setText(_translate("MainWindow", "Y Max"))
        self.pbAutoScale1.setText(_translate("MainWindow", "Auto Scale"))
        self.pbSetDisplay1.setText(_translate("MainWindow", "Set Display"))
        self.label_12.setText(_translate("MainWindow", "Y Min"))
        self.label_13.setText(_translate("MainWindow", "Y Max"))
        self.pbAutoScale2.setText(_translate("MainWindow", "Auto Scale"))
        self.pbSetDisplay2.setText(_translate("MainWindow", "Set Display"))
        self.label_14.setText(_translate("MainWindow", "Y Min"))
        self.menu_File.setTitle(_translate("MainWindow", "&File"))
        self.menu_Tools.setTitle(_translate("MainWindow", "&Tools"))
        self.menu_Electrochemistry_Measurement.setTitle(
            _translate("MainWindow", "&Electrochemistry Measurement"))
        self.action_Load_FPGA.setText(
            _translate("MainWindow", "&Load FPGA ..."))
        self.actionLog_browser.setText(_translate("MainWindow",
                                                  "Lo&g browser"))
        self.actionCyclic_voltametry.setText(
            _translate("MainWindow", "Cyclic voltametry ..."))
        self.actionSquare_wave_voltametry.setText(
            _translate("MainWindow", "Square wave voltametry ..."))
        self.actionOpen.setText(_translate("MainWindow", "&Open ..."))
        self.action_Exit.setText(_translate("MainWindow", "&Exit"))
        self.action_Save.setText(_translate("MainWindow", "&Save ..."))
        self.action_Connect_FPGA.setText(
            _translate("MainWindow", "&Connect FPGA"))
Пример #27
0
class Ui_MainWindow(object):
    def setupUi(self, MainWindow):
        MainWindow.setObjectName("MainWindow")
        MainWindow.resize(800, 600)
        MainWindow.setMinimumSize(QtCore.QSize(800, 600))
        MainWindow.setMaximumSize(QtCore.QSize(800, 600))
        font = QtGui.QFont()
        font.setFamily("Ubuntu")
        font.setBold(False)
        font.setItalic(False)
        font.setUnderline(False)
        font.setWeight(50)
        font.setStrikeOut(False)
        MainWindow.setFont(font)
        MainWindow.setContextMenuPolicy(QtCore.Qt.DefaultContextMenu)
        self.centralwidget = QtWidgets.QWidget(MainWindow)
        self.centralwidget.setMinimumSize(QtCore.QSize(800, 600))
        self.centralwidget.setMaximumSize(QtCore.QSize(800, 600))
        font = QtGui.QFont()
        font.setKerning(True)
        font.setStyleStrategy(QtGui.QFont.PreferAntialias)
        self.centralwidget.setFont(font)
        self.centralwidget.setObjectName("centralwidget")
        self.graphicsView = PlotWidget(self.centralwidget)
        self.graphicsView.setGeometry(QtCore.QRect(0, 100, 800, 500))
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.MinimumExpanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.graphicsView.sizePolicy().hasHeightForWidth())
        self.graphicsView.setSizePolicy(sizePolicy)
        self.graphicsView.setMinimumSize(QtCore.QSize(800, 500))
        self.graphicsView.setMaximumSize(QtCore.QSize(800, 500))
        self.graphicsView.setObjectName("graphicsView")
        self.splitter = QtWidgets.QSplitter(self.centralwidget)
        self.splitter.setGeometry(QtCore.QRect(0, 0, 800, 100))
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
        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.widget = QtWidgets.QWidget(self.splitter)
        self.widget.setObjectName("widget")
        self.horizontalLayout_1 = QtWidgets.QHBoxLayout(self.widget)
        self.horizontalLayout_1.setContentsMargins(0, 0, 0, 0)
        self.horizontalLayout_1.setObjectName("horizontalLayout_1")
        self.label_1 = QtWidgets.QLabel(self.widget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.label_1.sizePolicy().hasHeightForWidth())
        self.label_1.setSizePolicy(sizePolicy)
        self.label_1.setScaledContents(False)
        self.label_1.setAlignment(QtCore.Qt.AlignCenter)
        self.label_1.setObjectName("label_1")
        self.horizontalLayout_1.addWidget(self.label_1)
        self.verticalSlider_1 = QtWidgets.QSlider(self.widget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(20)
        sizePolicy.setVerticalStretch(100)
        sizePolicy.setHeightForWidth(self.verticalSlider_1.sizePolicy().hasHeightForWidth())
        self.verticalSlider_1.setSizePolicy(sizePolicy)
        self.verticalSlider_1.setMinimumSize(QtCore.QSize(20, 100))
        self.verticalSlider_1.setMaximumSize(QtCore.QSize(20, 100))
        self.verticalSlider_1.setMinimum(-100)
        self.verticalSlider_1.setMaximum(100)
        self.verticalSlider_1.setTracking(True)
        self.verticalSlider_1.setOrientation(QtCore.Qt.Vertical)
        self.verticalSlider_1.setObjectName("verticalSlider_1")
        self.horizontalLayout_1.addWidget(self.verticalSlider_1)
        self.label_2 = QtWidgets.QLabel(self.widget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.label_2.sizePolicy().hasHeightForWidth())
        self.label_2.setSizePolicy(sizePolicy)
        self.label_2.setScaledContents(False)
        self.label_2.setAlignment(QtCore.Qt.AlignCenter)
        self.label_2.setObjectName("label_2")
        self.horizontalLayout_1.addWidget(self.label_2)
        self.verticalSlider_2 = QtWidgets.QSlider(self.widget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(20)
        sizePolicy.setVerticalStretch(100)
        sizePolicy.setHeightForWidth(self.verticalSlider_2.sizePolicy().hasHeightForWidth())
        self.verticalSlider_2.setSizePolicy(sizePolicy)
        self.verticalSlider_2.setMinimumSize(QtCore.QSize(20, 100))
        self.verticalSlider_2.setMaximumSize(QtCore.QSize(20, 100))
        self.verticalSlider_2.setMinimum(-100)
        self.verticalSlider_2.setMaximum(100)
        self.verticalSlider_2.setTracking(True)
        self.verticalSlider_2.setOrientation(QtCore.Qt.Vertical)
        self.verticalSlider_2.setObjectName("verticalSlider_2")
        self.horizontalLayout_1.addWidget(self.verticalSlider_2)
        self.label_3 = QtWidgets.QLabel(self.widget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.label_3.sizePolicy().hasHeightForWidth())
        self.label_3.setSizePolicy(sizePolicy)
        self.label_3.setScaledContents(False)
        self.label_3.setAlignment(QtCore.Qt.AlignCenter)
        self.label_3.setObjectName("label_3")
        self.horizontalLayout_1.addWidget(self.label_3)
        self.verticalSlider_3 = QtWidgets.QSlider(self.widget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(20)
        sizePolicy.setVerticalStretch(100)
        sizePolicy.setHeightForWidth(self.verticalSlider_3.sizePolicy().hasHeightForWidth())
        self.verticalSlider_3.setSizePolicy(sizePolicy)
        self.verticalSlider_3.setMinimumSize(QtCore.QSize(20, 100))
        self.verticalSlider_3.setMaximumSize(QtCore.QSize(20, 100))
        self.verticalSlider_3.setMinimum(-100)
        self.verticalSlider_3.setMaximum(100)
        self.verticalSlider_3.setTracking(True)
        self.verticalSlider_3.setOrientation(QtCore.Qt.Vertical)
        self.verticalSlider_3.setObjectName("verticalSlider_3")
        self.horizontalLayout_1.addWidget(self.verticalSlider_3)
        self.label_4 = QtWidgets.QLabel(self.widget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.label_4.sizePolicy().hasHeightForWidth())
        self.label_4.setSizePolicy(sizePolicy)
        self.label_4.setScaledContents(False)
        self.label_4.setAlignment(QtCore.Qt.AlignCenter)
        self.label_4.setObjectName("label_4")
        self.horizontalLayout_1.addWidget(self.label_4)
        self.verticalSlider_4 = QtWidgets.QSlider(self.widget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(20)
        sizePolicy.setVerticalStretch(100)
        sizePolicy.setHeightForWidth(self.verticalSlider_4.sizePolicy().hasHeightForWidth())
        self.verticalSlider_4.setSizePolicy(sizePolicy)
        self.verticalSlider_4.setMinimumSize(QtCore.QSize(20, 100))
        self.verticalSlider_4.setMaximumSize(QtCore.QSize(20, 100))
        self.verticalSlider_4.setMinimum(-100)
        self.verticalSlider_4.setMaximum(100)
        self.verticalSlider_4.setTracking(True)
        self.verticalSlider_4.setOrientation(QtCore.Qt.Vertical)
        self.verticalSlider_4.setObjectName("verticalSlider_4")
        self.horizontalLayout_1.addWidget(self.verticalSlider_4)
        self.label_5 = QtWidgets.QLabel(self.widget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.label_5.sizePolicy().hasHeightForWidth())
        self.label_5.setSizePolicy(sizePolicy)
        self.label_5.setScaledContents(False)
        self.label_5.setAlignment(QtCore.Qt.AlignCenter)
        self.label_5.setObjectName("label_5")
        self.horizontalLayout_1.addWidget(self.label_5)
        self.verticalSlider_5 = QtWidgets.QSlider(self.widget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(20)
        sizePolicy.setVerticalStretch(100)
        sizePolicy.setHeightForWidth(self.verticalSlider_5.sizePolicy().hasHeightForWidth())
        self.verticalSlider_5.setSizePolicy(sizePolicy)
        self.verticalSlider_5.setMinimumSize(QtCore.QSize(20, 100))
        self.verticalSlider_5.setMaximumSize(QtCore.QSize(20, 100))
        self.verticalSlider_5.setMinimum(-100)
        self.verticalSlider_5.setMaximum(100)
        self.verticalSlider_5.setTracking(True)
        self.verticalSlider_5.setOrientation(QtCore.Qt.Vertical)
        self.verticalSlider_5.setObjectName("verticalSlider_5")
        self.horizontalLayout_1.addWidget(self.verticalSlider_5)
        self.label_6 = QtWidgets.QLabel(self.widget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.label_6.sizePolicy().hasHeightForWidth())
        self.label_6.setSizePolicy(sizePolicy)
        self.label_6.setScaledContents(False)
        self.label_6.setAlignment(QtCore.Qt.AlignCenter)
        self.label_6.setObjectName("label_6")
        self.horizontalLayout_1.addWidget(self.label_6)
        self.verticalSlider_6 = QtWidgets.QSlider(self.widget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(20)
        sizePolicy.setVerticalStretch(100)
        sizePolicy.setHeightForWidth(self.verticalSlider_6.sizePolicy().hasHeightForWidth())
        self.verticalSlider_6.setSizePolicy(sizePolicy)
        self.verticalSlider_6.setMinimumSize(QtCore.QSize(20, 100))
        self.verticalSlider_6.setMaximumSize(QtCore.QSize(20, 100))
        self.verticalSlider_6.setMinimum(-100)
        self.verticalSlider_6.setMaximum(100)
        self.verticalSlider_6.setTracking(True)
        self.verticalSlider_6.setOrientation(QtCore.Qt.Vertical)
        self.verticalSlider_6.setObjectName("verticalSlider_6")
        self.horizontalLayout_1.addWidget(self.verticalSlider_6)
        self.layoutWidget = QtWidgets.QWidget(self.splitter)
        self.layoutWidget.setObjectName("layoutWidget")
        self.horizontalLayout_2 = QtWidgets.QHBoxLayout(self.layoutWidget)
        self.horizontalLayout_2.setContentsMargins(0, 0, 0, 0)
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.label_7 = QtWidgets.QLabel(self.layoutWidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.label_7.sizePolicy().hasHeightForWidth())
        self.label_7.setSizePolicy(sizePolicy)
        self.label_7.setScaledContents(False)
        self.label_7.setAlignment(QtCore.Qt.AlignCenter)
        self.label_7.setObjectName("label_7")
        self.horizontalLayout_2.addWidget(self.label_7)
        self.verticalSlider_7 = QtWidgets.QSlider(self.layoutWidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(20)
        sizePolicy.setVerticalStretch(100)
        sizePolicy.setHeightForWidth(self.verticalSlider_7.sizePolicy().hasHeightForWidth())
        self.verticalSlider_7.setSizePolicy(sizePolicy)
        self.verticalSlider_7.setMinimumSize(QtCore.QSize(20, 100))
        self.verticalSlider_7.setMaximumSize(QtCore.QSize(20, 100))
        self.verticalSlider_7.setMinimum(-100)
        self.verticalSlider_7.setMaximum(100)
        self.verticalSlider_7.setTracking(True)
        self.verticalSlider_7.setOrientation(QtCore.Qt.Vertical)
        self.verticalSlider_7.setObjectName("verticalSlider_7")
        self.horizontalLayout_2.addWidget(self.verticalSlider_7)
        self.label_8 = QtWidgets.QLabel(self.layoutWidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.label_8.sizePolicy().hasHeightForWidth())
        self.label_8.setSizePolicy(sizePolicy)
        self.label_8.setScaledContents(False)
        self.label_8.setAlignment(QtCore.Qt.AlignCenter)
        self.label_8.setObjectName("label_8")
        self.horizontalLayout_2.addWidget(self.label_8)
        self.verticalSlider_8 = QtWidgets.QSlider(self.layoutWidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(20)
        sizePolicy.setVerticalStretch(100)
        sizePolicy.setHeightForWidth(self.verticalSlider_8.sizePolicy().hasHeightForWidth())
        self.verticalSlider_8.setSizePolicy(sizePolicy)
        self.verticalSlider_8.setMinimumSize(QtCore.QSize(20, 100))
        self.verticalSlider_8.setMaximumSize(QtCore.QSize(20, 100))
        self.verticalSlider_8.setMinimum(-100)
        self.verticalSlider_8.setMaximum(100)
        self.verticalSlider_8.setTracking(True)
        self.verticalSlider_8.setOrientation(QtCore.Qt.Vertical)
        self.verticalSlider_8.setObjectName("verticalSlider_8")
        self.horizontalLayout_2.addWidget(self.verticalSlider_8)
        self.label_9 = QtWidgets.QLabel(self.layoutWidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.label_9.sizePolicy().hasHeightForWidth())
        self.label_9.setSizePolicy(sizePolicy)
        self.label_9.setScaledContents(False)
        self.label_9.setAlignment(QtCore.Qt.AlignCenter)
        self.label_9.setObjectName("label_9")
        self.horizontalLayout_2.addWidget(self.label_9)
        self.verticalSlider_9 = QtWidgets.QSlider(self.layoutWidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(20)
        sizePolicy.setVerticalStretch(100)
        sizePolicy.setHeightForWidth(self.verticalSlider_9.sizePolicy().hasHeightForWidth())
        self.verticalSlider_9.setSizePolicy(sizePolicy)
        self.verticalSlider_9.setMinimumSize(QtCore.QSize(20, 100))
        self.verticalSlider_9.setMaximumSize(QtCore.QSize(20, 100))
        self.verticalSlider_9.setMinimum(-100)
        self.verticalSlider_9.setMaximum(100)
        self.verticalSlider_9.setTracking(True)
        self.verticalSlider_9.setOrientation(QtCore.Qt.Vertical)
        self.verticalSlider_9.setObjectName("verticalSlider_9")
        self.horizontalLayout_2.addWidget(self.verticalSlider_9)
        self.label_10 = QtWidgets.QLabel(self.layoutWidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.label_10.sizePolicy().hasHeightForWidth())
        self.label_10.setSizePolicy(sizePolicy)
        self.label_10.setScaledContents(False)
        self.label_10.setAlignment(QtCore.Qt.AlignCenter)
        self.label_10.setObjectName("label_10")
        self.horizontalLayout_2.addWidget(self.label_10)
        self.verticalSlider_10 = QtWidgets.QSlider(self.layoutWidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(20)
        sizePolicy.setVerticalStretch(100)
        sizePolicy.setHeightForWidth(self.verticalSlider_10.sizePolicy().hasHeightForWidth())
        self.verticalSlider_10.setSizePolicy(sizePolicy)
        self.verticalSlider_10.setMinimumSize(QtCore.QSize(20, 100))
        self.verticalSlider_10.setMaximumSize(QtCore.QSize(20, 100))
        self.verticalSlider_10.setMinimum(-100)
        self.verticalSlider_10.setMaximum(100)
        self.verticalSlider_10.setTracking(True)
        self.verticalSlider_10.setOrientation(QtCore.Qt.Vertical)
        self.verticalSlider_10.setObjectName("verticalSlider_10")
        self.horizontalLayout_2.addWidget(self.verticalSlider_10)
        self.label_11 = QtWidgets.QLabel(self.layoutWidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.label_11.sizePolicy().hasHeightForWidth())
        self.label_11.setSizePolicy(sizePolicy)
        self.label_11.setScaledContents(False)
        self.label_11.setAlignment(QtCore.Qt.AlignCenter)
        self.label_11.setObjectName("label_11")
        self.horizontalLayout_2.addWidget(self.label_11)
        self.verticalSlider_11 = QtWidgets.QSlider(self.layoutWidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(20)
        sizePolicy.setVerticalStretch(100)
        sizePolicy.setHeightForWidth(self.verticalSlider_11.sizePolicy().hasHeightForWidth())
        self.verticalSlider_11.setSizePolicy(sizePolicy)
        self.verticalSlider_11.setMinimumSize(QtCore.QSize(20, 100))
        self.verticalSlider_11.setMaximumSize(QtCore.QSize(20, 100))
        self.verticalSlider_11.setMinimum(-100)
        self.verticalSlider_11.setMaximum(100)
        self.verticalSlider_11.setTracking(True)
        self.verticalSlider_11.setOrientation(QtCore.Qt.Vertical)
        self.verticalSlider_11.setObjectName("verticalSlider_11")
        self.horizontalLayout_2.addWidget(self.verticalSlider_11)
        self.label_12 = QtWidgets.QLabel(self.layoutWidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.label_12.sizePolicy().hasHeightForWidth())
        self.label_12.setSizePolicy(sizePolicy)
        self.label_12.setScaledContents(False)
        self.label_12.setAlignment(QtCore.Qt.AlignCenter)
        self.label_12.setObjectName("label_12")
        self.horizontalLayout_2.addWidget(self.label_12)
        self.verticalSlider_12 = QtWidgets.QSlider(self.layoutWidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(20)
        sizePolicy.setVerticalStretch(100)
        sizePolicy.setHeightForWidth(self.verticalSlider_12.sizePolicy().hasHeightForWidth())
        self.verticalSlider_12.setSizePolicy(sizePolicy)
        self.verticalSlider_12.setMinimumSize(QtCore.QSize(20, 100))
        self.verticalSlider_12.setMaximumSize(QtCore.QSize(20, 100))
        self.verticalSlider_12.setMinimum(-100)
        self.verticalSlider_12.setMaximum(100)
        self.verticalSlider_12.setTracking(True)
        self.verticalSlider_12.setOrientation(QtCore.Qt.Vertical)
        self.verticalSlider_12.setObjectName("verticalSlider_12")
        self.horizontalLayout_2.addWidget(self.verticalSlider_12)
        MainWindow.setCentralWidget(self.centralwidget)

        self.retranslateUi(MainWindow)
        self.verticalSlider_1.valueChanged['int'].connect(self.update_graphics)
        self.verticalSlider_2.valueChanged['int'].connect(self.update_graphics)
        self.verticalSlider_3.valueChanged['int'].connect(self.update_graphics)
        self.verticalSlider_4.valueChanged['int'].connect(self.update_graphics)
        self.verticalSlider_5.valueChanged['int'].connect(self.update_graphics)
        self.verticalSlider_6.valueChanged['int'].connect(self.update_graphics)
        self.verticalSlider_7.valueChanged['int'].connect(self.update_graphics)
        self.verticalSlider_8.valueChanged['int'].connect(self.update_graphics)
        self.verticalSlider_9.valueChanged['int'].connect(self.update_graphics)
        self.verticalSlider_10.valueChanged['int'].connect(self.update_graphics)
        self.verticalSlider_11.valueChanged['int'].connect(self.update_graphics)
        self.verticalSlider_12.valueChanged['int'].connect(self.update_graphics)
        QtCore.QMetaObject.connectSlotsByName(MainWindow)

    def retranslateUi(self, MainWindow):
        _translate = QtCore.QCoreApplication.translate
        MainWindow.setWindowTitle(_translate("MainWindow", "Преобразование Фурье"))
        self.label_1.setText(_translate("MainWindow", "a1"))
        self.label_2.setText(_translate("MainWindow", "a2"))
        self.label_3.setText(_translate("MainWindow", "a3"))
        self.label_4.setText(_translate("MainWindow", "a4"))
        self.label_5.setText(_translate("MainWindow", "a5"))
        self.label_6.setText(_translate("MainWindow", "a6"))
        self.label_7.setText(_translate("MainWindow", "fi1"))
        self.label_8.setText(_translate("MainWindow", "fi2"))
        self.label_9.setText(_translate("MainWindow", "fi3"))
        self.label_10.setText(_translate("MainWindow", "fi4"))
        self.label_11.setText(_translate("MainWindow", "fi5"))
        self.label_12.setText(_translate("MainWindow", "fi6"))

    def update_graphics(self):
        pass
Пример #28
0
class Ui_sample_list(object):
    def setupUi(self, sample_list):
        sample_list.setObjectName(_fromUtf8("sample_list"))
        sample_list.resize(1259, 920)
        self.verticalLayout = QtGui.QVBoxLayout(sample_list)
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.groupBox = QtGui.QGroupBox(sample_list)
        self.groupBox.setMaximumSize(QtCore.QSize(16777215, 40))
        self.groupBox.setObjectName(_fromUtf8("groupBox"))
        self.horizontalLayout_2 = QtGui.QHBoxLayout(self.groupBox)
        self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2"))
        self.label = QtGui.QLabel(self.groupBox)
        self.label.setEnabled(True)
        font = QtGui.QFont()
        font.setFamily(_fromUtf8("Arial Black"))
        font.setBold(True)
        font.setWeight(75)
        self.label.setFont(font)
        self.label.setObjectName(_fromUtf8("label"))
        self.horizontalLayout_2.addWidget(self.label)
        self.checkBox1 = QtGui.QCheckBox(self.groupBox)
        self.checkBox1.setMaximumSize(QtCore.QSize(89, 20))
        self.checkBox1.setChecked(True)
        self.checkBox1.setObjectName(_fromUtf8("checkBox1"))
        self.horizontalLayout_2.addWidget(self.checkBox1)
        self.checkBox2 = QtGui.QCheckBox(self.groupBox)
        self.checkBox2.setMaximumSize(QtCore.QSize(88, 20))
        self.checkBox2.setChecked(True)
        self.checkBox2.setObjectName(_fromUtf8("checkBox2"))
        self.horizontalLayout_2.addWidget(self.checkBox2)
        self.checkBox3 = QtGui.QCheckBox(self.groupBox)
        self.checkBox3.setMaximumSize(QtCore.QSize(88, 20))
        self.checkBox3.setChecked(True)
        self.checkBox3.setObjectName(_fromUtf8("checkBox3"))
        self.horizontalLayout_2.addWidget(self.checkBox3)
        self.verticalLayout.addWidget(self.groupBox)
        self.grPlot = PlotWidget(sample_list)
        self.grPlot.setMaximumSize(QtCore.QSize(16777215, 200))
        self.grPlot.setAutoFillBackground(False)
        brush = QtGui.QBrush(QtGui.QColor(85, 255, 255))
        brush.setStyle(QtCore.Qt.NoBrush)
        self.grPlot.setBackgroundBrush(brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 85, 0))
        brush.setStyle(QtCore.Qt.NoBrush)
        self.grPlot.setForegroundBrush(brush)
        self.grPlot.setObjectName(_fromUtf8("grPlot"))
        self.verticalLayout.addWidget(self.grPlot)
        self.tableWidget = QtGui.QTableWidget(sample_list)
        self.tableWidget.setEnabled(True)
        font = QtGui.QFont()
        font.setFamily(_fromUtf8("Arial"))
        font.setPointSize(12)
        font.setBold(False)
        font.setItalic(False)
        font.setWeight(50)
        self.tableWidget.setFont(font)
        self.tableWidget.setStyleSheet(
            _fromUtf8(" text-align : center;\n"
                      "   height : 80px;\n"
                      "   border-style: outset 2px;"))
        self.tableWidget.setLineWidth(1)
        self.tableWidget.setAutoScroll(True)
        self.tableWidget.setDragEnabled(False)
        self.tableWidget.setDragDropOverwriteMode(False)
        self.tableWidget.setDragDropMode(QtGui.QAbstractItemView.NoDragDrop)
        self.tableWidget.setRowCount(11)
        self.tableWidget.setColumnCount(14)
        self.tableWidget.setObjectName(_fromUtf8("tableWidget"))
        item = QtGui.QTableWidgetItem()
        item.setTextAlignment(QtCore.Qt.AlignHCenter | QtCore.Qt.AlignVCenter
                              | QtCore.Qt.AlignCenter)
        self.tableWidget.setVerticalHeaderItem(0, item)
        item = QtGui.QTableWidgetItem()
        item.setTextAlignment(QtCore.Qt.AlignHCenter | QtCore.Qt.AlignVCenter
                              | QtCore.Qt.AlignCenter)
        self.tableWidget.setVerticalHeaderItem(1, item)
        item = QtGui.QTableWidgetItem()
        self.tableWidget.setVerticalHeaderItem(2, item)
        item = QtGui.QTableWidgetItem()
        self.tableWidget.setVerticalHeaderItem(3, item)
        item = QtGui.QTableWidgetItem()
        self.tableWidget.setVerticalHeaderItem(4, item)
        item = QtGui.QTableWidgetItem()
        self.tableWidget.setVerticalHeaderItem(5, item)
        item = QtGui.QTableWidgetItem()
        self.tableWidget.setVerticalHeaderItem(6, item)
        item = QtGui.QTableWidgetItem()
        self.tableWidget.setVerticalHeaderItem(7, item)
        item = QtGui.QTableWidgetItem()
        self.tableWidget.setVerticalHeaderItem(8, item)
        item = QtGui.QTableWidgetItem()
        self.tableWidget.setVerticalHeaderItem(9, item)
        item = QtGui.QTableWidgetItem()
        self.tableWidget.setVerticalHeaderItem(10, item)
        item = QtGui.QTableWidgetItem()
        self.tableWidget.setHorizontalHeaderItem(0, item)
        item = QtGui.QTableWidgetItem()
        self.tableWidget.setHorizontalHeaderItem(1, item)
        item = QtGui.QTableWidgetItem()
        self.tableWidget.setHorizontalHeaderItem(2, item)
        item = QtGui.QTableWidgetItem()
        self.tableWidget.setHorizontalHeaderItem(3, item)
        item = QtGui.QTableWidgetItem()
        self.tableWidget.setHorizontalHeaderItem(4, item)
        item = QtGui.QTableWidgetItem()
        self.tableWidget.setHorizontalHeaderItem(5, item)
        item = QtGui.QTableWidgetItem()
        self.tableWidget.setHorizontalHeaderItem(6, item)
        item = QtGui.QTableWidgetItem()
        self.tableWidget.setHorizontalHeaderItem(7, item)
        item = QtGui.QTableWidgetItem()
        self.tableWidget.setHorizontalHeaderItem(8, item)
        item = QtGui.QTableWidgetItem()
        self.tableWidget.setHorizontalHeaderItem(9, item)
        item = QtGui.QTableWidgetItem()
        self.tableWidget.setHorizontalHeaderItem(10, item)
        item = QtGui.QTableWidgetItem()
        self.tableWidget.setHorizontalHeaderItem(11, item)
        item = QtGui.QTableWidgetItem()
        self.tableWidget.setHorizontalHeaderItem(12, item)
        item = QtGui.QTableWidgetItem()
        self.tableWidget.setHorizontalHeaderItem(13, item)
        item = QtGui.QTableWidgetItem()
        self.tableWidget.setItem(0, 0, item)
        item = QtGui.QTableWidgetItem()
        item.setTextAlignment(QtCore.Qt.AlignHCenter | QtCore.Qt.AlignVCenter
                              | QtCore.Qt.AlignCenter)
        self.tableWidget.setItem(0, 8, item)
        self.verticalLayout.addWidget(self.tableWidget)
        self.horizontalLayout = QtGui.QHBoxLayout()
        self.horizontalLayout.setContentsMargins(-1, 20, -1, 20)
        self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
        self.btn_Privious = QtGui.QPushButton(sample_list)
        self.btn_Privious.setMinimumSize(QtCore.QSize(151, 41))
        self.btn_Privious.setMaximumSize(QtCore.QSize(151, 41))
        font = QtGui.QFont()
        font.setFamily(_fromUtf8("Arial Black"))
        self.btn_Privious.setFont(font)
        self.btn_Privious.setObjectName(_fromUtf8("btn_Privious"))
        self.horizontalLayout.addWidget(self.btn_Privious)
        self.btn_Next = QtGui.QPushButton(sample_list)
        self.btn_Next.setMinimumSize(QtCore.QSize(151, 41))
        self.btn_Next.setMaximumSize(QtCore.QSize(151, 41))
        font = QtGui.QFont()
        font.setFamily(_fromUtf8("Arial Black"))
        self.btn_Next.setFont(font)
        self.btn_Next.setObjectName(_fromUtf8("btn_Next"))
        self.horizontalLayout.addWidget(self.btn_Next)
        self.btn_Export = QtGui.QPushButton(sample_list)
        self.btn_Export.setMaximumSize(QtCore.QSize(151, 41))
        font = QtGui.QFont()
        font.setFamily(_fromUtf8("Arial Black"))
        font.setBold(True)
        font.setWeight(75)
        self.btn_Export.setFont(font)
        self.btn_Export.setObjectName(_fromUtf8("btn_Export"))
        self.horizontalLayout.addWidget(self.btn_Export)
        self.verticalLayout.addLayout(self.horizontalLayout)

        self.retranslateUi(sample_list)
        QtCore.QObject.connect(self.btn_Privious,
                               QtCore.SIGNAL(_fromUtf8("clicked()")),
                               sample_list.on_btnPrivStep_clicked)
        QtCore.QObject.connect(self.btn_Privious,
                               QtCore.SIGNAL(_fromUtf8("clicked()")),
                               sample_list.close)
        QtCore.QObject.connect(self.btn_Next,
                               QtCore.SIGNAL(_fromUtf8("clicked()")),
                               sample_list.on_btnNextStep_clicked)
        QtCore.QObject.connect(self.btn_Export,
                               QtCore.SIGNAL(_fromUtf8("clicked()")),
                               sample_list.on_btnExport_clicked)
        QtCore.QMetaObject.connectSlotsByName(sample_list)
        sample_list.setTabOrder(self.tableWidget, self.btn_Privious)

    def retranslateUi(self, sample_list):
        sample_list.setWindowTitle(_translate("sample_list", "Form", None))
        self.label.setText(
            _translate(
                "sample_list",
                "                                                                                                                                    Please select specimen for calculating Average Degradation - DR",
                None))
        self.checkBox1.setText(_translate("sample_list", "specimen1", None))
        self.checkBox2.setText(_translate("sample_list", "specimen2", None))
        self.checkBox3.setText(_translate("sample_list", "specimen3", None))
        item = self.tableWidget.horizontalHeaderItem(0)
        item.setText(_translate("sample_list", "Name", None))
        item = self.tableWidget.horizontalHeaderItem(1)
        item.setText(_translate("sample_list", "Color", None))
        item = self.tableWidget.horizontalHeaderItem(2)
        item.setText(_translate("sample_list", "Materia", None))
        item = self.tableWidget.horizontalHeaderItem(3)
        item.setText(_translate("sample_list", "Chemistry", None))
        item = self.tableWidget.horizontalHeaderItem(4)
        item.setText(_translate("sample_list", "Thickness", None))
        item = self.tableWidget.horizontalHeaderItem(5)
        item.setText(_translate("sample_list", "Standard", None))
        item = self.tableWidget.horizontalHeaderItem(6)
        item.setText(_translate("sample_list", "Exposed Time", None))
        item = self.tableWidget.horizontalHeaderItem(7)
        item.setText(_translate("sample_list", "Specimen", None))
        item = self.tableWidget.horizontalHeaderItem(8)
        item.setText(_translate("sample_list", "OPx", None))
        item = self.tableWidget.horizontalHeaderItem(9)
        item.setText(_translate("sample_list", "OPx-Data", None))
        item = self.tableWidget.horizontalHeaderItem(10)
        item.setText(_translate("sample_list", "RPx", None))
        item = self.tableWidget.horizontalHeaderItem(11)
        item.setText(_translate("sample_list", "RPx-Data", None))
        item = self.tableWidget.horizontalHeaderItem(12)
        item.setText(_translate("sample_list", "DRx", None))
        item = self.tableWidget.horizontalHeaderItem(13)
        item.setText(_translate("sample_list", "DR", None))
        __sortingEnabled = self.tableWidget.isSortingEnabled()
        self.tableWidget.setSortingEnabled(False)
        self.tableWidget.setSortingEnabled(__sortingEnabled)
        self.btn_Privious.setText(
            _translate("sample_list", "Privious Step", None))
        self.btn_Next.setText(_translate("sample_list", "Next Step", None))
        self.btn_Export.setText(
            _translate("sample_list", "Export Result", None))
Пример #29
0
class Ui_ModelConfig(object):
    def setupUi(self, ModelConfig):
        ModelConfig.setObjectName("ModelConfig")
        ModelConfig.resize(1186, 683)
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap(":/images/icon.png"), QtGui.QIcon.Normal,
                       QtGui.QIcon.Off)
        ModelConfig.setWindowIcon(icon)
        ModelConfig.setStyleSheet(
            "QLabel#lbl_title {\n"
            "font: 75 20pt \"Microsoft YaHei UI\";\n"
            "font-weight: bold;\n"
            "qproperty-alignment: AlignCenter;\n"
            "color: qlineargradient(spread:pad, x1:0, y1:0, x2:1, y2:0, stop:0 #3643f7, stop:1 #3643f7);\n"
            "}\n"
            "\n"
            "#btn_homepage {\n"
            "background: transparent;\n"
            "border-radius: 19px;\n"
            "}\n"
            "\n"
            "#btn_homepage::hover {\n"
            "background: #3f72af;\n"
            "}\n"
            "\n"
            "#btn_help {\n"
            "background: transparent;\n"
            "border-radius: 19px;\n"
            "}\n"
            "\n"
            "#btn_help::hover {\n"
            "background: #3f72af;\n"
            "}\n"
            "#btn_embed,#btn_bot, #btn_human {\n"
            "font: 75 11pt \"MS Shell Dialog 2\";\n"
            "border-radius: 0px;\n"
            "}\n"
            "QPushButton {\n"
            "font: 75 13pt \"Microsoft YaHei UI\";\n"
            "font-weight: bold;\n"
            "border-radius: 9px;\n"
            "border: 1px solid black;\n"
            "background-color: #f0f5f9;\n"
            "}\n"
            "QPushButton::disabled {\n"
            "background-color: #D3D3D3;\n"
            "}\n"
            "QPushButton::hover {\n"
            "background: #c9d6df;\n"
            "}\n"
            "QPushButton:pressed {\n"
            "background: #3f72af;\n"
            "}\n"
            "QSlider::groove:horizontal {\n"
            "border: 1px solid #bbb;\n"
            "background: white;\n"
            "height: 10px;\n"
            "border-radius: 4px;\n"
            "}\n"
            "\n"
            "QSlider::sub-page:horizontal {\n"
            "background: qlineargradient(x1: 0, y1: 0,    x2: 0, y2: 1,\n"
            "    stop: 0 #66e, stop: 1 #bbf);\n"
            "background: qlineargradient(x1: 0, y1: 0.2, x2: 1, y2: 1,\n"
            "    stop: 0 #bbf, stop: 1 #55f);\n"
            "border: 1px solid #777;\n"
            "height: 10px;\n"
            "border-radius: 4px;\n"
            "}\n"
            "\n"
            "QSlider::add-page:horizontal {\n"
            "background: #fff;\n"
            "border: 1px solid #777;\n"
            "height: 10px;\n"
            "border-radius: 4px;\n"
            "}\n"
            "\n"
            "QSlider::handle:horizontal {\n"
            "background: qlineargradient(x1:0, y1:0, x2:1, y2:1,\n"
            "    stop:0 #eee, stop:1 #ccc);\n"
            "border: 1px solid #777;\n"
            "width: 13px;\n"
            "margin-top: -2px;\n"
            "margin-bottom: -2px;\n"
            "border-radius: 4px;\n"
            "}\n"
            "\n"
            "QSlider::handle:horizontal:hover {\n"
            "background: qlineargradient(x1:0, y1:0, x2:1, y2:1,\n"
            "    stop:0 #fff, stop:1 #ddd);\n"
            "border: 1px solid #444;\n"
            "border-radius: 4px;\n"
            "}\n"
            "\n"
            "QSlider::sub-page:horizontal:disabled {\n"
            "background: #bbb;\n"
            "border-color: #999;\n"
            "}\n"
            "\n"
            "QSlider::add-page:horizontal:disabled {\n"
            "background: #eee;\n"
            "border-color: #999;\n"
            "}\n"
            "\n"
            "QSlider::handle:horizontal:disabled {\n"
            "background: #eee;\n"
            "border: 1px solid #aaa;\n"
            "border-radius: 4px;\n"
            "}\n"
            "\n"
            "QProgressBar:horizontal {\n"
            "border: 1px solid gray;\n"
            "border-radius: 3px;\n"
            "background: white;\n"
            "padding: 0px;\n"
            "}\n"
            "QProgressBar::chunk:horizontal {\n"
            "background: qlineargradient(x1: 0, y1: 0,    x2: 0, y2: 1,\n"
            "    stop: 0 #a8ff78, stop: 1 #78ffd6);\n"
            "}\n"
            "\n"
            "QComboBox {\n"
            "font: 75 9pt \"MS Shell Dlg 2\";\n"
            "color: #1F1F21;\n"
            " border: 1px solid gray;\n"
            " border-radius: 8px;\n"
            " min-width: 6em;\n"
            "padding-left: 8px;\n"
            "qproperty-alignment: AlignCenter;\n"
            "}\n"
            "QComboBox::hover {\n"
            " border: 1px solid blue;\n"
            "background: #f0f5f9;\n"
            "}\n"
            "/* QComboBox gets the \"on\" state when the popup is open */\n"
            "QComboBox:!editable:on, QComboBox::drop-down:editable:on {\n"
            "    color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,\n"
            "                                stop: 0 #D3D3D3, stop: 0.4 #D8D8D8,\n"
            "                                stop: 0.5 #DDDDDD, stop: 1.0 #E1E1E1);\n"
            "}\n"
            "QComboBox:on {\n"
            "    borde-radius: 10px;\n"
            "}\n"
            "\n"
            "QComboBox::drop-down {\n"
            "    subcontrol-origin: padding;\n"
            "    subcontrol-position: top right;\n"
            "    width: 25px;\n"
            "    border-left-width: 1px;\n"
            "    border-left-color: darkgray;\n"
            "    border-left-style: solid; /* just a single line */\n"
            "    border-top-right-radius: 10px; /* same radius as the QComboBox */\n"
            "    border-bottom-right-radius: 10px;\n"
            "}\n"
            "QComboBox QAbstractItemView {\n"
            "    border-radius: 10px;\n"
            "    background: white;\n"
            "    border: 1px solid gray;\n"
            "    box-shadow: transparent;\n"
            "    selection-background-color:lightblue;\n"
            "    color: #1F1F21;\n"
            "}\n"
            "\n"
            "QComboBox::down-arrow {\n"
            "image: url(:/images/arrow_down.png);\n"
            "    width: 15px;\n"
            "    height: 15px;\n"
            "padding-right: 1px;\n"
            "}\n"
            "")
        self.verticalLayout_13 = QtWidgets.QVBoxLayout(ModelConfig)
        self.verticalLayout_13.setContentsMargins(-1, 5, -1, 8)
        self.verticalLayout_13.setSpacing(5)
        self.verticalLayout_13.setObjectName("verticalLayout_13")
        self.horizontalLayout_11 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_11.setContentsMargins(-1, 0, -1, -1)
        self.horizontalLayout_11.setObjectName("horizontalLayout_11")
        self.btn_homepage = QtWidgets.QToolButton(ModelConfig)
        self.btn_homepage.setAutoFillBackground(False)
        self.btn_homepage.setText("")
        icon1 = QtGui.QIcon()
        icon1.addPixmap(QtGui.QPixmap(":/images/homepage.png"),
                        QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.btn_homepage.setIcon(icon1)
        self.btn_homepage.setIconSize(QtCore.QSize(35, 35))
        self.btn_homepage.setObjectName("btn_homepage")
        self.horizontalLayout_11.addWidget(self.btn_homepage)
        self.btn_help = QtWidgets.QToolButton(ModelConfig)
        self.btn_help.setText("")
        icon2 = QtGui.QIcon()
        icon2.addPixmap(QtGui.QPixmap(":/images/help.png"), QtGui.QIcon.Normal,
                        QtGui.QIcon.Off)
        self.btn_help.setIcon(icon2)
        self.btn_help.setIconSize(QtCore.QSize(35, 35))
        self.btn_help.setObjectName("btn_help")
        self.horizontalLayout_11.addWidget(self.btn_help)
        self.lbl_title = QtWidgets.QLabel(ModelConfig)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.lbl_title.sizePolicy().hasHeightForWidth())
        self.lbl_title.setSizePolicy(sizePolicy)
        self.lbl_title.setAlignment(QtCore.Qt.AlignCenter)
        self.lbl_title.setObjectName("lbl_title")
        self.horizontalLayout_11.addWidget(self.lbl_title)
        spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Fixed,
                                           QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_11.addItem(spacerItem)
        self.verticalLayout_13.addLayout(self.horizontalLayout_11)
        self.horizontalLayout_6 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_6.setContentsMargins(-1, -1, -1, 0)
        self.horizontalLayout_6.setObjectName("horizontalLayout_6")
        self.verticalFrame = QtWidgets.QFrame(ModelConfig)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.verticalFrame.sizePolicy().hasHeightForWidth())
        self.verticalFrame.setSizePolicy(sizePolicy)
        self.verticalFrame.setMinimumSize(QtCore.QSize(430, 470))
        self.verticalFrame.setMaximumSize(QtCore.QSize(450, 16777215))
        self.verticalFrame.setObjectName("verticalFrame")
        self.verticalLayout = QtWidgets.QVBoxLayout(self.verticalFrame)
        self.verticalLayout.setContentsMargins(-1, 0, -1, 0)
        self.verticalLayout.setSpacing(5)
        self.verticalLayout.setObjectName("verticalLayout")
        self.groupbox_inputs = QtWidgets.QGroupBox(self.verticalFrame)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.groupbox_inputs.sizePolicy().hasHeightForWidth())
        self.groupbox_inputs.setSizePolicy(sizePolicy)
        self.groupbox_inputs.setObjectName("groupbox_inputs")
        self.horizontalLayout = QtWidgets.QHBoxLayout(self.groupbox_inputs)
        self.horizontalLayout.setSizeConstraint(
            QtWidgets.QLayout.SetMinimumSize)
        self.horizontalLayout.setContentsMargins(14, 7, 14, 11)
        self.horizontalLayout.setSpacing(7)
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.verticalLayout_3 = QtWidgets.QVBoxLayout()
        self.verticalLayout_3.setContentsMargins(-1, -1, -1, 0)
        self.verticalLayout_3.setSpacing(6)
        self.verticalLayout_3.setObjectName("verticalLayout_3")
        self.label = QtWidgets.QLabel(self.groupbox_inputs)
        self.label.setObjectName("label")
        self.verticalLayout_3.addWidget(self.label)
        self.label_2 = QtWidgets.QLabel(self.groupbox_inputs)
        self.label_2.setObjectName("label_2")
        self.verticalLayout_3.addWidget(self.label_2)
        self.label_3 = QtWidgets.QLabel(self.groupbox_inputs)
        self.label_3.setObjectName("label_3")
        self.verticalLayout_3.addWidget(self.label_3)
        self.horizontalLayout.addLayout(self.verticalLayout_3)
        self.verticalLayout_4 = QtWidgets.QVBoxLayout()
        self.verticalLayout_4.setContentsMargins(0, -1, 0, 0)
        self.verticalLayout_4.setSpacing(6)
        self.verticalLayout_4.setObjectName("verticalLayout_4")
        self.textbox_embed = QtWidgets.QLineEdit(self.groupbox_inputs)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.textbox_embed.sizePolicy().hasHeightForWidth())
        self.textbox_embed.setSizePolicy(sizePolicy)
        self.textbox_embed.setMinimumSize(QtCore.QSize(0, 0))
        self.textbox_embed.setMaximumSize(QtCore.QSize(500, 16777215))
        self.textbox_embed.setText("")
        self.textbox_embed.setObjectName("textbox_embed")
        self.verticalLayout_4.addWidget(self.textbox_embed)
        self.textbox_bot = QtWidgets.QLineEdit(self.groupbox_inputs)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.textbox_bot.sizePolicy().hasHeightForWidth())
        self.textbox_bot.setSizePolicy(sizePolicy)
        self.textbox_bot.setMinimumSize(QtCore.QSize(0, 0))
        self.textbox_bot.setMaximumSize(QtCore.QSize(500, 16777215))
        self.textbox_bot.setObjectName("textbox_bot")
        self.verticalLayout_4.addWidget(self.textbox_bot)
        self.textbox_human = QtWidgets.QLineEdit(self.groupbox_inputs)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.textbox_human.sizePolicy().hasHeightForWidth())
        self.textbox_human.setSizePolicy(sizePolicy)
        self.textbox_human.setMinimumSize(QtCore.QSize(0, 0))
        self.textbox_human.setMaximumSize(QtCore.QSize(500, 16777215))
        self.textbox_human.setObjectName("textbox_human")
        self.verticalLayout_4.addWidget(self.textbox_human)
        self.horizontalLayout.addLayout(self.verticalLayout_4)
        self.verticalLayout_5 = QtWidgets.QVBoxLayout()
        self.verticalLayout_5.setContentsMargins(-1, -1, 0, -1)
        self.verticalLayout_5.setSpacing(6)
        self.verticalLayout_5.setObjectName("verticalLayout_5")
        self.btn_embed = QtWidgets.QPushButton(self.groupbox_inputs)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.btn_embed.sizePolicy().hasHeightForWidth())
        self.btn_embed.setSizePolicy(sizePolicy)
        self.btn_embed.setMinimumSize(QtCore.QSize(35, 0))
        self.btn_embed.setMaximumSize(QtCore.QSize(35, 16777215))
        self.btn_embed.setObjectName("btn_embed")
        self.verticalLayout_5.addWidget(self.btn_embed)
        self.btn_bot = QtWidgets.QPushButton(self.groupbox_inputs)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.btn_bot.sizePolicy().hasHeightForWidth())
        self.btn_bot.setSizePolicy(sizePolicy)
        self.btn_bot.setMinimumSize(QtCore.QSize(35, 0))
        self.btn_bot.setMaximumSize(QtCore.QSize(35, 16777215))
        self.btn_bot.setObjectName("btn_bot")
        self.verticalLayout_5.addWidget(self.btn_bot)
        self.btn_human = QtWidgets.QPushButton(self.groupbox_inputs)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.btn_human.sizePolicy().hasHeightForWidth())
        self.btn_human.setSizePolicy(sizePolicy)
        self.btn_human.setMinimumSize(QtCore.QSize(35, 0))
        self.btn_human.setMaximumSize(QtCore.QSize(35, 16777215))
        self.btn_human.setObjectName("btn_human")
        self.verticalLayout_5.addWidget(self.btn_human)
        self.horizontalLayout.addLayout(self.verticalLayout_5)
        self.verticalLayout.addWidget(self.groupbox_inputs)
        self.groupbox_dataset = QtWidgets.QGroupBox(self.verticalFrame)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.groupbox_dataset.sizePolicy().hasHeightForWidth())
        self.groupbox_dataset.setSizePolicy(sizePolicy)
        self.groupbox_dataset.setObjectName("groupbox_dataset")
        self.horizontalLayout_2 = QtWidgets.QHBoxLayout(self.groupbox_dataset)
        self.horizontalLayout_2.setContentsMargins(14, 7, 14, 11)
        self.horizontalLayout_2.setSpacing(7)
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.verticalLayout_2 = QtWidgets.QVBoxLayout()
        self.verticalLayout_2.setContentsMargins(-1, -1, -1, 0)
        self.verticalLayout_2.setSpacing(6)
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        self.label_4 = QtWidgets.QLabel(self.groupbox_dataset)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.label_4.sizePolicy().hasHeightForWidth())
        self.label_4.setSizePolicy(sizePolicy)
        self.label_4.setObjectName("label_4")
        self.verticalLayout_2.addWidget(self.label_4)
        self.label_5 = QtWidgets.QLabel(self.groupbox_dataset)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.label_5.sizePolicy().hasHeightForWidth())
        self.label_5.setSizePolicy(sizePolicy)
        self.label_5.setObjectName("label_5")
        self.verticalLayout_2.addWidget(self.label_5)
        self.label_6 = QtWidgets.QLabel(self.groupbox_dataset)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.label_6.sizePolicy().hasHeightForWidth())
        self.label_6.setSizePolicy(sizePolicy)
        self.label_6.setObjectName("label_6")
        self.verticalLayout_2.addWidget(self.label_6)
        self.horizontalLayout_2.addLayout(self.verticalLayout_2)
        self.verticalLayout_6 = QtWidgets.QVBoxLayout()
        self.verticalLayout_6.setSpacing(6)
        self.verticalLayout_6.setObjectName("verticalLayout_6")
        self.slider_train = QtWidgets.QSlider(self.groupbox_dataset)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.slider_train.sizePolicy().hasHeightForWidth())
        self.slider_train.setSizePolicy(sizePolicy)
        self.slider_train.setMinimumSize(QtCore.QSize(255, 0))
        self.slider_train.setMaximumSize(QtCore.QSize(255, 16777215))
        self.slider_train.setMinimum(5)
        self.slider_train.setMaximum(100)
        self.slider_train.setProperty("value", 80)
        self.slider_train.setOrientation(QtCore.Qt.Horizontal)
        self.slider_train.setInvertedAppearance(False)
        self.slider_train.setTickPosition(QtWidgets.QSlider.NoTicks)
        self.slider_train.setObjectName("slider_train")
        self.verticalLayout_6.addWidget(self.slider_train)
        self.slider_val = QtWidgets.QSlider(self.groupbox_dataset)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.slider_val.sizePolicy().hasHeightForWidth())
        self.slider_val.setSizePolicy(sizePolicy)
        self.slider_val.setMinimumSize(QtCore.QSize(255, 0))
        self.slider_val.setMaximumSize(QtCore.QSize(255, 16777215))
        self.slider_val.setMinimum(5)
        self.slider_val.setMaximum(100)
        self.slider_val.setProperty("value", 25)
        self.slider_val.setOrientation(QtCore.Qt.Horizontal)
        self.slider_val.setObjectName("slider_val")
        self.verticalLayout_6.addWidget(self.slider_val)
        self.combobox_gen_method = QtWidgets.QComboBox(self.groupbox_dataset)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.combobox_gen_method.sizePolicy().hasHeightForWidth())
        self.combobox_gen_method.setSizePolicy(sizePolicy)
        self.combobox_gen_method.setMinimumSize(QtCore.QSize(94, 22))
        self.combobox_gen_method.setMaximumSize(QtCore.QSize(200, 22))
        self.combobox_gen_method.setObjectName("combobox_gen_method")
        self.combobox_gen_method.addItem("")
        self.combobox_gen_method.addItem("")
        self.verticalLayout_6.addWidget(self.combobox_gen_method)
        self.horizontalLayout_2.addLayout(self.verticalLayout_6)
        self.verticalLayout_9 = QtWidgets.QVBoxLayout()
        self.verticalLayout_9.setContentsMargins(0, -1, -1, 0)
        self.verticalLayout_9.setSpacing(6)
        self.verticalLayout_9.setObjectName("verticalLayout_9")
        self.lbl_train = QtWidgets.QLabel(self.groupbox_dataset)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.lbl_train.sizePolicy().hasHeightForWidth())
        self.lbl_train.setSizePolicy(sizePolicy)
        self.lbl_train.setAlignment(QtCore.Qt.AlignCenter)
        self.lbl_train.setObjectName("lbl_train")
        self.verticalLayout_9.addWidget(self.lbl_train)
        self.lbl_val = QtWidgets.QLabel(self.groupbox_dataset)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.lbl_val.sizePolicy().hasHeightForWidth())
        self.lbl_val.setSizePolicy(sizePolicy)
        self.lbl_val.setAlignment(QtCore.Qt.AlignCenter)
        self.lbl_val.setObjectName("lbl_val")
        self.verticalLayout_9.addWidget(self.lbl_val)
        spacerItem1 = QtWidgets.QSpacerItem(16, 30,
                                            QtWidgets.QSizePolicy.Minimum,
                                            QtWidgets.QSizePolicy.Fixed)
        self.verticalLayout_9.addItem(spacerItem1)
        self.horizontalLayout_2.addLayout(self.verticalLayout_9)
        spacerItem2 = QtWidgets.QSpacerItem(40, 20,
                                            QtWidgets.QSizePolicy.Expanding,
                                            QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_2.addItem(spacerItem2)
        self.verticalLayout.addWidget(self.groupbox_dataset)
        self.groupbox_trainparams = QtWidgets.QGroupBox(self.verticalFrame)
        self.groupbox_trainparams.setObjectName("groupbox_trainparams")
        self.horizontalLayout_3 = QtWidgets.QHBoxLayout(
            self.groupbox_trainparams)
        self.horizontalLayout_3.setContentsMargins(14, 7, 14, 11)
        self.horizontalLayout_3.setSpacing(7)
        self.horizontalLayout_3.setObjectName("horizontalLayout_3")
        self.verticalLayout_7 = QtWidgets.QVBoxLayout()
        self.verticalLayout_7.setSpacing(6)
        self.verticalLayout_7.setObjectName("verticalLayout_7")
        self.label_10 = QtWidgets.QLabel(self.groupbox_trainparams)
        self.label_10.setObjectName("label_10")
        self.verticalLayout_7.addWidget(self.label_10)
        self.label_7 = QtWidgets.QLabel(self.groupbox_trainparams)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.label_7.sizePolicy().hasHeightForWidth())
        self.label_7.setSizePolicy(sizePolicy)
        self.label_7.setObjectName("label_7")
        self.verticalLayout_7.addWidget(self.label_7)
        self.label_8 = QtWidgets.QLabel(self.groupbox_trainparams)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.label_8.sizePolicy().hasHeightForWidth())
        self.label_8.setSizePolicy(sizePolicy)
        self.label_8.setObjectName("label_8")
        self.verticalLayout_7.addWidget(self.label_8)
        self.label_9 = QtWidgets.QLabel(self.groupbox_trainparams)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.label_9.sizePolicy().hasHeightForWidth())
        self.label_9.setSizePolicy(sizePolicy)
        self.label_9.setObjectName("label_9")
        self.verticalLayout_7.addWidget(self.label_9)
        self.horizontalLayout_3.addLayout(self.verticalLayout_7)
        self.verticalLayout_8 = QtWidgets.QVBoxLayout()
        self.verticalLayout_8.setSpacing(6)
        self.verticalLayout_8.setObjectName("verticalLayout_8")
        self.horizontalLayout_12 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_12.setContentsMargins(-1, 0, -1, -1)
        self.horizontalLayout_12.setObjectName("horizontalLayout_12")
        self.spinbox_earlystop = QtWidgets.QSpinBox(self.groupbox_trainparams)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.spinbox_earlystop.sizePolicy().hasHeightForWidth())
        self.spinbox_earlystop.setSizePolicy(sizePolicy)
        self.spinbox_earlystop.setMinimumSize(QtCore.QSize(60, 20))
        self.spinbox_earlystop.setMaximumSize(QtCore.QSize(60, 20))
        self.spinbox_earlystop.setMinimum(1)
        self.spinbox_earlystop.setMaximum(100)
        self.spinbox_earlystop.setProperty("value", 5)
        self.spinbox_earlystop.setObjectName("spinbox_earlystop")
        self.horizontalLayout_12.addWidget(self.spinbox_earlystop)
        self.label_11 = QtWidgets.QLabel(self.groupbox_trainparams)
        self.label_11.setObjectName("label_11")
        self.horizontalLayout_12.addWidget(self.label_11)
        self.verticalLayout_8.addLayout(self.horizontalLayout_12)
        self.spinbox_batch = QtWidgets.QSpinBox(self.groupbox_trainparams)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.spinbox_batch.sizePolicy().hasHeightForWidth())
        self.spinbox_batch.setSizePolicy(sizePolicy)
        self.spinbox_batch.setMinimumSize(QtCore.QSize(0, 20))
        self.spinbox_batch.setMaximumSize(QtCore.QSize(60, 20))
        self.spinbox_batch.setMinimum(50)
        self.spinbox_batch.setMaximum(1024)
        self.spinbox_batch.setProperty("value", 50)
        self.spinbox_batch.setObjectName("spinbox_batch")
        self.verticalLayout_8.addWidget(self.spinbox_batch)
        self.spinbox_epoches = QtWidgets.QSpinBox(self.groupbox_trainparams)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.spinbox_epoches.sizePolicy().hasHeightForWidth())
        self.spinbox_epoches.setSizePolicy(sizePolicy)
        self.spinbox_epoches.setMinimumSize(QtCore.QSize(0, 20))
        self.spinbox_epoches.setMaximumSize(QtCore.QSize(60, 20))
        self.spinbox_epoches.setMinimum(1)
        self.spinbox_epoches.setMaximum(100)
        self.spinbox_epoches.setProperty("value", 15)
        self.spinbox_epoches.setObjectName("spinbox_epoches")
        self.verticalLayout_8.addWidget(self.spinbox_epoches)
        self.checkbox_additional_feats = QtWidgets.QCheckBox(
            self.groupbox_trainparams)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.checkbox_additional_feats.sizePolicy().hasHeightForWidth())
        self.checkbox_additional_feats.setSizePolicy(sizePolicy)
        self.checkbox_additional_feats.setMinimumSize(QtCore.QSize(0, 20))
        self.checkbox_additional_feats.setMaximumSize(QtCore.QSize(100, 20))
        self.checkbox_additional_feats.setChecked(True)
        self.checkbox_additional_feats.setObjectName(
            "checkbox_additional_feats")
        self.verticalLayout_8.addWidget(self.checkbox_additional_feats)
        self.horizontalLayout_3.addLayout(self.verticalLayout_8)
        spacerItem3 = QtWidgets.QSpacerItem(40, 20,
                                            QtWidgets.QSizePolicy.Expanding,
                                            QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_3.addItem(spacerItem3)
        self.verticalLayout.addWidget(self.groupbox_trainparams)
        spacerItem4 = QtWidgets.QSpacerItem(20, 40,
                                            QtWidgets.QSizePolicy.Minimum,
                                            QtWidgets.QSizePolicy.Expanding)
        self.verticalLayout.addItem(spacerItem4)
        self.horizontalLayout_4 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_4.setContentsMargins(14, 0, 14, 0)
        self.horizontalLayout_4.setSpacing(31)
        self.horizontalLayout_4.setObjectName("horizontalLayout_4")
        self.btn_start = QtWidgets.QPushButton(self.verticalFrame)
        self.btn_start.setEnabled(True)
        self.btn_start.setMinimumSize(QtCore.QSize(0, 35))
        self.btn_start.setMaximumSize(QtCore.QSize(16777215, 35))
        icon3 = QtGui.QIcon()
        icon3.addPixmap(QtGui.QPixmap(":/images/run.gif"), QtGui.QIcon.Normal,
                        QtGui.QIcon.Off)
        self.btn_start.setIcon(icon3)
        self.btn_start.setIconSize(QtCore.QSize(30, 30))
        self.btn_start.setObjectName("btn_start")
        self.horizontalLayout_4.addWidget(self.btn_start)
        self.btn_stop = QtWidgets.QPushButton(self.verticalFrame)
        self.btn_stop.setEnabled(False)
        self.btn_stop.setMinimumSize(QtCore.QSize(0, 35))
        self.btn_stop.setMaximumSize(QtCore.QSize(16777215, 35))
        icon4 = QtGui.QIcon()
        icon4.addPixmap(QtGui.QPixmap(":/images/stop.png"), QtGui.QIcon.Normal,
                        QtGui.QIcon.Off)
        self.btn_stop.setIcon(icon4)
        self.btn_stop.setIconSize(QtCore.QSize(25, 25))
        self.btn_stop.setObjectName("btn_stop")
        self.horizontalLayout_4.addWidget(self.btn_stop)
        self.btn_save = QtWidgets.QPushButton(self.verticalFrame)
        self.btn_save.setEnabled(False)
        self.btn_save.setMinimumSize(QtCore.QSize(0, 35))
        self.btn_save.setMaximumSize(QtCore.QSize(16777215, 35))
        icon5 = QtGui.QIcon()
        icon5.addPixmap(QtGui.QPixmap(":/images/save.png"), QtGui.QIcon.Normal,
                        QtGui.QIcon.Off)
        self.btn_save.setIcon(icon5)
        self.btn_save.setIconSize(QtCore.QSize(25, 25))
        self.btn_save.setObjectName("btn_save")
        self.horizontalLayout_4.addWidget(self.btn_save)
        self.verticalLayout.addLayout(self.horizontalLayout_4)
        spacerItem5 = QtWidgets.QSpacerItem(20, 40,
                                            QtWidgets.QSizePolicy.Minimum,
                                            QtWidgets.QSizePolicy.Expanding)
        self.verticalLayout.addItem(spacerItem5)
        self.horizontalLayout_5 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_5.setContentsMargins(14, 8, 14, 0)
        self.horizontalLayout_5.setSpacing(6)
        self.horizontalLayout_5.setObjectName("horizontalLayout_5")
        self.verticalLayout_10 = QtWidgets.QVBoxLayout()
        self.verticalLayout_10.setContentsMargins(-1, -1, -1, 0)
        self.verticalLayout_10.setObjectName("verticalLayout_10")
        self.label_13 = QtWidgets.QLabel(self.verticalFrame)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.label_13.sizePolicy().hasHeightForWidth())
        self.label_13.setSizePolicy(sizePolicy)
        self.label_13.setObjectName("label_13")
        self.verticalLayout_10.addWidget(self.label_13)
        self.label_12 = QtWidgets.QLabel(self.verticalFrame)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.label_12.sizePolicy().hasHeightForWidth())
        self.label_12.setSizePolicy(sizePolicy)
        self.label_12.setObjectName("label_12")
        self.verticalLayout_10.addWidget(self.label_12)
        self.horizontalLayout_5.addLayout(self.verticalLayout_10)
        self.verticalLayout_11 = QtWidgets.QVBoxLayout()
        self.verticalLayout_11.setObjectName("verticalLayout_11")
        self.progressbar_epoches = QtWidgets.QProgressBar(self.verticalFrame)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.progressbar_epoches.sizePolicy().hasHeightForWidth())
        self.progressbar_epoches.setSizePolicy(sizePolicy)
        self.progressbar_epoches.setMinimumSize(QtCore.QSize(0, 17))
        self.progressbar_epoches.setMaximumSize(QtCore.QSize(16777215, 17))
        self.progressbar_epoches.setMinimum(0)
        self.progressbar_epoches.setMaximum(100)
        self.progressbar_epoches.setProperty("value", 0)
        self.progressbar_epoches.setAlignment(QtCore.Qt.AlignCenter)
        self.progressbar_epoches.setTextDirection(
            QtWidgets.QProgressBar.TopToBottom)
        self.progressbar_epoches.setObjectName("progressbar_epoches")
        self.verticalLayout_11.addWidget(self.progressbar_epoches)
        self.progressbar_batch = QtWidgets.QProgressBar(self.verticalFrame)
        self.progressbar_batch.setMinimumSize(QtCore.QSize(0, 17))
        self.progressbar_batch.setMaximumSize(QtCore.QSize(16777215, 17))
        self.progressbar_batch.setProperty("value", 0)
        self.progressbar_batch.setAlignment(QtCore.Qt.AlignCenter)
        self.progressbar_batch.setObjectName("progressbar_batch")
        self.verticalLayout_11.addWidget(self.progressbar_batch)
        self.horizontalLayout_5.addLayout(self.verticalLayout_11)
        self.verticalLayout.addLayout(self.horizontalLayout_5)
        self.horizontalLayout_6.addWidget(self.verticalFrame)
        self.verticalFrame_11 = QtWidgets.QFrame(ModelConfig)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.verticalFrame_11.sizePolicy().hasHeightForWidth())
        self.verticalFrame_11.setSizePolicy(sizePolicy)
        self.verticalFrame_11.setMinimumSize(QtCore.QSize(600, 0))
        self.verticalFrame_11.setObjectName("verticalFrame_11")
        self.verticalLayout_12 = QtWidgets.QVBoxLayout(self.verticalFrame_11)
        self.verticalLayout_12.setContentsMargins(-1, 0, -1, 0)
        self.verticalLayout_12.setSpacing(5)
        self.verticalLayout_12.setObjectName("verticalLayout_12")
        self.horizontalFrame_4 = QtWidgets.QFrame(self.verticalFrame_11)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.horizontalFrame_4.sizePolicy().hasHeightForWidth())
        self.horizontalFrame_4.setSizePolicy(sizePolicy)
        self.horizontalFrame_4.setObjectName("horizontalFrame_4")
        self.horizontalLayout_8 = QtWidgets.QHBoxLayout(self.horizontalFrame_4)
        self.horizontalLayout_8.setContentsMargins(-1, 6, -1, -1)
        self.horizontalLayout_8.setObjectName("horizontalLayout_8")
        self.graph_acc_epoch = PlotWidget(self.horizontalFrame_4)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.graph_acc_epoch.sizePolicy().hasHeightForWidth())
        self.graph_acc_epoch.setSizePolicy(sizePolicy)
        self.graph_acc_epoch.setMinimumSize(QtCore.QSize(200, 200))
        self.graph_acc_epoch.setMaximumSize(QtCore.QSize(9999999, 9999999))
        self.graph_acc_epoch.setObjectName("graph_acc_epoch")
        self.horizontalLayout_8.addWidget(self.graph_acc_epoch)
        self.graph_loss_epoch = PlotWidget(self.horizontalFrame_4)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.graph_loss_epoch.sizePolicy().hasHeightForWidth())
        self.graph_loss_epoch.setSizePolicy(sizePolicy)
        self.graph_loss_epoch.setMinimumSize(QtCore.QSize(200, 200))
        self.graph_loss_epoch.setMaximumSize(QtCore.QSize(9999999, 9999999))
        self.graph_loss_epoch.setObjectName("graph_loss_epoch")
        self.horizontalLayout_8.addWidget(self.graph_loss_epoch)
        self.verticalLayout_12.addWidget(self.horizontalFrame_4)
        self.horizontalFrame_41 = QtWidgets.QFrame(self.verticalFrame_11)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.horizontalFrame_41.sizePolicy().hasHeightForWidth())
        self.horizontalFrame_41.setSizePolicy(sizePolicy)
        self.horizontalFrame_41.setObjectName("horizontalFrame_41")
        self.horizontalLayout_9 = QtWidgets.QHBoxLayout(
            self.horizontalFrame_41)
        self.horizontalLayout_9.setContentsMargins(-1, 0, -1, -1)
        self.horizontalLayout_9.setObjectName("horizontalLayout_9")
        self.graph_acc_batch = PlotWidget(self.horizontalFrame_41)
        self.graph_acc_batch.setMinimumSize(QtCore.QSize(200, 200))
        self.graph_acc_batch.setObjectName("graph_acc_batch")
        self.horizontalLayout_9.addWidget(self.graph_acc_batch)
        self.graph_loss_batch = PlotWidget(self.horizontalFrame_41)
        self.graph_loss_batch.setMinimumSize(QtCore.QSize(200, 200))
        self.graph_loss_batch.setObjectName("graph_loss_batch")
        self.horizontalLayout_9.addWidget(self.graph_loss_batch)
        self.verticalLayout_12.addWidget(self.horizontalFrame_41)
        self.horizontalLayout_6.addWidget(self.verticalFrame_11)
        self.verticalLayout_13.addLayout(self.horizontalLayout_6)
        self.horizontalGroupBox_4 = QtWidgets.QGroupBox(ModelConfig)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.horizontalGroupBox_4.sizePolicy().hasHeightForWidth())
        self.horizontalGroupBox_4.setSizePolicy(sizePolicy)
        self.horizontalGroupBox_4.setObjectName("horizontalGroupBox_4")
        self.horizontalLayout_10 = QtWidgets.QHBoxLayout(
            self.horizontalGroupBox_4)
        self.horizontalLayout_10.setContentsMargins(10, 11, 10, 11)
        self.horizontalLayout_10.setObjectName("horizontalLayout_10")
        self.textbox_log = QtWidgets.QTextEdit(self.horizontalGroupBox_4)
        self.textbox_log.setDocumentTitle("")
        self.textbox_log.setReadOnly(True)
        self.textbox_log.setPlaceholderText("")
        self.textbox_log.setObjectName("textbox_log")
        self.horizontalLayout_10.addWidget(self.textbox_log)
        self.verticalLayout_13.addWidget(self.horizontalGroupBox_4)

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

    def retranslateUi(self, ModelConfig):
        _translate = QtCore.QCoreApplication.translate
        ModelConfig.setWindowTitle(
            _translate("ModelConfig", "Model Configuration"))
        self.btn_homepage.setToolTip(
            _translate("ModelConfig", "Back To HomePage"))
        self.btn_help.setToolTip(
            _translate("ModelConfig", "Open Help Documentation"))
        self.lbl_title.setText(_translate("ModelConfig",
                                          "Model Configuration"))
        self.groupbox_inputs.setTitle(_translate("ModelConfig", "Input Files"))
        self.label.setText(_translate("ModelConfig", "Embedding File:"))
        self.label_2.setText(_translate("ModelConfig", "Bot File:"))
        self.label_3.setText(_translate("ModelConfig", "Human File:"))
        self.btn_embed.setText(_translate("ModelConfig", "..."))
        self.btn_bot.setText(_translate("ModelConfig", "..."))
        self.btn_human.setText(_translate("ModelConfig", "..."))
        self.groupbox_dataset.setTitle(
            _translate("ModelConfig", "Dataset Config"))
        self.label_4.setText(_translate("ModelConfig", "Training Split:"))
        self.label_5.setText(_translate("ModelConfig", "Validation Split:"))
        self.label_6.setText(_translate("ModelConfig", "Generation Method:"))
        self.combobox_gen_method.setItemText(
            0, _translate("ModelConfig", "User Grouping"))
        self.combobox_gen_method.setItemText(
            1, _translate("ModelConfig", "Random Pairing"))
        self.lbl_train.setText(_translate("ModelConfig", "80%"))
        self.lbl_val.setText(_translate("ModelConfig", "20%"))
        self.groupbox_trainparams.setTitle(
            _translate("ModelConfig", "Training Parameters"))
        self.label_10.setText(
            _translate("ModelConfig", "Early Stopping After:"))
        self.label_7.setText(_translate("ModelConfig", "Batch Size:"))
        self.label_8.setText(_translate("ModelConfig", "Epochs:"))
        self.label_9.setText(_translate("ModelConfig", "Additional Features:"))
        self.label_11.setText(_translate("ModelConfig", "Epochs"))
        self.checkbox_additional_feats.setText(
            _translate("ModelConfig", "Enabled"))
        self.btn_start.setText(_translate("ModelConfig", "Start"))
        self.btn_stop.setText(_translate("ModelConfig", "Stop"))
        self.btn_save.setText(_translate("ModelConfig", "Save"))
        self.label_13.setText(_translate("ModelConfig", "Epoches"))
        self.label_12.setText(_translate("ModelConfig", "Batch"))
        self.horizontalGroupBox_4.setTitle(_translate("ModelConfig", "Log"))
Пример #30
0
class Ui_HitFinding(object):
    def setupUi(self, HitFinding):
        HitFinding.setObjectName(_fromUtf8("HitFinding"))
        HitFinding.resize(622, 817)
        #HitFinding.setFrameShape(QtGui.QFrame.StyledPanel)
        #HitFinding.setFrameShadow(QtGui.QFrame.Raised)
        self.HitRateView = PlotWidget(HitFinding)
        self.HitRateView.setGeometry(QtCore.QRect(20, 20, 590, 400))
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.HitRateView.sizePolicy().hasHeightForWidth())
        self.HitRateView.setSizePolicy(sizePolicy)
        self.HitRateView.setMinimumSize(QtCore.QSize(590, 400))
        self.HitRateView.setMaximumSize(QtCore.QSize(590, 400))
        self.HitRateView.setSizeIncrement(QtCore.QSize(1, 1))
        self.HitRateView.setObjectName(_fromUtf8("HitRateView"))
        self.groupBox_4 = QtGui.QGroupBox(HitFinding)
        self.groupBox_4.setGeometry(QtCore.QRect(20, 430, 581, 221))
        self.groupBox_4.setObjectName(_fromUtf8("groupBox_4"))
        self.label_24 = QtGui.QLabel(self.groupBox_4)
        self.label_24.setGeometry(QtCore.QRect(444, 71, 17, 21))
        self.label_24.setObjectName(_fromUtf8("label_24"))
        self.label_25 = QtGui.QLabel(self.groupBox_4)
        self.label_25.setGeometry(QtCore.QRect(444, 40, 17, 21))
        self.label_25.setObjectName(_fromUtf8("label_25"))
        self.ROIX1 = QtGui.QLineEdit(self.groupBox_4)
        self.ROIX1.setGeometry(QtCore.QRect(359, 40, 75, 21))
        self.ROIX1.setObjectName(_fromUtf8("ROIX1"))
        self.label_26 = QtGui.QLabel(self.groupBox_4)
        self.label_26.setGeometry(QtCore.QRect(326, 71, 25, 21))
        self.label_26.setObjectName(_fromUtf8("label_26"))
        self.ROIX2 = QtGui.QLineEdit(self.groupBox_4)
        self.ROIX2.setGeometry(QtCore.QRect(359, 71, 75, 21))
        self.ROIX2.setObjectName(_fromUtf8("ROIX2"))
        self.ROIY2 = QtGui.QLineEdit(self.groupBox_4)
        self.ROIY2.setGeometry(QtCore.QRect(471, 71, 76, 21))
        self.ROIY2.setObjectName(_fromUtf8("ROIY2"))
        self.ROIY1 = QtGui.QLineEdit(self.groupBox_4)
        self.ROIY1.setGeometry(QtCore.QRect(471, 40, 76, 21))
        self.ROIY1.setObjectName(_fromUtf8("ROIY1"))
        self.label_27 = QtGui.QLabel(self.groupBox_4)
        self.label_27.setGeometry(QtCore.QRect(326, 40, 25, 21))
        self.label_27.setObjectName(_fromUtf8("label_27"))
        self.label_28 = QtGui.QLabel(self.groupBox_4)
        self.label_28.setGeometry(QtCore.QRect(290, 40, 26, 21))
        self.label_28.setObjectName(_fromUtf8("label_28"))
        self.UpdateROI = QtGui.QPushButton(self.groupBox_4)
        self.UpdateROI.setGeometry(QtCore.QRect(330, 100, 221, 32))
        self.UpdateROI.setObjectName(_fromUtf8("UpdateROI"))
        self.npix = QtGui.QLineEdit(self.groupBox_4)
        self.npix.setGeometry(QtCore.QRect(100, 70, 51, 21))
        self.npix.setObjectName(_fromUtf8("npix"))
        self.label_22 = QtGui.QLabel(self.groupBox_4)
        self.label_22.setGeometry(QtCore.QRect(30, 39, 61, 21))
        self.label_22.setObjectName(_fromUtf8("label_22"))
        self.thresh = QtGui.QLineEdit(self.groupBox_4)
        self.thresh.setGeometry(QtCore.QRect(99, 39, 51, 21))
        self.thresh.setObjectName(_fromUtf8("thresh"))
        self.label_21 = QtGui.QLabel(self.groupBox_4)
        self.label_21.setGeometry(QtCore.QRect(30, 70, 61, 21))
        self.label_21.setObjectName(_fromUtf8("label_21"))
        self.clearHitRate = QtGui.QPushButton(self.groupBox_4)
        self.clearHitRate.setGeometry(QtCore.QRect(180, 180, 221, 32))
        self.clearHitRate.setObjectName(_fromUtf8("clearHitRate"))
        self.label_23 = QtGui.QLabel(self.groupBox_4)
        self.label_23.setGeometry(QtCore.QRect(30, 100, 61, 21))
        self.label_23.setObjectName(_fromUtf8("label_23"))
        self.ncpus = QtGui.QLineEdit(self.groupBox_4)
        self.ncpus.setGeometry(QtCore.QRect(100, 100, 51, 21))
        self.ncpus.setObjectName(_fromUtf8("ncpus"))
        self.ShowROI = QtGui.QPushButton(self.groupBox_4)
        self.ShowROI.setGeometry(QtCore.QRect(330, 130, 221, 32))
        self.ShowROI.setObjectName(_fromUtf8("ShowROI"))
        self.HitLog = QtGui.QPlainTextEdit(HitFinding)
        self.HitLog.setGeometry(QtCore.QRect(20, 660, 581, 141))
        font = QtGui.QFont()
        font.setFamily(_fromUtf8("Courier New"))
        font.setPointSize(10)
        self.HitLog.setFont(font)
        self.HitLog.setObjectName(_fromUtf8("HitLog"))

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

    def retranslateUi(self, HitFinding):
        HitFinding.setWindowTitle(_translate("HitFinding", "Frame", None))
        self.groupBox_4.setTitle(_translate("HitFinding", "Hit Finding", None))
        self.label_24.setText(_translate("HitFinding", "Y2", None))
        self.label_25.setText(_translate("HitFinding", "Y1", None))
        self.ROIX1.setText(_translate("HitFinding", "0", None))
        self.label_26.setText(_translate("HitFinding", "X2", None))
        self.ROIX2.setText(_translate("HitFinding", "2167", None))
        self.ROIY2.setText(_translate("HitFinding", "2070", None))
        self.ROIY1.setText(_translate("HitFinding", "0", None))
        self.label_27.setText(_translate("HitFinding", "X1", None))
        self.label_28.setText(_translate("HitFinding", "ROI", None))
        self.UpdateROI.setText(_translate("HitFinding", "Update ROI", None))
        self.npix.setText(_translate("HitFinding", "10", None))
        self.label_22.setText(_translate("HitFinding", "Threshold", None))
        self.thresh.setText(_translate("HitFinding", "20", None))
        self.label_21.setText(_translate("HitFinding", "N Pixels", None))
        self.clearHitRate.setText(_translate("HitFinding", "Clear Plot", None))
        self.label_23.setText(_translate("HitFinding", "N Cpus", None))
        self.ncpus.setText(_translate("HitFinding", "1", None))
        self.ShowROI.setText(_translate("HitFinding", "Hide ROI", None))
Пример #31
0
class Ui_mainWindow(object):
    def setupUi(self, mainWindow):
        mainWindow.setObjectName("mainWindow")
        mainWindow.resize(1169, 803)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            mainWindow.sizePolicy().hasHeightForWidth())
        mainWindow.setSizePolicy(sizePolicy)
        mainWindow.setMinimumSize(QtCore.QSize(690, 803))
        mainWindow.setMaximumSize(QtCore.QSize(1920, 1080))
        self.centralwidget = QtWidgets.QWidget(mainWindow)
        sizePolicy = QtWidgets.QSizePolicy(
            QtWidgets.QSizePolicy.MinimumExpanding,
            QtWidgets.QSizePolicy.MinimumExpanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.centralwidget.sizePolicy().hasHeightForWidth())
        self.centralwidget.setSizePolicy(sizePolicy)
        self.centralwidget.setObjectName("centralwidget")
        self.horizontalLayout = QtWidgets.QHBoxLayout(self.centralwidget)
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.horizontalLayout_8 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_8.setSizeConstraint(
            QtWidgets.QLayout.SetNoConstraint)
        self.horizontalLayout_8.setObjectName("horizontalLayout_8")
        self.verticalLayout_17 = QtWidgets.QVBoxLayout()
        self.verticalLayout_17.setObjectName("verticalLayout_17")
        self.groupBox = QtWidgets.QGroupBox(self.centralwidget)
        self.groupBox.setMaximumSize(QtCore.QSize(250, 16777215))
        self.groupBox.setObjectName("groupBox")
        self.gridLayout_2 = QtWidgets.QGridLayout(self.groupBox)
        self.gridLayout_2.setObjectName("gridLayout_2")
        self.gridLayout = QtWidgets.QGridLayout()
        self.gridLayout.setObjectName("gridLayout")
        self.serial_port_QLineEdit = QtWidgets.QLineEdit(self.groupBox)
        self.serial_port_QLineEdit.setObjectName("serial_port_QLineEdit")
        self.gridLayout.addWidget(self.serial_port_QLineEdit, 2, 1, 1, 1)
        self.label_2 = QtWidgets.QLabel(self.groupBox)
        self.label_2.setObjectName("label_2")
        self.gridLayout.addWidget(self.label_2, 2, 0, 1, 1,
                                  QtCore.Qt.AlignRight)
        self.gridLayout_2.addLayout(self.gridLayout, 1, 0, 1, 1)
        self.gridLayout_12 = QtWidgets.QGridLayout()
        self.gridLayout_12.setObjectName("gridLayout_12")
        self.connect_pushButton = QtWidgets.QPushButton(self.groupBox)
        self.connect_pushButton.setEnabled(True)
        self.connect_pushButton.setMaximumSize(QtCore.QSize(200, 16777215))
        font = QtGui.QFont()
        font.setBold(True)
        font.setWeight(75)
        self.connect_pushButton.setFont(font)
        self.connect_pushButton.setObjectName("connect_pushButton")
        self.gridLayout_12.addWidget(self.connect_pushButton, 1, 0, 1, 1)
        self.disconnect_pushButton = QtWidgets.QPushButton(self.groupBox)
        self.disconnect_pushButton.setEnabled(False)
        font = QtGui.QFont()
        font.setBold(True)
        font.setWeight(75)
        self.disconnect_pushButton.setFont(font)
        self.disconnect_pushButton.setObjectName("disconnect_pushButton")
        self.gridLayout_12.addWidget(self.disconnect_pushButton, 1, 1, 1, 1)
        self.gridLayout_2.addLayout(self.gridLayout_12, 0, 0, 1, 1)
        self.verticalLayout_17.addWidget(self.groupBox)
        self.groupBox_2 = QtWidgets.QGroupBox(self.centralwidget)
        self.groupBox_2.setEnabled(True)
        self.groupBox_2.setMinimumSize(QtCore.QSize(0, 400))
        self.groupBox_2.setMaximumSize(QtCore.QSize(250, 16777215))
        self.groupBox_2.setObjectName("groupBox_2")
        self.verticalLayout_11 = QtWidgets.QVBoxLayout(self.groupBox_2)
        self.verticalLayout_11.setObjectName("verticalLayout_11")
        self.gridLayout_9 = QtWidgets.QGridLayout()
        self.gridLayout_9.setObjectName("gridLayout_9")
        self.start_freq_spinBox = QtWidgets.QSpinBox(self.groupBox_2)
        self.start_freq_spinBox.setMinimum(1000)
        self.start_freq_spinBox.setMaximum(99000)
        self.start_freq_spinBox.setSingleStep(1000)
        self.start_freq_spinBox.setProperty("value", 3000)
        self.start_freq_spinBox.setObjectName("start_freq_spinBox")
        self.gridLayout_9.addWidget(self.start_freq_spinBox, 13, 1, 1, 1)
        self.settling_time_spinBox = QtWidgets.QSpinBox(self.groupBox_2)
        self.settling_time_spinBox.setMinimum(1)
        self.settling_time_spinBox.setMaximum(9999)
        self.settling_time_spinBox.setProperty("value", 100)
        self.settling_time_spinBox.setObjectName("settling_time_spinBox")
        self.gridLayout_9.addWidget(self.settling_time_spinBox, 16, 1, 1, 1)
        self.fbr_comboBox = QtWidgets.QComboBox(self.groupBox_2)
        self.fbr_comboBox.setObjectName("fbr_comboBox")
        self.fbr_comboBox.addItem("")
        self.fbr_comboBox.addItem("")
        self.fbr_comboBox.addItem("")
        self.fbr_comboBox.addItem("")
        self.fbr_comboBox.addItem("")
        self.fbr_comboBox.addItem("")
        self.fbr_comboBox.addItem("")
        self.fbr_comboBox.addItem("")
        self.fbr_comboBox.addItem("")
        self.gridLayout_9.addWidget(self.fbr_comboBox, 12, 1, 1, 1)
        self.gain_resistor_comboBox = QtWidgets.QComboBox(self.groupBox_2)
        self.gain_resistor_comboBox.setObjectName("gain_resistor_comboBox")
        self.gain_resistor_comboBox.addItem("")
        self.gain_resistor_comboBox.addItem("")
        self.gain_resistor_comboBox.addItem("")
        self.gain_resistor_comboBox.addItem("")
        self.gain_resistor_comboBox.addItem("")
        self.gain_resistor_comboBox.addItem("")
        self.gain_resistor_comboBox.addItem("")
        self.gain_resistor_comboBox.addItem("")
        self.gain_resistor_comboBox.addItem("")
        self.gridLayout_9.addWidget(self.gain_resistor_comboBox, 10, 1, 1, 1)
        self.label_6 = QtWidgets.QLabel(self.groupBox_2)
        self.label_6.setObjectName("label_6")
        self.gridLayout_9.addWidget(self.label_6, 9, 0, 1, 1)
        self.label_3 = QtWidgets.QLabel(self.groupBox_2)
        self.label_3.setObjectName("label_3")
        self.gridLayout_9.addWidget(self.label_3, 10, 0, 1, 1)
        self.number_of_steps_spinBox_4 = QtWidgets.QSpinBox(self.groupBox_2)
        self.number_of_steps_spinBox_4.setMinimum(1)
        self.number_of_steps_spinBox_4.setMaximum(1000)
        self.number_of_steps_spinBox_4.setProperty("value", 10)
        self.number_of_steps_spinBox_4.setObjectName(
            "number_of_steps_spinBox_4")
        self.gridLayout_9.addWidget(self.number_of_steps_spinBox_4, 15, 1, 1,
                                    1)
        self.label_34 = QtWidgets.QLabel(self.groupBox_2)
        self.label_34.setObjectName("label_34")
        self.gridLayout_9.addWidget(self.label_34, 1, 0, 1, 1)
        self.label_4 = QtWidgets.QLabel(self.groupBox_2)
        self.label_4.setObjectName("label_4")
        self.gridLayout_9.addWidget(self.label_4, 12, 0, 1, 1)
        self.label_7 = QtWidgets.QLabel(self.groupBox_2)
        self.label_7.setObjectName("label_7")
        self.gridLayout_9.addWidget(self.label_7, 13, 0, 1, 1)
        self.label_35 = QtWidgets.QLabel(self.groupBox_2)
        self.label_35.setObjectName("label_35")
        self.gridLayout_9.addWidget(self.label_35, 3, 0, 1, 1)
        self.step_size_spinBox = QtWidgets.QSpinBox(self.groupBox_2)
        self.step_size_spinBox.setMinimum(100)
        self.step_size_spinBox.setMaximum(50000)
        self.step_size_spinBox.setSingleStep(100)
        self.step_size_spinBox.setProperty("value", 1000)
        self.step_size_spinBox.setObjectName("step_size_spinBox")
        self.gridLayout_9.addWidget(self.step_size_spinBox, 14, 1, 1, 1)
        self.measure_1_comboBox_1 = QtWidgets.QComboBox(self.groupBox_2)
        self.measure_1_comboBox_1.setObjectName("measure_1_comboBox_1")
        self.measure_1_comboBox_1.addItem("")
        self.measure_1_comboBox_1.addItem("")
        self.measure_1_comboBox_1.addItem("")
        self.measure_1_comboBox_1.addItem("")
        self.measure_1_comboBox_1.addItem("")
        self.measure_1_comboBox_1.addItem("")
        self.measure_1_comboBox_1.addItem("")
        self.measure_1_comboBox_1.addItem("")
        self.measure_1_comboBox_1.addItem("")
        self.gridLayout_9.addWidget(self.measure_1_comboBox_1, 0, 1, 1, 1)
        self.label_9 = QtWidgets.QLabel(self.groupBox_2)
        self.label_9.setObjectName("label_9")
        self.gridLayout_9.addWidget(self.label_9, 14, 0, 1, 1)
        self.pga_comboBox = QtWidgets.QComboBox(self.groupBox_2)
        self.pga_comboBox.setObjectName("pga_comboBox")
        self.pga_comboBox.addItem("")
        self.pga_comboBox.addItem("")
        self.gridLayout_9.addWidget(self.pga_comboBox, 9, 1, 1, 1)
        self.measure_2_comboBox_1 = QtWidgets.QComboBox(self.groupBox_2)
        self.measure_2_comboBox_1.setMaxVisibleItems(10)
        self.measure_2_comboBox_1.setObjectName("measure_2_comboBox_1")
        self.measure_2_comboBox_1.addItem("")
        self.measure_2_comboBox_1.addItem("")
        self.measure_2_comboBox_1.addItem("")
        self.measure_2_comboBox_1.addItem("")
        self.measure_2_comboBox_1.addItem("")
        self.measure_2_comboBox_1.addItem("")
        self.measure_2_comboBox_1.addItem("")
        self.measure_2_comboBox_1.addItem("")
        self.measure_2_comboBox_1.addItem("")
        self.gridLayout_9.addWidget(self.measure_2_comboBox_1, 1, 1, 1, 1)
        self.output_voltage_comboBox = QtWidgets.QComboBox(self.groupBox_2)
        self.output_voltage_comboBox.setObjectName("output_voltage_comboBox")
        self.output_voltage_comboBox.addItem("")
        self.output_voltage_comboBox.addItem("")
        self.output_voltage_comboBox.addItem("")
        self.output_voltage_comboBox.addItem("")
        self.gridLayout_9.addWidget(self.output_voltage_comboBox, 11, 1, 1, 1)
        self.label_10 = QtWidgets.QLabel(self.groupBox_2)
        self.label_10.setObjectName("label_10")
        self.gridLayout_9.addWidget(self.label_10, 15, 0, 1, 1)
        self.label_11 = QtWidgets.QLabel(self.groupBox_2)
        self.label_11.setObjectName("label_11")
        self.gridLayout_9.addWidget(self.label_11, 16, 0, 1, 1)
        self.measure_3_comboBox_1 = QtWidgets.QComboBox(self.groupBox_2)
        self.measure_3_comboBox_1.setObjectName("measure_3_comboBox_1")
        self.measure_3_comboBox_1.addItem("")
        self.measure_3_comboBox_1.addItem("")
        self.measure_3_comboBox_1.addItem("")
        self.measure_3_comboBox_1.addItem("")
        self.measure_3_comboBox_1.addItem("")
        self.measure_3_comboBox_1.addItem("")
        self.measure_3_comboBox_1.addItem("")
        self.measure_3_comboBox_1.addItem("")
        self.measure_3_comboBox_1.addItem("")
        self.gridLayout_9.addWidget(self.measure_3_comboBox_1, 3, 1, 1, 1)
        self.label_33 = QtWidgets.QLabel(self.groupBox_2)
        self.label_33.setObjectName("label_33")
        self.gridLayout_9.addWidget(self.label_33, 0, 0, 1, 1)
        self.label_32 = QtWidgets.QLabel(self.groupBox_2)
        self.label_32.setObjectName("label_32")
        self.gridLayout_9.addWidget(self.label_32, 11, 0, 1, 1)
        self.cal_resistor_doubleSpinBox = QtWidgets.QDoubleSpinBox(
            self.groupBox_2)
        self.cal_resistor_doubleSpinBox.setEnabled(True)
        self.cal_resistor_doubleSpinBox.setMinimum(1.0)
        self.cal_resistor_doubleSpinBox.setMaximum(1000000.0)
        self.cal_resistor_doubleSpinBox.setProperty("value", 300.0)
        self.cal_resistor_doubleSpinBox.setObjectName(
            "cal_resistor_doubleSpinBox")
        self.gridLayout_9.addWidget(self.cal_resistor_doubleSpinBox, 4, 1, 1,
                                    1)
        self.label_13 = QtWidgets.QLabel(self.groupBox_2)
        self.label_13.setObjectName("label_13")
        self.gridLayout_9.addWidget(self.label_13, 4, 0, 1, 1)
        self.label_36 = QtWidgets.QLabel(self.groupBox_2)
        self.label_36.setObjectName("label_36")
        self.gridLayout_9.addWidget(self.label_36, 6, 0, 1, 1)
        self.cal_resistor_doubleSpinBox_2 = QtWidgets.QDoubleSpinBox(
            self.groupBox_2)
        self.cal_resistor_doubleSpinBox_2.setEnabled(True)
        self.cal_resistor_doubleSpinBox_2.setMinimum(1.0)
        self.cal_resistor_doubleSpinBox_2.setMaximum(1000000.0)
        self.cal_resistor_doubleSpinBox_2.setProperty("value", 300.0)
        self.cal_resistor_doubleSpinBox_2.setObjectName(
            "cal_resistor_doubleSpinBox_2")
        self.gridLayout_9.addWidget(self.cal_resistor_doubleSpinBox_2, 6, 1, 1,
                                    1)
        self.label = QtWidgets.QLabel(self.groupBox_2)
        self.label.setObjectName("label")
        self.gridLayout_9.addWidget(self.label, 7, 0, 1, 1)
        self.sweep_count_spinBox = QtWidgets.QSpinBox(self.groupBox_2)
        self.sweep_count_spinBox.setProperty("value", 1)
        self.sweep_count_spinBox.setObjectName("sweep_count_spinBox")
        self.gridLayout_9.addWidget(self.sweep_count_spinBox, 7, 1, 1, 1)
        self.verticalLayout_11.addLayout(self.gridLayout_9)
        self.verticalLayout_17.addWidget(self.groupBox_2)
        spacerItem = QtWidgets.QSpacerItem(20, 40,
                                           QtWidgets.QSizePolicy.Minimum,
                                           QtWidgets.QSizePolicy.Expanding)
        self.verticalLayout_17.addItem(spacerItem)
        self.groupBox_4 = QtWidgets.QGroupBox(self.centralwidget)
        self.groupBox_4.setMaximumSize(QtCore.QSize(250, 16777215))
        self.groupBox_4.setObjectName("groupBox_4")
        self.verticalLayout_15 = QtWidgets.QVBoxLayout(self.groupBox_4)
        self.verticalLayout_15.setObjectName("verticalLayout_15")
        self.verticalLayout_14 = QtWidgets.QVBoxLayout()
        self.verticalLayout_14.setObjectName("verticalLayout_14")
        self.sweep_output = QtWidgets.QLabel(self.groupBox_4)
        self.sweep_output.setObjectName("sweep_output")
        self.verticalLayout_14.addWidget(self.sweep_output)
        self.progressBar = QtWidgets.QProgressBar(self.groupBox_4)
        self.progressBar.setProperty("value", 24)
        self.progressBar.setObjectName("progressBar")
        self.verticalLayout_14.addWidget(self.progressBar)
        self.verticalLayout_15.addLayout(self.verticalLayout_14)
        self.verticalLayout_17.addWidget(self.groupBox_4)
        self.groupBox_6 = QtWidgets.QGroupBox(self.centralwidget)
        self.groupBox_6.setEnabled(True)
        self.groupBox_6.setMaximumSize(QtCore.QSize(250, 16777215))
        self.groupBox_6.setObjectName("groupBox_6")
        self.gridLayout_23 = QtWidgets.QGridLayout(self.groupBox_6)
        self.gridLayout_23.setObjectName("gridLayout_23")
        self.gridLayout_21 = QtWidgets.QGridLayout()
        self.gridLayout_21.setObjectName("gridLayout_21")
        self.stop_QPushButton = QtWidgets.QPushButton(self.groupBox_6)
        self.stop_QPushButton.setEnabled(False)
        self.stop_QPushButton.setMaximumSize(QtCore.QSize(1000, 1000))
        font = QtGui.QFont()
        font.setBold(True)
        font.setWeight(75)
        self.stop_QPushButton.setFont(font)
        self.stop_QPushButton.setStyleSheet("QPushButton{color: red}")
        self.stop_QPushButton.setObjectName("stop_QPushButton")
        self.gridLayout_21.addWidget(self.stop_QPushButton, 0, 1, 1, 1)
        self.start_QPushButton = QtWidgets.QPushButton(self.groupBox_6)
        self.start_QPushButton.setEnabled(True)
        self.start_QPushButton.setMaximumSize(QtCore.QSize(1000, 16777215))
        font = QtGui.QFont()
        font.setBold(True)
        font.setWeight(75)
        self.start_QPushButton.setFont(font)
        self.start_QPushButton.setStyleSheet(
            "QPushButton { color: rgb(31, 206, 39)}")
        self.start_QPushButton.setObjectName("start_QPushButton")
        self.gridLayout_21.addWidget(self.start_QPushButton, 0, 0, 1, 1)
        self.gridLayout_23.addLayout(self.gridLayout_21, 0, 0, 1, 1)
        self.verticalLayout_17.addWidget(self.groupBox_6)
        self.horizontalLayout_8.addLayout(self.verticalLayout_17)
        self.verticalLayout_3 = QtWidgets.QVBoxLayout()
        self.verticalLayout_3.setObjectName("verticalLayout_3")
        self.tabWidget = QtWidgets.QTabWidget(self.centralwidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.tabWidget.sizePolicy().hasHeightForWidth())
        self.tabWidget.setSizePolicy(sizePolicy)
        self.tabWidget.setMinimumSize(QtCore.QSize(0, 600))
        self.tabWidget.setObjectName("tabWidget")
        self.tab = QtWidgets.QWidget()
        self.tab.setObjectName("tab")
        self.gridLayout_6 = QtWidgets.QGridLayout(self.tab)
        self.gridLayout_6.setObjectName("gridLayout_6")
        self.gridLayout_4 = QtWidgets.QGridLayout()
        self.gridLayout_4.setObjectName("gridLayout_4")
        self.plot1_graphicsView = PlotWidget(self.tab)
        self.plot1_graphicsView.setMinimumSize(QtCore.QSize(250, 250))
        self.plot1_graphicsView.setMaximumSize(QtCore.QSize(
            16777215, 16777215))
        self.plot1_graphicsView.setToolTipDuration(-2)
        self.plot1_graphicsView.setObjectName("plot1_graphicsView")
        self.gridLayout_4.addWidget(self.plot1_graphicsView, 0, 0, 1, 1)
        self.temp_graphicsView = PlotWidget(self.tab)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.temp_graphicsView.sizePolicy().hasHeightForWidth())
        self.temp_graphicsView.setSizePolicy(sizePolicy)
        self.temp_graphicsView.setMinimumSize(QtCore.QSize(0, 0))
        self.temp_graphicsView.setMaximumSize(QtCore.QSize(16777215, 90))
        self.temp_graphicsView.setToolTip("")
        self.temp_graphicsView.setObjectName("temp_graphicsView")
        self.gridLayout_4.addWidget(self.temp_graphicsView, 1, 0, 1, 1)
        self.gridLayout_6.addLayout(self.gridLayout_4, 0, 0, 1, 1)
        self.tabWidget.addTab(self.tab, "")
        self.tab_4 = QtWidgets.QWidget()
        self.tab_4.setObjectName("tab_4")
        self.gridLayout_7 = QtWidgets.QGridLayout(self.tab_4)
        self.gridLayout_7.setObjectName("gridLayout_7")
        self.gridLayout_5 = QtWidgets.QGridLayout()
        self.gridLayout_5.setObjectName("gridLayout_5")
        self.raw_plot = PlotWidget(self.tab_4)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.raw_plot.sizePolicy().hasHeightForWidth())
        self.raw_plot.setSizePolicy(sizePolicy)
        self.raw_plot.setMinimumSize(QtCore.QSize(0, 0))
        self.raw_plot.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.raw_plot.setObjectName("raw_plot")
        self.gridLayout_5.addWidget(self.raw_plot, 0, 0, 1, 1)
        self.gridLayout_7.addLayout(self.gridLayout_5, 1, 0, 1, 1)
        self.tabWidget.addTab(self.tab_4, "")
        self.tab_2 = QtWidgets.QWidget()
        self.tab_2.setObjectName("tab_2")
        self.gridLayout_10 = QtWidgets.QGridLayout(self.tab_2)
        self.gridLayout_10.setObjectName("gridLayout_10")
        self.gridLayout_8 = QtWidgets.QGridLayout()
        self.gridLayout_8.setObjectName("gridLayout_8")
        self.plot2_graphicsView = PlotWidget(self.tab_2)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.plot2_graphicsView.sizePolicy().hasHeightForWidth())
        self.plot2_graphicsView.setSizePolicy(sizePolicy)
        self.plot2_graphicsView.setMinimumSize(QtCore.QSize(0, 0))
        self.plot2_graphicsView.setMaximumSize(QtCore.QSize(
            16777215, 16777215))
        self.plot2_graphicsView.setObjectName("plot2_graphicsView")
        self.gridLayout_8.addWidget(self.plot2_graphicsView, 1, 0, 1, 1)
        self.gridLayout_10.addLayout(self.gridLayout_8, 1, 0, 1, 1)
        self.tabWidget.addTab(self.tab_2, "")
        self.tab_5 = QtWidgets.QWidget()
        self.tab_5.setObjectName("tab_5")
        self.gridLayout_11 = QtWidgets.QGridLayout(self.tab_5)
        self.gridLayout_11.setObjectName("gridLayout_11")
        self.gridLayout_3 = QtWidgets.QGridLayout()
        self.gridLayout_3.setObjectName("gridLayout_3")
        self.raw_data_textBrowser = QtWidgets.QTextBrowser(self.tab_5)
        self.raw_data_textBrowser.setObjectName("raw_data_textBrowser")
        self.gridLayout_3.addWidget(self.raw_data_textBrowser, 0, 0, 1, 1)
        self.gridLayout_11.addLayout(self.gridLayout_3, 0, 0, 1, 1)
        self.tabWidget.addTab(self.tab_5, "")
        self.tab_6 = QtWidgets.QWidget()
        self.tab_6.setObjectName("tab_6")
        self.gridLayout_14 = QtWidgets.QGridLayout(self.tab_6)
        self.gridLayout_14.setObjectName("gridLayout_14")
        self.gridLayout_13 = QtWidgets.QGridLayout()
        self.gridLayout_13.setObjectName("gridLayout_13")
        self.calibrated_data_textBrowser = QtWidgets.QTextBrowser(self.tab_6)
        self.calibrated_data_textBrowser.setObjectName(
            "calibrated_data_textBrowser")
        self.gridLayout_13.addWidget(self.calibrated_data_textBrowser, 0, 0, 1,
                                     1)
        self.gridLayout_14.addLayout(self.gridLayout_13, 0, 0, 1, 1)
        self.tabWidget.addTab(self.tab_6, "")
        self.tab_3 = QtWidgets.QWidget()
        self.tab_3.setObjectName("tab_3")
        self.gridLayout_27 = QtWidgets.QGridLayout(self.tab_3)
        self.gridLayout_27.setObjectName("gridLayout_27")
        self.gridLayout_26 = QtWidgets.QGridLayout()
        self.gridLayout_26.setObjectName("gridLayout_26")
        self.input_plot = PlotWidget(self.tab_3)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.input_plot.sizePolicy().hasHeightForWidth())
        self.input_plot.setSizePolicy(sizePolicy)
        self.input_plot.setMinimumSize(QtCore.QSize(0, 90))
        self.input_plot.setMaximumSize(QtCore.QSize(16777215, 90))
        self.input_plot.setObjectName("input_plot")
        self.gridLayout_26.addWidget(self.input_plot, 1, 0, 1, 1)
        self.gridLayout_27.addLayout(self.gridLayout_26, 0, 0, 1, 1)
        self.tabWidget.addTab(self.tab_3, "")
        self.verticalLayout_3.addWidget(self.tabWidget)
        self.verticalLayout_6 = QtWidgets.QVBoxLayout()
        self.verticalLayout_6.setObjectName("verticalLayout_6")
        self.label_8 = QtWidgets.QLabel(self.centralwidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.label_8.sizePolicy().hasHeightForWidth())
        self.label_8.setSizePolicy(sizePolicy)
        self.label_8.setMinimumSize(QtCore.QSize(0, 0))
        self.label_8.setMaximumSize(QtCore.QSize(16777215, 17))
        self.label_8.setSizeIncrement(QtCore.QSize(0, 0))
        self.label_8.setBaseSize(QtCore.QSize(0, 0))
        font = QtGui.QFont()
        font.setBold(False)
        font.setItalic(True)
        font.setUnderline(False)
        font.setWeight(50)
        self.label_8.setFont(font)
        self.label_8.setObjectName("label_8")
        self.verticalLayout_6.addWidget(self.label_8)
        self.bottom_textBrowser_2 = QtWidgets.QTextBrowser(self.centralwidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.bottom_textBrowser_2.sizePolicy().hasHeightForWidth())
        self.bottom_textBrowser_2.setSizePolicy(sizePolicy)
        self.bottom_textBrowser_2.setMinimumSize(QtCore.QSize(0, 45))
        self.bottom_textBrowser_2.setMaximumSize(QtCore.QSize(16777215, 75))
        self.bottom_textBrowser_2.setObjectName("bottom_textBrowser_2")
        self.verticalLayout_6.addWidget(self.bottom_textBrowser_2)
        self.verticalLayout_3.addLayout(self.verticalLayout_6)
        self.horizontalLayout_8.addLayout(self.verticalLayout_3)
        self.verticalLayout_9 = QtWidgets.QVBoxLayout()
        self.verticalLayout_9.setObjectName("verticalLayout_9")
        self.groupBox_3 = QtWidgets.QGroupBox(self.centralwidget)
        self.groupBox_3.setMinimumSize(QtCore.QSize(260, 0))
        self.groupBox_3.setMaximumSize(QtCore.QSize(260, 16777215))
        self.groupBox_3.setObjectName("groupBox_3")
        self.verticalLayout_13 = QtWidgets.QVBoxLayout(self.groupBox_3)
        self.verticalLayout_13.setObjectName("verticalLayout_13")
        self.verticalLayout_12 = QtWidgets.QVBoxLayout()
        self.verticalLayout_12.setObjectName("verticalLayout_12")
        self.gridLayout_22 = QtWidgets.QGridLayout()
        self.gridLayout_22.setObjectName("gridLayout_22")
        self.label_12 = QtWidgets.QLabel(self.groupBox_3)
        self.label_12.setMaximumSize(QtCore.QSize(317, 16777215))
        self.label_12.setObjectName("label_12")
        self.gridLayout_22.addWidget(self.label_12, 0, 0, 1, 1)
        self.verticalLayout_12.addLayout(self.gridLayout_22)
        self.subject_id_lineEdit = QtWidgets.QLineEdit(self.groupBox_3)
        self.subject_id_lineEdit.setMaximumSize(QtCore.QSize(317, 16777215))
        self.subject_id_lineEdit.setInputMask("")
        self.subject_id_lineEdit.setObjectName("subject_id_lineEdit")
        self.verticalLayout_12.addWidget(self.subject_id_lineEdit)
        self.save_data_button = QtWidgets.QPushButton(self.groupBox_3)
        self.save_data_button.setMaximumSize(QtCore.QSize(317, 16777215))
        font = QtGui.QFont()
        font.setPointSize(10)
        font.setBold(True)
        font.setWeight(75)
        self.save_data_button.setFont(font)
        self.save_data_button.setStyleSheet(
            "QPushButton { color: rgb(31, 206, 39)}")
        self.save_data_button.setObjectName("save_data_button")
        self.verticalLayout_12.addWidget(self.save_data_button)
        self.label_5 = QtWidgets.QLabel(self.groupBox_3)
        self.label_5.setObjectName("label_5")
        self.verticalLayout_12.addWidget(self.label_5)
        self.lineEdit_data_file_name = QtWidgets.QLineEdit(self.groupBox_3)
        self.lineEdit_data_file_name.setObjectName("lineEdit_data_file_name")
        self.verticalLayout_12.addWidget(self.lineEdit_data_file_name)
        self.cole_model_button = QtWidgets.QPushButton(self.groupBox_3)
        font = QtGui.QFont()
        font.setBold(True)
        font.setWeight(75)
        self.cole_model_button.setFont(font)
        self.cole_model_button.setObjectName("cole_model_button")
        self.verticalLayout_12.addWidget(self.cole_model_button)
        self.verticalLayout_13.addLayout(self.verticalLayout_12)
        self.verticalLayout_9.addWidget(self.groupBox_3)
        self.groupBox_5 = QtWidgets.QGroupBox(self.centralwidget)
        self.groupBox_5.setMinimumSize(QtCore.QSize(260, 0))
        self.groupBox_5.setMaximumSize(QtCore.QSize(260, 16777215))
        self.groupBox_5.setObjectName("groupBox_5")
        self.verticalLayout_8 = QtWidgets.QVBoxLayout(self.groupBox_5)
        self.verticalLayout_8.setObjectName("verticalLayout_8")
        self.verticalLayout_7 = QtWidgets.QVBoxLayout()
        self.verticalLayout_7.setObjectName("verticalLayout_7")
        self.command_line = QtWidgets.QLineEdit(self.groupBox_5)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.command_line.sizePolicy().hasHeightForWidth())
        self.command_line.setSizePolicy(sizePolicy)
        self.command_line.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.command_line.setObjectName("command_line")
        self.verticalLayout_7.addWidget(self.command_line)
        self.bottom_textBrowser = QtWidgets.QTextBrowser(self.groupBox_5)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.bottom_textBrowser.sizePolicy().hasHeightForWidth())
        self.bottom_textBrowser.setSizePolicy(sizePolicy)
        self.bottom_textBrowser.setMinimumSize(QtCore.QSize(0, 426))
        self.bottom_textBrowser.setMaximumSize(QtCore.QSize(
            16777215, 16777215))
        self.bottom_textBrowser.setObjectName("bottom_textBrowser")
        self.verticalLayout_7.addWidget(self.bottom_textBrowser)
        self.verticalLayout_8.addLayout(self.verticalLayout_7)
        self.verticalLayout_9.addWidget(self.groupBox_5)
        self.groupBox_7 = QtWidgets.QGroupBox(self.centralwidget)
        self.groupBox_7.setObjectName("groupBox_7")
        self.gridLayout_25 = QtWidgets.QGridLayout(self.groupBox_7)
        self.gridLayout_25.setObjectName("gridLayout_25")
        self.gridLayout_24 = QtWidgets.QGridLayout()
        self.gridLayout_24.setObjectName("gridLayout_24")
        self.clear_all_data = QtWidgets.QPushButton(self.groupBox_7)
        self.clear_all_data.setMaximumSize(QtCore.QSize(370, 16777215))
        font = QtGui.QFont()
        font.setPointSize(10)
        font.setBold(True)
        font.setWeight(75)
        self.clear_all_data.setFont(font)
        self.clear_all_data.setStyleSheet("QPushButton{color: red}")
        self.clear_all_data.setObjectName("clear_all_data")
        self.gridLayout_24.addWidget(self.clear_all_data, 0, 0, 1, 1)
        self.gridLayout_25.addLayout(self.gridLayout_24, 0, 0, 1, 1)
        self.verticalLayout_9.addWidget(self.groupBox_7)
        self.horizontalLayout_8.addLayout(self.verticalLayout_9)
        self.horizontalLayout.addLayout(self.horizontalLayout_8)
        mainWindow.setCentralWidget(self.centralwidget)

        self.retranslateUi(mainWindow)
        self.fbr_comboBox.setCurrentIndex(0)
        self.gain_resistor_comboBox.setCurrentIndex(0)
        self.measure_1_comboBox_1.setCurrentIndex(0)
        self.measure_2_comboBox_1.setCurrentIndex(0)
        self.measure_3_comboBox_1.setCurrentIndex(0)
        self.tabWidget.setCurrentIndex(3)
        self.start_QPushButton.objectNameChanged['QString'].connect(
            self.bottom_textBrowser.insertPlainText)
        self.command_line.returnPressed.connect(self.bottom_textBrowser.update)
        QtCore.QMetaObject.connectSlotsByName(mainWindow)

    def retranslateUi(self, mainWindow):
        _translate = QtCore.QCoreApplication.translate
        mainWindow.setWindowTitle(_translate("mainWindow", "ispectro"))
        self.centralwidget.setStatusTip(
            _translate("mainWindow", "Hover Over Things to See Info Here"))
        self.groupBox.setTitle(_translate("mainWindow", "Port Settings"))
        self.serial_port_QLineEdit.setText(
            _translate("mainWindow", "/dev/ttyACM0"))
        self.label_2.setText(_translate("mainWindow", "Port:"))
        self.connect_pushButton.setText(_translate("mainWindow", "connect"))
        self.disconnect_pushButton.setText(
            _translate("mainWindow", "disconnect"))
        self.groupBox_2.setTitle(_translate("mainWindow", "Device Settings"))
        self.start_freq_spinBox.setSuffix(_translate("mainWindow", " Hz"))
        self.settling_time_spinBox.setSuffix(_translate("mainWindow", " ms"))
        self.fbr_comboBox.setItemText(0, _translate("mainWindow", "OFF"))
        self.fbr_comboBox.setItemText(1, _translate("mainWindow", "R1 20k"))
        self.fbr_comboBox.setItemText(2, _translate("mainWindow", "R4 200R"))
        self.fbr_comboBox.setItemText(3, _translate("mainWindow", "R6 300R"))
        self.fbr_comboBox.setItemText(4, _translate("mainWindow", "R7 430R"))
        self.fbr_comboBox.setItemText(5, _translate("mainWindow", "R11 510R"))
        self.fbr_comboBox.setItemText(6, _translate("mainWindow", "R15 620R"))
        self.fbr_comboBox.setItemText(7, _translate("mainWindow", "R17 700R"))
        self.fbr_comboBox.setItemText(8, _translate("mainWindow", "R19 1k"))
        self.gain_resistor_comboBox.setCurrentText(
            _translate("mainWindow", "OFF"))
        self.gain_resistor_comboBox.setItemText(
            0, _translate("mainWindow", "OFF"))
        self.gain_resistor_comboBox.setItemText(
            1, _translate("mainWindow", "R53 20R"))
        self.gain_resistor_comboBox.setItemText(
            2, _translate("mainWindow", "R54 50R"))
        self.gain_resistor_comboBox.setItemText(
            3, _translate("mainWindow", "R55 100R"))
        self.gain_resistor_comboBox.setItemText(
            4, _translate("mainWindow", "R56 200R"))
        self.gain_resistor_comboBox.setItemText(
            5, _translate("mainWindow", "R44 510R"))
        self.gain_resistor_comboBox.setItemText(
            6, _translate("mainWindow", "R46 910R"))
        self.gain_resistor_comboBox.setItemText(
            7, _translate("mainWindow", "R50 1k"))
        self.gain_resistor_comboBox.setItemText(
            8, _translate("mainWindow", "R52 10k"))
        self.label_6.setText(_translate("mainWindow", "PGA:"))
        self.label_3.setText(_translate("mainWindow", "Gain Resistor:"))
        self.label_34.setText(_translate("mainWindow", "Meas. 2 Cal1:"))
        self.label_4.setText(_translate("mainWindow", "FBR:"))
        self.label_7.setText(_translate("mainWindow", "Start Freq:"))
        self.label_35.setText(_translate("mainWindow", "Meas. 3 Cal2:"))
        self.step_size_spinBox.setSuffix(_translate("mainWindow", " Hz"))
        self.measure_1_comboBox_1.setItemText(
            0, _translate("mainWindow", "LEADS"))
        self.measure_1_comboBox_1.setItemText(
            1, _translate("mainWindow", "R67 100R"))
        self.measure_1_comboBox_1.setItemText(
            2, _translate("mainWindow", "R69 200R"))
        self.measure_1_comboBox_1.setItemText(
            3, _translate("mainWindow", "R71 300R"))
        self.measure_1_comboBox_1.setItemText(
            4, _translate("mainWindow", "R73 1k"))
        self.measure_1_comboBox_1.setItemText(
            5, _translate("mainWindow", "R65 62R"))
        self.measure_1_comboBox_1.setItemText(
            6, _translate("mainWindow", "R74/R72/C81 150R/75R/10nF"))
        self.measure_1_comboBox_1.setItemText(
            7, _translate("mainWindow", "R70/R68/C79 150R/75R/15nF"))
        self.measure_1_comboBox_1.setItemText(
            8, _translate("mainWindow", "R66/R64/C75 1k/560R/2.2nF"))
        self.label_9.setText(_translate("mainWindow", "Step Size:"))
        self.pga_comboBox.setItemText(0, _translate("mainWindow", "1x"))
        self.pga_comboBox.setItemText(1, _translate("mainWindow", "5x"))
        self.measure_2_comboBox_1.setItemText(
            0, _translate("mainWindow", "LEADS"))
        self.measure_2_comboBox_1.setItemText(
            1, _translate("mainWindow", "R67 100R"))
        self.measure_2_comboBox_1.setItemText(
            2, _translate("mainWindow", "R69 200R"))
        self.measure_2_comboBox_1.setItemText(
            3, _translate("mainWindow", "R71 300R"))
        self.measure_2_comboBox_1.setItemText(
            4, _translate("mainWindow", "R73 1k"))
        self.measure_2_comboBox_1.setItemText(
            5, _translate("mainWindow", "R65 62R"))
        self.measure_2_comboBox_1.setItemText(
            6, _translate("mainWindow", "R74/R72/C81 150R/75R/10nF"))
        self.measure_2_comboBox_1.setItemText(
            7, _translate("mainWindow", "R70/R68/C79 150R/75R/15nF"))
        self.measure_2_comboBox_1.setItemText(
            8, _translate("mainWindow", "R66/R64/C75 1k/560R/2.2nF"))
        self.output_voltage_comboBox.setItemText(
            0, _translate("mainWindow", "2.0 V p-p"))
        self.output_voltage_comboBox.setItemText(
            1, _translate("mainWindow", "200 mV p-p"))
        self.output_voltage_comboBox.setItemText(
            2, _translate("mainWindow", "400 mV p-p"))
        self.output_voltage_comboBox.setItemText(
            3, _translate("mainWindow", "1.0 V p-p"))
        self.label_10.setText(_translate("mainWindow", "Number of Steps:"))
        self.label_11.setText(_translate("mainWindow", "Settling Time:"))
        self.measure_3_comboBox_1.setItemText(
            0, _translate("mainWindow", "LEADS"))
        self.measure_3_comboBox_1.setItemText(
            1, _translate("mainWindow", "R67 100R"))
        self.measure_3_comboBox_1.setItemText(
            2, _translate("mainWindow", "R69 200R"))
        self.measure_3_comboBox_1.setItemText(
            3, _translate("mainWindow", "R71 300R"))
        self.measure_3_comboBox_1.setItemText(
            4, _translate("mainWindow", "R73 1k"))
        self.measure_3_comboBox_1.setItemText(
            5, _translate("mainWindow", "R65 62R"))
        self.measure_3_comboBox_1.setItemText(
            6, _translate("mainWindow", "R74/R72/C81 150R/75R/10nF"))
        self.measure_3_comboBox_1.setItemText(
            7, _translate("mainWindow", "R70/R68/C79 150R/75R/15nF"))
        self.measure_3_comboBox_1.setItemText(
            8, _translate("mainWindow", "R66/R64/C75 1k/560R/2.2nF"))
        self.label_33.setText(_translate("mainWindow", "Meas. 1 Plot:"))
        self.label_32.setText(_translate("mainWindow", "Output Voltage :"))
        self.cal_resistor_doubleSpinBox.setSuffix(
            _translate("mainWindow", " ohm"))
        self.label_13.setText(_translate("mainWindow", "Cal1 Resistor"))
        self.label_36.setText(_translate("mainWindow", "Cal2 Resistor"))
        self.cal_resistor_doubleSpinBox_2.setSuffix(
            _translate("mainWindow", " ohm"))
        self.label.setText(_translate("mainWindow", "Sweep Count:"))
        self.groupBox_4.setTitle(_translate("mainWindow", "Sweep Parameters"))
        self.sweep_output.setText(_translate("mainWindow", "TextLabel"))
        self.groupBox_6.setTitle(_translate("mainWindow", "Sweep Control"))
        self.stop_QPushButton.setText(_translate("mainWindow", "Stop"))
        self.start_QPushButton.setText(_translate("mainWindow", "Start"))
        self.temp_graphicsView.setStatusTip(
            _translate("mainWindow", "Internal Device Temperature"))
        self.tabWidget.setTabText(
            self.tabWidget.indexOf(self.tab),
            _translate("mainWindow", "Calibrated Output"))
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_4),
                                  _translate("mainWindow", "Magnitude"))
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_2),
                                  _translate("mainWindow", "Raw Output"))
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_5),
                                  _translate("mainWindow", "Raw Data"))
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_6),
                                  _translate("mainWindow", "Calibrated data"))
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_3),
                                  _translate("mainWindow", "Temperature"))
        self.label_8.setText(
            _translate(
                "mainWindow",
                "[Frequency, Real Leads, Imaginary Leads, Real Cal1, Imaginary Cal1, Real Cal2, Imaginary Cal2, Temp, Status]"
            ))
        self.groupBox_3.setTitle(_translate("mainWindow", "Data Managment"))
        self.label_12.setText(_translate("mainWindow", "File Path:"))
        self.subject_id_lineEdit.setText(_translate("mainWindow", "data/"))
        self.save_data_button.setText(_translate("mainWindow", "Save Data"))
        self.label_5.setText(_translate("mainWindow", "File for Cole Model:"))
        self.cole_model_button.setText(
            _translate("mainWindow", "Generate Cole Model"))
        self.groupBox_5.setTitle(_translate("mainWindow", "Device CLI"))
        self.command_line.setPlaceholderText(
            _translate("mainWindow", "Enter Command Here"))
        self.groupBox_7.setTitle(_translate("mainWindow", "Plot Control"))
        self.clear_all_data.setText(_translate("mainWindow", "Clear Plots"))
Пример #32
0
class Ui_MainWindow(object):
    def setupUi(self, MainWindow):
        MainWindow.setObjectName("MainWindow")
        MainWindow.resize(1366, 944)
        self.centralwidget = QtWidgets.QWidget(MainWindow)
        self.centralwidget.setObjectName("centralwidget")
        self.gridLayout = QtWidgets.QGridLayout(self.centralwidget)
        self.gridLayout.setObjectName("gridLayout")
        self.frame = QtWidgets.QFrame(self.centralwidget)
        self.frame.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.frame.setFrameShape(QtWidgets.QFrame.StyledPanel)
        self.frame.setFrameShadow(QtWidgets.QFrame.Raised)
        self.frame.setObjectName("frame")
        self.gridLayout_2 = QtWidgets.QGridLayout(self.frame)
        self.gridLayout_2.setObjectName("gridLayout_2")
        self.frame_2 = QtWidgets.QFrame(self.frame)
        self.frame_2.setFrameShape(QtWidgets.QFrame.StyledPanel)
        self.frame_2.setFrameShadow(QtWidgets.QFrame.Raised)
        self.frame_2.setObjectName("frame_2")
        self.gridLayout_3 = QtWidgets.QGridLayout(self.frame_2)
        self.gridLayout_3.setObjectName("gridLayout_3")
        self.sig1 = PlotWidget(self.frame_2)
        self.sig1.setMaximumSize(QtCore.QSize(633, 161))
        self.sig1.setObjectName("sig1")
        self.gridLayout_3.addWidget(self.sig1, 0, 0, 1, 1)
        self.fourier1 = PlotWidget(self.frame_2)
        self.fourier1.setMaximumSize(QtCore.QSize(633, 160))
        self.fourier1.setObjectName("fourier1")
        self.gridLayout_3.addWidget(self.fourier1, 1, 0, 1, 1)
        self.gridLayout_2.addWidget(self.frame_2, 0, 0, 1, 1)
        self.frame_7 = QtWidgets.QFrame(self.frame)
        self.frame_7.setMaximumSize(QtCore.QSize(1328, 50))
        self.frame_7.setFrameShape(QtWidgets.QFrame.StyledPanel)
        self.frame_7.setFrameShadow(QtWidgets.QFrame.Raised)
        self.frame_7.setObjectName("frame_7")
        self.gridLayout_8 = QtWidgets.QGridLayout(self.frame_7)
        self.gridLayout_8.setObjectName("gridLayout_8")
        spacerItem = QtWidgets.QSpacerItem(743, 20,
                                           QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Minimum)
        self.gridLayout_8.addItem(spacerItem, 0, 8, 1, 1)
        self.right = QtWidgets.QPushButton(self.frame_7)
        self.right.setStyleSheet("border-image: url(:right.png)")
        self.right.setText("")
        self.right.setObjectName("right")
        self.gridLayout_8.addWidget(self.right, 0, 5, 1, 1)
        self.pause2 = QtWidgets.QPushButton(self.frame_7)
        self.pause2.setStyleSheet("border-image: url(:stop.png)")
        self.pause2.setText("")
        self.pause2.setObjectName("pause2")
        self.gridLayout_8.addWidget(self.pause2, 0, 0, 1, 1)
        self.left = QtWidgets.QPushButton(self.frame_7)
        self.left.setStyleSheet("border-image: url(:left.png)")
        self.left.setText("")
        self.left.setObjectName("left")
        self.gridLayout_8.addWidget(self.left, 0, 4, 1, 1)
        self.up = QtWidgets.QPushButton(self.frame_7)
        self.up.setStyleSheet("border-image: url(:up.png)")
        self.up.setText("")
        self.up.setObjectName("up")
        self.gridLayout_8.addWidget(self.up, 0, 2, 1, 1)
        self.zoom_in = QtWidgets.QPushButton(self.frame_7)
        self.zoom_in.setStyleSheet("border-image: url(:plus.png)")
        self.zoom_in.setText("")
        self.zoom_in.setObjectName("zoom_in")
        self.gridLayout_8.addWidget(self.zoom_in, 0, 6, 1, 1)
        self.down = QtWidgets.QPushButton(self.frame_7)
        self.down.setStyleSheet("border-image: url(:down.png)")
        self.down.setText("")
        self.down.setObjectName("down")
        self.gridLayout_8.addWidget(self.down, 0, 3, 1, 1)
        self.zoom_out = QtWidgets.QPushButton(self.frame_7)
        self.zoom_out.setStyleSheet("border-image: url(:minus.png)")
        self.zoom_out.setText("")
        self.zoom_out.setObjectName("zoom_out")
        self.gridLayout_8.addWidget(self.zoom_out, 0, 7, 1, 1)
        self.play2 = QtWidgets.QPushButton(self.frame_7)
        self.play2.setStyleSheet("border-image: url(:play1.png)")
        self.play2.setText("")
        self.play2.setObjectName("play2")
        self.gridLayout_8.addWidget(self.play2, 0, 1, 1, 1)
        self.gridLayout_2.addWidget(self.frame_7, 3, 0, 1, 2)
        self.frame_4 = QtWidgets.QFrame(self.frame)
        self.frame_4.setMinimumSize(QtCore.QSize(1320, 120))
        self.frame_4.setMaximumSize(QtCore.QSize(1328, 120))
        self.frame_4.setFrameShape(QtWidgets.QFrame.StyledPanel)
        self.frame_4.setFrameShadow(QtWidgets.QFrame.Raised)
        self.frame_4.setObjectName("frame_4")
        self.gridLayout_5 = QtWidgets.QGridLayout(self.frame_4)
        self.gridLayout_5.setObjectName("gridLayout_5")
        self.s1 = QtWidgets.QSlider(self.frame_4)
        self.s1.setMaximum(5)
        self.s1.setProperty("value", 1)
        self.s1.setSliderPosition(1)
        self.s1.setOrientation(QtCore.Qt.Vertical)
        self.s1.setTickPosition(QtWidgets.QSlider.TicksBothSides)
        self.s1.setObjectName("s1")
        self.gridLayout_5.addWidget(self.s1, 0, 2, 2, 1)
        self.s2 = QtWidgets.QSlider(self.frame_4)
        self.s2.setMaximum(5)
        self.s2.setSliderPosition(1)
        self.s2.setOrientation(QtCore.Qt.Vertical)
        self.s2.setTickPosition(QtWidgets.QSlider.TicksBothSides)
        self.s2.setObjectName("s2")
        self.gridLayout_5.addWidget(self.s2, 0, 3, 2, 1)
        self.s3 = QtWidgets.QSlider(self.frame_4)
        self.s3.setMaximum(5)
        self.s3.setSliderPosition(1)
        self.s3.setOrientation(QtCore.Qt.Vertical)
        self.s3.setTickPosition(QtWidgets.QSlider.TicksBothSides)
        self.s3.setObjectName("s3")
        self.gridLayout_5.addWidget(self.s3, 0, 4, 2, 1)
        self.s4 = QtWidgets.QSlider(self.frame_4)
        self.s4.setMaximum(5)
        self.s4.setProperty("value", 1)
        self.s4.setSliderPosition(1)
        self.s4.setOrientation(QtCore.Qt.Vertical)
        self.s4.setTickPosition(QtWidgets.QSlider.TicksBothSides)
        self.s4.setObjectName("s4")
        self.gridLayout_5.addWidget(self.s4, 0, 5, 2, 1)
        self.s5 = QtWidgets.QSlider(self.frame_4)
        self.s5.setMaximum(5)
        self.s5.setSliderPosition(1)
        self.s5.setOrientation(QtCore.Qt.Vertical)
        self.s5.setTickPosition(QtWidgets.QSlider.TicksBothSides)
        self.s5.setObjectName("s5")
        self.gridLayout_5.addWidget(self.s5, 0, 6, 2, 1)
        self.s6 = QtWidgets.QSlider(self.frame_4)
        self.s6.setMaximum(5)
        self.s6.setSliderPosition(1)
        self.s6.setOrientation(QtCore.Qt.Vertical)
        self.s6.setTickPosition(QtWidgets.QSlider.TicksBothSides)
        self.s6.setObjectName("s6")
        self.gridLayout_5.addWidget(self.s6, 0, 7, 2, 1)
        self.s7 = QtWidgets.QSlider(self.frame_4)
        self.s7.setMaximum(5)
        self.s7.setSliderPosition(1)
        self.s7.setOrientation(QtCore.Qt.Vertical)
        self.s7.setTickPosition(QtWidgets.QSlider.TicksBothSides)
        self.s7.setObjectName("s7")
        self.gridLayout_5.addWidget(self.s7, 0, 8, 2, 1)
        self.s8 = QtWidgets.QSlider(self.frame_4)
        self.s8.setMaximum(5)
        self.s8.setSliderPosition(1)
        self.s8.setOrientation(QtCore.Qt.Vertical)
        self.s8.setTickPosition(QtWidgets.QSlider.TicksBothSides)
        self.s8.setObjectName("s8")
        self.gridLayout_5.addWidget(self.s8, 0, 9, 2, 1)
        self.s9 = QtWidgets.QSlider(self.frame_4)
        self.s9.setMaximum(5)
        self.s9.setProperty("value", 1)
        self.s9.setSliderPosition(1)
        self.s9.setOrientation(QtCore.Qt.Vertical)
        self.s9.setTickPosition(QtWidgets.QSlider.TicksBothSides)
        self.s9.setObjectName("s9")
        self.gridLayout_5.addWidget(self.s9, 0, 10, 2, 1)
        self.s10 = QtWidgets.QSlider(self.frame_4)
        self.s10.setMinimumSize(QtCore.QSize(0, 81))
        self.s10.setMaximum(5)
        self.s10.setSliderPosition(1)
        self.s10.setOrientation(QtCore.Qt.Vertical)
        self.s10.setTickPosition(QtWidgets.QSlider.TicksBothSides)
        self.s10.setObjectName("s10")
        self.gridLayout_5.addWidget(self.s10, 0, 11, 2, 1)
        self.color = QtWidgets.QComboBox(self.frame_4)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.color.sizePolicy().hasHeightForWidth())
        self.color.setSizePolicy(sizePolicy)
        self.color.setObjectName("color")
        self.color.addItem("")
        self.color.addItem("")
        self.color.addItem("")
        self.color.addItem("")
        self.color.addItem("")
        self.gridLayout_5.addWidget(self.color, 0, 12, 1, 1)
        self.spect1 = QtWidgets.QSlider(self.frame_4)
        self.spect1.setMinimumSize(QtCore.QSize(0, 75))
        self.spect1.setSliderPosition(50)
        self.spect1.setOrientation(QtCore.Qt.Vertical)
        self.spect1.setTickPosition(QtWidgets.QSlider.TicksBothSides)
        self.spect1.setObjectName("spect1")
        self.gridLayout_5.addWidget(self.spect1, 0, 13, 3, 1)
        self.spect2 = QtWidgets.QSlider(self.frame_4)
        self.spect2.setMinimumSize(QtCore.QSize(0, 75))
        self.spect2.setSliderPosition(50)
        self.spect2.setOrientation(QtCore.Qt.Vertical)
        self.spect2.setTickPosition(QtWidgets.QSlider.TicksBothSides)
        self.spect2.setObjectName("spect2")
        self.gridLayout_5.addWidget(self.spect2, 0, 14, 3, 1)
        self.pause1 = QtWidgets.QPushButton(self.frame_4)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.pause1.sizePolicy().hasHeightForWidth())
        self.pause1.setSizePolicy(sizePolicy)
        self.pause1.setStyleSheet("border-image: url(:stop.png)")
        self.pause1.setText("")
        self.pause1.setObjectName("pause1")
        self.gridLayout_5.addWidget(self.pause1, 1, 0, 1, 1)
        self.play1 = QtWidgets.QPushButton(self.frame_4)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.play1.sizePolicy().hasHeightForWidth())
        self.play1.setSizePolicy(sizePolicy)
        self.play1.setStyleSheet("border-image: url(:play1.png)")
        self.play1.setText("")
        self.play1.setObjectName("play1")
        self.gridLayout_5.addWidget(self.play1, 1, 1, 1, 1)
        self.checkBox = QtWidgets.QCheckBox(self.frame_4)
        self.checkBox.setMaximumSize(QtCore.QSize(120, 16777215))
        self.checkBox.setObjectName("checkBox")
        self.gridLayout_5.addWidget(self.checkBox, 1, 12, 1, 1)
        self.gain1 = QtWidgets.QLabel(self.frame_4)
        self.gain1.setObjectName("gain1")
        self.gridLayout_5.addWidget(self.gain1, 2, 2, 1, 1)
        self.gain2 = QtWidgets.QLabel(self.frame_4)
        self.gain2.setObjectName("gain2")
        self.gridLayout_5.addWidget(self.gain2, 2, 3, 1, 1)
        self.gain3 = QtWidgets.QLabel(self.frame_4)
        self.gain3.setObjectName("gain3")
        self.gridLayout_5.addWidget(self.gain3, 2, 4, 1, 1)
        self.gain4 = QtWidgets.QLabel(self.frame_4)
        self.gain4.setObjectName("gain4")
        self.gridLayout_5.addWidget(self.gain4, 2, 5, 1, 1)
        self.gain5 = QtWidgets.QLabel(self.frame_4)
        self.gain5.setObjectName("gain5")
        self.gridLayout_5.addWidget(self.gain5, 2, 6, 1, 1)
        self.gain6 = QtWidgets.QLabel(self.frame_4)
        self.gain6.setObjectName("gain6")
        self.gridLayout_5.addWidget(self.gain6, 2, 7, 1, 1)
        self.gain7 = QtWidgets.QLabel(self.frame_4)
        self.gain7.setObjectName("gain7")
        self.gridLayout_5.addWidget(self.gain7, 2, 8, 1, 1)
        self.gain8 = QtWidgets.QLabel(self.frame_4)
        self.gain8.setObjectName("gain8")
        self.gridLayout_5.addWidget(self.gain8, 2, 9, 1, 1)
        self.gain9 = QtWidgets.QLabel(self.frame_4)
        self.gain9.setObjectName("gain9")
        self.gridLayout_5.addWidget(self.gain9, 2, 10, 1, 1)
        self.gain10 = QtWidgets.QLabel(self.frame_4)
        self.gain10.setObjectName("gain10")
        self.gridLayout_5.addWidget(self.gain10, 2, 11, 1, 1)
        self.gridLayout_2.addWidget(self.frame_4, 1, 0, 1, 2)
        self.frame_5 = QtWidgets.QFrame(self.frame)
        self.frame_5.setFrameShape(QtWidgets.QFrame.StyledPanel)
        self.frame_5.setFrameShadow(QtWidgets.QFrame.Raised)
        self.frame_5.setObjectName("frame_5")
        self.gridLayout_4 = QtWidgets.QGridLayout(self.frame_5)
        self.gridLayout_4.setObjectName("gridLayout_4")
        self.frame_8 = QtWidgets.QFrame(self.frame_5)
        self.frame_8.setFrameShape(QtWidgets.QFrame.StyledPanel)
        self.frame_8.setFrameShadow(QtWidgets.QFrame.Raised)
        self.frame_8.setObjectName("frame_8")
        self.gridLayout_9 = QtWidgets.QGridLayout(self.frame_8)
        self.gridLayout_9.setObjectName("gridLayout_9")
        self.sig2 = PlotWidget(self.frame_8)
        self.sig2.setMaximumSize(QtCore.QSize(633, 161))
        self.sig2.setObjectName("sig2")
        self.gridLayout_9.addWidget(self.sig2, 0, 0, 1, 1)
        self.fourier2 = PlotWidget(self.frame_8)
        self.fourier2.setMaximumSize(QtCore.QSize(633, 160))
        self.fourier2.setObjectName("fourier2")
        self.gridLayout_9.addWidget(self.fourier2, 1, 0, 1, 1)
        self.gridLayout_4.addWidget(self.frame_8, 0, 0, 1, 1)
        self.gridLayout_2.addWidget(self.frame_5, 2, 0, 1, 1)
        self.frame_6 = QtWidgets.QFrame(self.frame)
        self.frame_6.setFrameShape(QtWidgets.QFrame.StyledPanel)
        self.frame_6.setFrameShadow(QtWidgets.QFrame.Raised)
        self.frame_6.setObjectName("frame_6")
        self.gridLayout_7 = QtWidgets.QGridLayout(self.frame_6)
        self.gridLayout_7.setObjectName("gridLayout_7")
        self.spectro2 = QtWidgets.QLabel(self.frame_6)
        self.spectro2.setMaximumSize(QtCore.QSize(632, 304))
        self.spectro2.setText("")
        self.spectro2.setPixmap(QtGui.QPixmap("black.png"))
        self.spectro2.setScaledContents(True)
        self.spectro2.setObjectName("spectro2")
        self.gridLayout_7.addWidget(self.spectro2, 0, 0, 1, 1)
        self.gridLayout_2.addWidget(self.frame_6, 2, 1, 1, 1)
        self.frame_3 = QtWidgets.QFrame(self.frame)
        self.frame_3.setFrameShape(QtWidgets.QFrame.StyledPanel)
        self.frame_3.setFrameShadow(QtWidgets.QFrame.Raised)
        self.frame_3.setObjectName("frame_3")
        self.gridLayout_6 = QtWidgets.QGridLayout(self.frame_3)
        self.gridLayout_6.setObjectName("gridLayout_6")
        self.spectro1 = QtWidgets.QLabel(self.frame_3)
        self.spectro1.setMaximumSize(QtCore.QSize(632, 304))
        self.spectro1.setText("")
        self.spectro1.setPixmap(QtGui.QPixmap("black.png"))
        self.spectro1.setScaledContents(True)
        self.spectro1.setObjectName("spectro1")
        self.gridLayout_6.addWidget(self.spectro1, 0, 0, 1, 1)
        self.gridLayout_2.addWidget(self.frame_3, 0, 1, 1, 1)
        self.gridLayout.addWidget(self.frame, 0, 0, 1, 1)
        MainWindow.setCentralWidget(self.centralwidget)
        self.menubar = QtWidgets.QMenuBar(MainWindow)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 1366, 21))
        self.menubar.setObjectName("menubar")
        self.menuFile = QtWidgets.QMenu(self.menubar)
        self.menuFile.setObjectName("menuFile")
        self.menuPrint_2 = QtWidgets.QMenu(self.menuFile)
        self.menuPrint_2.setObjectName("menuPrint_2")
        MainWindow.setMenuBar(self.menubar)
        self.statusbar = QtWidgets.QStatusBar(MainWindow)
        self.statusbar.setObjectName("statusbar")
        MainWindow.setStatusBar(self.statusbar)
        self.actionimport = QtWidgets.QAction(MainWindow)
        self.actionimport.setObjectName("actionimport")
        self.actionas_PDF = QtWidgets.QAction(MainWindow)
        self.actionas_PDF.setObjectName("actionas_PDF")
        self.actionNew = QtWidgets.QAction(MainWindow)
        self.actionNew.setShortcutContext(QtCore.Qt.WindowShortcut)
        self.actionNew.setObjectName("actionNew")
        self.actionImport = QtWidgets.QAction(MainWindow)
        self.actionImport.setObjectName("actionImport")
        self.actionas_PDF_2 = QtWidgets.QAction(MainWindow)
        self.actionas_PDF_2.setObjectName("actionas_PDF_2")
        self.menuPrint_2.addAction(self.actionas_PDF_2)
        self.menuFile.addAction(self.actionNew)
        self.menuFile.addAction(self.actionImport)
        self.menuFile.addAction(self.menuPrint_2.menuAction())
        self.menubar.addAction(self.menuFile.menuAction())

        self.retranslateUi(MainWindow)
        self.s1.valueChanged['int'].connect(self.gain1.setNum)
        self.s2.valueChanged['int'].connect(self.gain2.setNum)
        self.s3.valueChanged['int'].connect(self.gain3.setNum)
        self.s4.valueChanged['int'].connect(self.gain4.setNum)
        self.s5.valueChanged['int'].connect(self.gain5.setNum)
        self.s6.valueChanged['int'].connect(self.gain6.setNum)
        self.s7.valueChanged['int'].connect(self.gain7.setNum)
        self.s8.valueChanged['int'].connect(self.gain8.setNum)
        self.s9.valueChanged['int'].connect(self.gain9.setNum)
        self.s10.valueChanged['int'].connect(self.gain10.setNum)
        QtCore.QMetaObject.connectSlotsByName(MainWindow)

    def retranslateUi(self, MainWindow):
        _translate = QtCore.QCoreApplication.translate
        MainWindow.setWindowTitle(_translate("MainWindow", "MainWindow"))
        self.right.setShortcut(_translate("MainWindow", "Right"))
        self.pause2.setShortcut(_translate("MainWindow", "Ctrl+O"))
        self.left.setShortcut(_translate("MainWindow", "Left"))
        self.up.setShortcut(_translate("MainWindow", "Up"))
        self.zoom_in.setShortcut(_translate("MainWindow", "+"))
        self.down.setShortcut(_translate("MainWindow", "Down"))
        self.zoom_out.setShortcut(_translate("MainWindow", "-"))
        self.play2.setShortcut(_translate("MainWindow", "Ctrl+P"))
        self.color.setItemText(0, _translate("MainWindow", "Viridis"))
        self.color.setItemText(1, _translate("MainWindow", "Plasma"))
        self.color.setItemText(2, _translate("MainWindow", "Inferno"))
        self.color.setItemText(3, _translate("MainWindow", "Magma"))
        self.color.setItemText(4, _translate("MainWindow", "Cividis"))
        self.pause1.setShortcut(_translate("MainWindow", "O"))
        self.play1.setShortcut(_translate("MainWindow", "P"))
        self.checkBox.setText(_translate("MainWindow", "Hide Spectrogram"))
        self.gain1.setText(_translate("MainWindow", "1"))
        self.gain2.setText(_translate("MainWindow", "1"))
        self.gain3.setText(_translate("MainWindow", "1"))
        self.gain4.setText(_translate("MainWindow", "1"))
        self.gain5.setText(_translate("MainWindow", "1"))
        self.gain6.setText(_translate("MainWindow", "1"))
        self.gain7.setText(_translate("MainWindow", "1"))
        self.gain8.setText(_translate("MainWindow", "1"))
        self.gain9.setText(_translate("MainWindow", "1"))
        self.gain10.setText(_translate("MainWindow", "1"))
        self.menuFile.setTitle(_translate("MainWindow", "File"))
        self.menuPrint_2.setTitle(_translate("MainWindow", "Print"))
        self.actionimport.setText(_translate("MainWindow", "import"))
        self.actionimport.setShortcut(_translate("MainWindow", "Ctrl+I"))
        self.actionas_PDF.setText(_translate("MainWindow", "as PDF"))
        self.actionas_PDF.setShortcut(_translate("MainWindow", "Ctrl+P"))
        self.actionNew.setText(_translate("MainWindow", "New"))
        self.actionNew.setShortcut(_translate("MainWindow", "Ctrl+N"))
        self.actionImport.setText(_translate("MainWindow", "Import"))
        self.actionImport.setShortcut(_translate("MainWindow", "Ctrl+I"))
        self.actionas_PDF_2.setText(_translate("MainWindow", "as PDF"))
        self.actionas_PDF_2.setShortcut(_translate("MainWindow", "Ctrl+D"))
        self.checkBox.stateChanged.connect(self.hide)
        self.actionNew.triggered.connect(self.newWindow)

    def newWindow(self):
        self.MainWindow = QtWidgets.QMainWindow()
        self.ui = Ui_MainWindow()
        self.ui.setupUi(self.MainWindow)
        self.MainWindow.show()

    def hide(self, state):

        if state == QtCore.Qt.Checked:
            self.spectro1.hide()
            self.spectro2.hide()
        else:
            self.spectro1.show()
            self.spectro2.show()
Пример #33
0
class Ui_MainWindow(object):
    def setupUi(self, MainWindow):
        MainWindow.setObjectName("MainWindow")
        MainWindow.resize(1602, 731)
        self.centralwidget = QtWidgets.QWidget(MainWindow)
        self.centralwidget.setObjectName("centralwidget")
        self.gridLayout = QtWidgets.QGridLayout(self.centralwidget)
        self.gridLayout.setObjectName("gridLayout")
        self.image = Label(self.centralwidget)
        #self.image.setMinimumSize(QtCore.QSize(512, 512))
        self.image.setMaximumSize(QtCore.QSize(512, 512))
        self.image.setText("")
        self.image.setObjectName("image")
        self.gridLayout.addWidget(self.image, 0, 0, 1, 1)
        self.ImageChange = QtWidgets.QComboBox(self.centralwidget)
        self.ImageChange.setMaximumSize(QtCore.QSize(120, 16777215))
        self.ImageChange.setObjectName("ImageChange")
        self.ImageChange.addItem("")
        self.ImageChange.addItem("")
        self.ImageChange.addItem("")
        self.gridLayout.addWidget(self.ImageChange, 2, 0, 1, 1)
        self.comboBox = QtWidgets.QComboBox(self.centralwidget)
        self.comboBox.setMaximumSize(QtCore.QSize(120, 16777215))
        self.comboBox.setObjectName("comboBox")
        self.comboBox.addItem("")
        self.comboBox.addItem("")
        self.gridLayout.addWidget(self.comboBox, 3, 0, 1, 1)
        self.checkBox = QtWidgets.QCheckBox(self.centralwidget)
        self.checkBox.setMaximumSize(QtCore.QSize(100, 16777215))
        self.checkBox.setObjectName("checkBox")
        self.gridLayout.addWidget(self.checkBox, 4, 0, 1, 1)
        self.browse = QtWidgets.QPushButton(self.centralwidget)
        self.browse.setMaximumSize(QtCore.QSize(120, 16777215))
        self.browse.setObjectName("browse")
        self.gridLayout.addWidget(self.browse, 5, 0, 1, 1)
        self.tabWidget = QtWidgets.QTabWidget(self.centralwidget)
        self.tabWidget.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.tabWidget.setObjectName("tabWidget")
        self.tab = QtWidgets.QWidget()
        self.tab.setObjectName("tab")
        self.gridLayout_2 = QtWidgets.QGridLayout(self.tab)
        self.gridLayout_2.setObjectName("gridLayout_2")
        self.tr = QtWidgets.QLineEdit(self.tab)
        self.tr.setObjectName("tr")
        self.gridLayout_2.addWidget(self.tr, 17, 3, 1, 1)
        self.rotationAngle = QtWidgets.QLineEdit(self.tab)
        self.rotationAngle.setMaximumSize(QtCore.QSize(400, 16777215))
        self.rotationAngle.setObjectName("rotationAngle")
        self.gridLayout_2.addWidget(self.rotationAngle, 17, 0, 1, 1)
        self.te = QtWidgets.QLineEdit(self.tab)
        self.te.setObjectName("te")
        self.gridLayout_2.addWidget(self.te, 17, 1, 1, 1)
        self.label_3 = QtWidgets.QLabel(self.tab)
        font = QtGui.QFont()
        font.setFamily("STIX")
        font.setPointSize(14)
        font.setBold(True)
        font.setWeight(75)
        self.label_3.setFont(font)
        self.label_3.setAlignment(QtCore.Qt.AlignCenter)
        self.label_3.setObjectName("label_3")
        self.gridLayout_2.addWidget(self.label_3, 16, 0, 1, 1)
        self.label_5 = QtWidgets.QLabel(self.tab)
        font = QtGui.QFont()
        font.setFamily("STIX")
        font.setPointSize(14)
        font.setBold(True)
        font.setWeight(75)
        self.label_5.setFont(font)
        self.label_5.setAlignment(QtCore.Qt.AlignCenter)
        self.label_5.setObjectName("label_5")
        self.gridLayout_2.addWidget(self.label_5, 16, 1, 1, 1)
        self.recoveryMz = PlotWidget(self.tab)
        self.recoveryMz.setMaximumSize(QtCore.QSize(600, 16777215))
        self.recoveryMz.setObjectName("recoveryMz")
        self.gridLayout_2.addWidget(self.recoveryMz, 11, 1, 1, 3)
        self.label_9 = QtWidgets.QLabel(self.tab)
        font = QtGui.QFont()
        font.setFamily("STIX")
        font.setPointSize(14)
        font.setBold(True)
        font.setWeight(75)
        self.label_9.setFont(font)
        self.label_9.setAlignment(QtCore.Qt.AlignCenter)
        self.label_9.setObjectName("label_9")
        self.gridLayout_2.addWidget(self.label_9, 16, 3, 1, 1)
        self.decayMx = PlotWidget(self.tab)
        self.decayMx.setMaximumSize(QtCore.QSize(600, 600))
        self.decayMx.setObjectName("decayMx")
        self.gridLayout_2.addWidget(self.decayMx, 1, 1, 1, 3)
        self.label_10 = QtWidgets.QLabel(self.tab)
        font = QtGui.QFont()
        font.setFamily("STIX")
        font.setPointSize(14)
        font.setBold(True)
        font.setWeight(75)
        self.label_10.setFont(font)
        self.label_10.setAlignment(QtCore.Qt.AlignCenter)
        self.label_10.setObjectName("label_10")
        self.gridLayout_2.addWidget(self.label_10, 0, 1, 1, 3)
        self.label_12 = QtWidgets.QLabel(self.tab)
        font = QtGui.QFont()
        font.setFamily("STIX")
        font.setPointSize(14)
        font.setBold(True)
        font.setWeight(75)
        self.label_12.setFont(font)
        self.label_12.setAlignment(QtCore.Qt.AlignCenter)
        self.label_12.setObjectName("label_12")
        self.gridLayout_2.addWidget(self.label_12, 10, 1, 1, 3)
        self.tabWidget.addTab(self.tab, "")
        self.mriSequence = QtWidgets.QWidget()
        self.mriSequence.setObjectName("mriSequence")
        self.gridLayout_5 = QtWidgets.QGridLayout(self.mriSequence)
        self.gridLayout_5.setObjectName("gridLayout_5")
        self.gridLayout_3 = QtWidgets.QGridLayout()
        self.gridLayout_3.setSpacing(0)
        self.gridLayout_3.setObjectName("gridLayout_3")
        self.TR = QtWidgets.QLineEdit(self.mriSequence)
        font = QtGui.QFont()
        font.setPointSize(14)
        self.TR.setFont(font)
        self.TR.setObjectName("TR")
        self.gridLayout_3.addWidget(self.TR, 2, 2, 1, 1)
        self.TE = QtWidgets.QLineEdit(self.mriSequence)
        font = QtGui.QFont()
        font.setPointSize(14)
        self.TE.setFont(font)
        self.TE.setObjectName("TE")
        self.gridLayout_3.addWidget(self.TE, 2, 1, 1, 1)
        self.Reconstruction = QtWidgets.QPushButton(self.mriSequence)
        self.Reconstruction.setObjectName("Reconstruction")
        self.gridLayout_3.addWidget(self.Reconstruction, 3, 1, 1, 1)
        self.flipAngle = QtWidgets.QLineEdit(self.mriSequence)
        font = QtGui.QFont()
        font.setPointSize(14)
        self.flipAngle.setFont(font)
        self.flipAngle.setObjectName("flipAngle")
        self.gridLayout_3.addWidget(self.flipAngle, 2, 0, 1, 1)
        self.label_6 = QtWidgets.QLabel(self.mriSequence)
        self.label_6.setMaximumSize(QtCore.QSize(100, 16777215))
        font = QtGui.QFont()
        font.setFamily("Gillius ADF No2")
        font.setPointSize(10)
        font.setBold(False)
        font.setWeight(50)
        self.label_6.setFont(font)
        self.label_6.setAlignment(QtCore.Qt.AlignCenter)
        self.label_6.setObjectName("label_6")
        self.gridLayout_3.addWidget(self.label_6, 1, 1, 1, 1)
        self.label_7 = QtWidgets.QLabel(self.mriSequence)
        self.label_7.setMaximumSize(QtCore.QSize(100, 50))
        font = QtGui.QFont()
        font.setFamily("Gillius ADF No2")
        font.setPointSize(10)
        font.setBold(False)
        font.setWeight(50)
        font.setStyleStrategy(QtGui.QFont.PreferAntialias)
        self.label_7.setFont(font)
        self.label_7.setAlignment(QtCore.Qt.AlignCenter)
        self.label_7.setObjectName("label_7")
        self.gridLayout_3.addWidget(self.label_7, 1, 0, 1, 1)
        self.label_8 = QtWidgets.QLabel(self.mriSequence)
        self.label_8.setMaximumSize(QtCore.QSize(100, 16777215))
        font = QtGui.QFont()
        font.setFamily("Gillius ADF No2")
        font.setPointSize(10)
        font.setBold(False)
        font.setWeight(50)
        self.label_8.setFont(font)
        self.label_8.setAlignment(QtCore.Qt.AlignCenter)
        self.label_8.setObjectName("label_8")
        self.gridLayout_3.addWidget(self.label_8, 1, 2, 1, 1)
        self.gridLayout_5.addLayout(self.gridLayout_3, 1, 0, 1, 1)
        self.gridLayout_4 = QtWidgets.QGridLayout()
        self.gridLayout_4.setObjectName("gridLayout_4")
        self.Constructed = QtWidgets.QLabel(self.mriSequence)
        self.Constructed.setMinimumSize(QtCore.QSize(512, 512))
        self.Constructed.setMaximumSize(QtCore.QSize(512, 512))
        font = QtGui.QFont()
        font.setFamily("STIX")
        font.setPointSize(14)
        font.setBold(True)
        font.setWeight(75)
        self.Constructed.setFont(font)
        self.Constructed.setAlignment(QtCore.Qt.AlignCenter)
        self.Constructed.setObjectName("Constructed")
        self.gridLayout_4.addWidget(self.Constructed, 0, 1, 1, 1)
        self.FourierMatrix = QtWidgets.QLabel(self.mriSequence)
        self.FourierMatrix.setMinimumSize(QtCore.QSize(512, 512))
        self.FourierMatrix.setMaximumSize(QtCore.QSize(512, 512))
        font = QtGui.QFont()
        font.setFamily("STIX")
        font.setPointSize(14)
        font.setBold(True)
        font.setWeight(75)
        self.FourierMatrix.setFont(font)
        self.FourierMatrix.setAlignment(QtCore.Qt.AlignCenter)
        self.FourierMatrix.setObjectName("FourierMatrix")
        self.gridLayout_4.addWidget(self.FourierMatrix, 0, 0, 1, 1)
        self.gridLayout_5.addLayout(self.gridLayout_4, 0, 0, 1, 1)
        self.tabWidget.addTab(self.mriSequence, "")
        self.gridLayout.addWidget(self.tabWidget, 0, 1, 6, 1)
        MainWindow.setCentralWidget(self.centralwidget)
        self.menubar = QtWidgets.QMenuBar(MainWindow)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 1602, 26))
        self.menubar.setObjectName("menubar")
        MainWindow.setMenuBar(self.menubar)
        self.statusbar = QtWidgets.QStatusBar(MainWindow)
        self.statusbar.setObjectName("statusbar")
        MainWindow.setStatusBar(self.statusbar)

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

    def retranslateUi(self, MainWindow):
        _translate = QtCore.QCoreApplication.translate
        MainWindow.setWindowTitle(_translate("MainWindow", "MainWindow"))
        self.ImageChange.setItemText(0, _translate("MainWindow", "Proton Density"))
        self.ImageChange.setItemText(1, _translate("MainWindow", "T1"))
        self.ImageChange.setItemText(2, _translate("MainWindow", "T2"))
        self.comboBox.setCurrentText(_translate("MainWindow", "512"))
        self.comboBox.setItemText(0, _translate("MainWindow", "512"))
        self.comboBox.setItemText(1, _translate("MainWindow", "120"))
        self.checkBox.setText(_translate("MainWindow", "Brightness"))
        self.browse.setText(_translate("MainWindow", "Browse"))
        self.tr.setText(_translate("MainWindow", "0.8"))
        self.rotationAngle.setText(_translate("MainWindow", "90"))
        self.te.setText(_translate("MainWindow", "0.4"))
        self.label_3.setText(_translate("MainWindow", "Flip Angle"))
        self.label_5.setText(_translate("MainWindow", "Time to Echo"))
        self.label_9.setText(_translate("MainWindow", "Time Repeat"))
        self.label_10.setText(_translate("MainWindow", "Decay In X axis"))
        self.label_12.setText(_translate("MainWindow", "Recovery In Z axis"))
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab), _translate("MainWindow", "Phantom Features"))
        self.TR.setText(_translate("MainWindow", "3000"))
        self.TE.setText(_translate("MainWindow", "50"))
        self.Reconstruction.setText(_translate("MainWindow", "Start"))
        self.flipAngle.setText(_translate("MainWindow", "90"))
        self.label_6.setText(_translate("MainWindow", "TE"))
        self.label_7.setText(_translate("MainWindow", "Flip Angle"))
        self.label_8.setText(_translate("MainWindow", "TR"))
        self.Constructed.setText(_translate("MainWindow", "Constructed"))
        self.FourierMatrix.setText(_translate("MainWindow", "FourierMatrix"))
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.mriSequence), _translate("MainWindow", "MRI Sequence"))
Пример #34
0
class Ui_MainWindow(object):
    def setupUi(self, MainWindow):
        MainWindow.setObjectName("MainWindow")
        MainWindow.resize(1308, 596)
        self.centralwidget = QtWidgets.QWidget(MainWindow)
        self.centralwidget.setObjectName("centralwidget")
        self.gridLayout = QtWidgets.QGridLayout(self.centralwidget)
        self.gridLayout.setObjectName("gridLayout")
        self.gridLayout_4 = QtWidgets.QGridLayout()
        self.gridLayout_4.setObjectName("gridLayout_4")
        self.tabWidget = QtWidgets.QTabWidget(self.centralwidget)
        self.tabWidget.setObjectName("tabWidget")
        self.tab = QtWidgets.QWidget()
        self.tab.setObjectName("tab")
        self.gridLayout_5 = QtWidgets.QGridLayout(self.tab)
        self.gridLayout_5.setObjectName("gridLayout_5")
        self.verticalLayout_3 = QtWidgets.QVBoxLayout()
        self.verticalLayout_3.setObjectName("verticalLayout_3")
        self.verticalLayout = QtWidgets.QVBoxLayout()
        self.verticalLayout.setObjectName("verticalLayout")
        self.horizontalLayout_4 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_4.setObjectName("horizontalLayout_4")
        self.label_4 = QtWidgets.QLabel(self.tab)
        font = QtGui.QFont()
        font.setPointSize(12)
        self.label_4.setFont(font)
        self.label_4.setAlignment(QtCore.Qt.AlignCenter)
        self.label_4.setObjectName("label_4")
        self.horizontalLayout_4.addWidget(self.label_4)
        self.horizontalLayout_3 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_3.setObjectName("horizontalLayout_3")
        self.label_5 = QtWidgets.QLabel(self.tab)
        font = QtGui.QFont()
        font.setPointSize(12)
        self.label_5.setFont(font)
        self.label_5.setObjectName("label_5")
        self.horizontalLayout_3.addWidget(self.label_5)
        self.comboBox_3 = QtWidgets.QComboBox(self.tab)
        self.comboBox_3.setObjectName("comboBox_3")
        self.comboBox_3.addItem("")
        self.comboBox_3.addItem("")
        self.comboBox_3.addItem("")
        self.comboBox_3.setItemText(2, "")
        self.comboBox_3.addItem("")
        self.comboBox_3.setItemText(3, "")
        self.horizontalLayout_3.addWidget(self.comboBox_3)
        self.horizontalLayout_4.addLayout(self.horizontalLayout_3)
        self.verticalLayout.addLayout(self.horizontalLayout_4)
        self.horizontalLayout_7 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_7.setObjectName("horizontalLayout_7")
        self.image1 = QtWidgets.QLabel(self.tab)
        self.image1.setSizeIncrement(QtCore.QSize(10, 10))
        self.image1.setText("")
        self.image1.setScaledContents(True)
        self.image1.setObjectName("image1")
        self.horizontalLayout_7.addWidget(self.image1)
        self.image = PlotWidget(self.tab)
        self.image.setMaximumSize(QtCore.QSize(475, 16777215))
        self.image.setObjectName("image")
        self.horizontalLayout_7.addWidget(self.image)
        self.verticalLayout.addLayout(self.horizontalLayout_7)
        self.verticalLayout.setStretch(0, 1)
        self.verticalLayout.setStretch(1, 5)
        self.verticalLayout_3.addLayout(self.verticalLayout)
        self.gridLayout_5.addLayout(self.verticalLayout_3, 0, 0, 1, 1)
        self.tabWidget.addTab(self.tab, "")
        self.tab_2 = QtWidgets.QWidget()
        self.tab_2.setObjectName("tab_2")
        self.layoutWidget = QtWidgets.QWidget(self.tab_2)
        self.layoutWidget.setGeometry(QtCore.QRect(10, 60, 1261, 421))
        self.layoutWidget.setObjectName("layoutWidget")
        self.horizontalLayout_9 = QtWidgets.QHBoxLayout(self.layoutWidget)
        self.horizontalLayout_9.setContentsMargins(0, 0, 0, 0)
        self.horizontalLayout_9.setObjectName("horizontalLayout_9")
        self.widget_10 = PlotWidget(self.layoutWidget)
        self.widget_10.setObjectName("widget_10")
        self.horizontalLayout_9.addWidget(self.widget_10)
        self.widget_3 = PlotWidget(self.layoutWidget)
        self.widget_3.setObjectName("widget_3")
        self.horizontalLayout_9.addWidget(self.widget_3)
        self.widget_5 = PlotWidget(self.layoutWidget)
        self.widget_5.setObjectName("widget_5")
        self.horizontalLayout_9.addWidget(self.widget_5)
        self.layoutWidget1 = QtWidgets.QWidget(self.tab_2)
        self.layoutWidget1.setGeometry(QtCore.QRect(40, 30, 1221, 27))
        self.layoutWidget1.setObjectName("layoutWidget1")
        self.horizontalLayout_10 = QtWidgets.QHBoxLayout(self.layoutWidget1)
        self.horizontalLayout_10.setContentsMargins(0, 0, 0, 0)
        self.horizontalLayout_10.setObjectName("horizontalLayout_10")
        self.label_9 = QtWidgets.QLabel(self.layoutWidget1)
        self.label_9.setObjectName("label_9")
        self.horizontalLayout_10.addWidget(self.label_9)
        self.comboBox = QtWidgets.QComboBox(self.layoutWidget1)
        self.comboBox.setObjectName("comboBox")
        self.comboBox.addItem("")
        self.comboBox.addItem("")
        self.comboBox.addItem("")
        self.comboBox.addItem("")
        self.horizontalLayout_10.addWidget(self.comboBox)
        self.label_10 = QtWidgets.QLabel(self.layoutWidget1)
        self.label_10.setObjectName("label_10")
        self.horizontalLayout_10.addWidget(self.label_10)
        self.label_11 = QtWidgets.QLabel(self.layoutWidget1)
        self.label_11.setObjectName("label_11")
        self.horizontalLayout_10.addWidget(self.label_11)
        self.tabWidget.addTab(self.tab_2, "")
        self.tab_3 = QtWidgets.QWidget()
        self.tab_3.setObjectName("tab_3")
        self.gridLayout_3 = QtWidgets.QGridLayout(self.tab_3)
        self.gridLayout_3.setObjectName("gridLayout_3")
        self.gridLayout_2 = QtWidgets.QGridLayout()
        self.gridLayout_2.setObjectName("gridLayout_2")
        self.label_3 = QtWidgets.QLabel(self.tab_3)
        self.label_3.setMaximumSize(QtCore.QSize(150, 100))
        font = QtGui.QFont()
        font.setPointSize(20)
        font.setBold(False)
        font.setWeight(50)
        self.label_3.setFont(font)
        self.label_3.setObjectName("label_3")
        self.gridLayout_2.addWidget(self.label_3, 3, 0, 1, 1)
        self.textEdit_2 = QtWidgets.QTextEdit(self.tab_3)
        self.textEdit_2.setMaximumSize(QtCore.QSize(150, 100))
        font = QtGui.QFont()
        font.setPointSize(20)
        self.textEdit_2.setFont(font)
        self.textEdit_2.setObjectName("textEdit_2")
        self.gridLayout_2.addWidget(self.textEdit_2, 4, 0, 1, 1)
        self.label_2 = QtWidgets.QLabel(self.tab_3)
        self.label_2.setMaximumSize(QtCore.QSize(150, 100))
        font = QtGui.QFont()
        font.setPointSize(20)
        font.setBold(False)
        font.setWeight(50)
        self.label_2.setFont(font)
        self.label_2.setObjectName("label_2")
        self.gridLayout_2.addWidget(self.label_2, 1, 0, 1, 1)
        self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.label = QtWidgets.QLabel(self.tab_3)
        font = QtGui.QFont()
        font.setPointSize(16)
        self.label.setFont(font)
        self.label.setObjectName("label")
        self.horizontalLayout_2.addWidget(self.label)
        self.pushButton_4 = QtWidgets.QPushButton(self.tab_3)
        font = QtGui.QFont()
        font.setPointSize(14)
        self.pushButton_4.setFont(font)
        self.pushButton_4.setObjectName("pushButton_4")
        self.horizontalLayout_2.addWidget(self.pushButton_4)
        self.pushButton_5 = QtWidgets.QPushButton(self.tab_3)
        font = QtGui.QFont()
        font.setPointSize(12)
        self.pushButton_5.setFont(font)
        self.pushButton_5.setObjectName("pushButton_5")
        self.horizontalLayout_2.addWidget(self.pushButton_5)
        self.gridLayout_2.addLayout(self.horizontalLayout_2, 0, 1, 1, 1)
        self.textEdit = QtWidgets.QTextEdit(self.tab_3)
        self.textEdit.setMaximumSize(QtCore.QSize(150, 100))
        font = QtGui.QFont()
        font.setPointSize(20)
        self.textEdit.setFont(font)
        self.textEdit.setObjectName("textEdit")
        self.gridLayout_2.addWidget(self.textEdit, 2, 0, 1, 1)
        self.image_1 = PlotWidget(self.tab_3)
        self.image_1.setObjectName("image_1")
        self.gridLayout_2.addWidget(self.image_1, 2, 1, 4, 1)
        self.horizontalLayout_5 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_5.setObjectName("horizontalLayout_5")
        self.horizontalLayout_6 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_6.setObjectName("horizontalLayout_6")
        self.label_6 = QtWidgets.QLabel(self.tab_3)
        self.label_6.setObjectName("label_6")
        self.horizontalLayout_6.addWidget(self.label_6)
        self.slider_3 = QtWidgets.QSlider(self.tab_3)
        self.slider_3.setProperty("value", 50)
        self.slider_3.setOrientation(QtCore.Qt.Horizontal)
        self.slider_3.setObjectName("slider_3")
        self.horizontalLayout_6.addWidget(self.slider_3)
        self.horizontalLayout_5.addLayout(self.horizontalLayout_6)
        self.horizontalLayout_8 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_8.setObjectName("horizontalLayout_8")
        self.label_7 = QtWidgets.QLabel(self.tab_3)
        self.label_7.setObjectName("label_7")
        self.horizontalLayout_8.addWidget(self.label_7)
        self.slider_2 = QtWidgets.QSlider(self.tab_3)
        self.slider_2.setProperty("value", 50)
        self.slider_2.setOrientation(QtCore.Qt.Horizontal)
        self.slider_2.setObjectName("slider_2")
        self.horizontalLayout_8.addWidget(self.slider_2)
        self.horizontalLayout_8.setStretch(0, 1)
        self.horizontalLayout_8.setStretch(1, 4)
        self.horizontalLayout_5.addLayout(self.horizontalLayout_8)
        self.horizontalLayout = QtWidgets.QHBoxLayout()
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.label_8 = QtWidgets.QLabel(self.tab_3)
        self.label_8.setObjectName("label_8")
        self.horizontalLayout.addWidget(self.label_8)
        self.slider_1 = QtWidgets.QSlider(self.tab_3)
        self.slider_1.setProperty("value", 50)
        self.slider_1.setOrientation(QtCore.Qt.Horizontal)
        self.slider_1.setObjectName("slider_1")
        self.horizontalLayout.addWidget(self.slider_1)
        self.horizontalLayout.setStretch(0, 1)
        self.horizontalLayout.setStretch(1, 4)
        self.horizontalLayout_5.addLayout(self.horizontalLayout)
        self.gridLayout_2.addLayout(self.horizontalLayout_5, 1, 1, 1, 1)
        self.gridLayout_3.addLayout(self.gridLayout_2, 0, 0, 1, 1)
        self.tabWidget.addTab(self.tab_3, "")
        self.gridLayout_4.addWidget(self.tabWidget, 0, 0, 1, 1)
        self.gridLayout.addLayout(self.gridLayout_4, 0, 0, 1, 1)
        MainWindow.setCentralWidget(self.centralwidget)
        self.menubar = QtWidgets.QMenuBar(MainWindow)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 1308, 22))
        self.menubar.setObjectName("menubar")
        MainWindow.setMenuBar(self.menubar)
        self.statusbar = QtWidgets.QStatusBar(MainWindow)
        self.statusbar.setObjectName("statusbar")
        MainWindow.setStatusBar(self.statusbar)

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

    def retranslateUi(self, MainWindow):
        _translate = QtCore.QCoreApplication.translate
        MainWindow.setWindowTitle(_translate("MainWindow", "MainWindow"))
        self.label_4.setText(_translate("MainWindow", "Original Image"))
        self.label_5.setText(_translate("MainWindow", "Edge Detection"))
        self.comboBox_3.setItemText(0, _translate("MainWindow", "Apply"))
        self.comboBox_3.setItemText(
            1, _translate("MainWindow", "Canny Edge Detector"))
        self.tabWidget.setTabText(
            self.tabWidget.indexOf(self.tab),
            _translate("MainWindow", "Canny edge detection"))
        self.label_9.setText(_translate("MainWindow", "Original"))
        self.comboBox.setItemText(0, _translate("MainWindow", "..."))
        self.comboBox.setItemText(1, _translate("MainWindow", "Original"))
        self.comboBox.setItemText(2, _translate("MainWindow", "accumulator"))
        self.comboBox.setItemText(3, _translate("MainWindow", "hough lines"))
        self.label_10.setText(_translate("MainWindow", "hough accumulator"))
        self.label_11.setText(_translate("MainWindow", "hough lines"))
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_2),
                                  _translate("MainWindow", "Hough transform"))
        self.label_3.setText(_translate("MainWindow", "Perimeter"))
        self.label_2.setText(_translate("MainWindow", "Area "))
        self.label.setText(_translate("MainWindow", "Image with border"))
        self.pushButton_4.setText(_translate("MainWindow", "Start"))
        self.pushButton_5.setText(_translate("MainWindow", "Clear"))
        self.textEdit.setHtml(
            _translate(
                "MainWindow",
                "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
                "<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
                "p, li { white-space: pre-wrap; }\n"
                "</style></head><body style=\" font-family:\'Ubuntu\'; font-size:20pt; font-weight:400; font-style:normal;\">\n"
                "<p style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'MS Shell Dlg 2\'; font-size:7.8pt;\"><br /></p></body></html>"
            ))
        self.label_6.setText(_translate("MainWindow", "Gamma"))
        self.label_7.setText(_translate("MainWindow", "Beta"))
        self.label_8.setText(_translate("MainWindow", "Alpha"))
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_3),
                                  _translate("MainWindow", "Active Contour"))
Пример #35
0
class Ui_MainWindow(object):
    def setupUi(self, MainWindow):
        MainWindow.setObjectName("MainWindow")
        MainWindow.resize(1024, 700)
        MainWindow.setMaximumSize(QtCore.QSize(100000, 100000))
        self.centralwidget = QtWidgets.QWidget(MainWindow)
        self.centralwidget.setObjectName("centralwidget")
        self.horizontalLayout = QtWidgets.QHBoxLayout(self.centralwidget)
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.verticalLayout_3 = QtWidgets.QVBoxLayout()
        self.verticalLayout_3.setObjectName("verticalLayout_3")
        self.label_7 = QtWidgets.QLabel(self.centralwidget)
        self.label_7.setObjectName("label_7")
        self.verticalLayout_3.addWidget(self.label_7)
        self.groupBox_3 = QtWidgets.QGroupBox(self.centralwidget)
        self.groupBox_3.setObjectName("groupBox_3")
        self.layoutWidget = QtWidgets.QWidget(self.groupBox_3)
        self.layoutWidget.setGeometry(QtCore.QRect(30, 20, 291, 128))
        self.layoutWidget.setObjectName("layoutWidget")
        self.verticalLayout_5 = QtWidgets.QVBoxLayout(self.layoutWidget)
        self.verticalLayout_5.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout_5.setObjectName("verticalLayout_5")
        self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.label_4 = QtWidgets.QLabel(self.layoutWidget)
        self.label_4.setObjectName("label_4")
        self.horizontalLayout_2.addWidget(self.label_4)
        self.comboBox = QtWidgets.QComboBox(self.layoutWidget)
        self.comboBox.setObjectName("comboBox")
        self.horizontalLayout_2.addWidget(self.comboBox)
        self.verticalLayout_5.addLayout(self.horizontalLayout_2)
        self.horizontalLayout_3 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_3.setObjectName("horizontalLayout_3")
        self.label_5 = QtWidgets.QLabel(self.layoutWidget)
        self.label_5.setObjectName("label_5")
        self.horizontalLayout_3.addWidget(self.label_5)
        self.comboBox_2 = QtWidgets.QComboBox(self.layoutWidget)
        self.comboBox_2.setObjectName("comboBox_2")
        self.horizontalLayout_3.addWidget(self.comboBox_2)
        self.verticalLayout_5.addLayout(self.horizontalLayout_3)
        self.pushButton_3 = QtWidgets.QPushButton(self.layoutWidget)
        self.pushButton_3.setObjectName("pushButton_3")
        self.verticalLayout_5.addWidget(self.pushButton_3)
        self.pushButton_4 = QtWidgets.QPushButton(self.layoutWidget)
        self.pushButton_4.setObjectName("pushButton_4")
        self.verticalLayout_5.addWidget(self.pushButton_4)
        self.label_6 = QtWidgets.QLabel(self.layoutWidget)
        self.label_6.setObjectName("label_6")
        self.verticalLayout_5.addWidget(self.label_6)
        self.verticalLayout_3.addWidget(self.groupBox_3)
        self.groupBox = QtWidgets.QGroupBox(self.centralwidget)
        self.groupBox.setAlignment(QtCore.Qt.AlignLeading | QtCore.Qt.AlignLeft
                                   | QtCore.Qt.AlignTop)
        self.groupBox.setObjectName("groupBox")
        self.verticalLayoutWidget_2 = QtWidgets.QWidget(self.groupBox)
        self.verticalLayoutWidget_2.setGeometry(QtCore.QRect(30, 30, 281, 81))
        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.label_2 = QtWidgets.QLabel(self.verticalLayoutWidget_2)
        self.label_2.setMaximumSize(QtCore.QSize(16777215, 126))
        self.label_2.setTextFormat(QtCore.Qt.RichText)
        self.label_2.setObjectName("label_2")
        self.verticalLayout_2.addWidget(self.label_2)
        self.label_3 = QtWidgets.QLabel(self.verticalLayoutWidget_2)
        self.label_3.setObjectName("label_3")
        self.verticalLayout_2.addWidget(self.label_3)
        self.label = QtWidgets.QLabel(self.groupBox)
        self.label.setGeometry(QtCore.QRect(-40, 500, 659, 82))
        self.label.setObjectName("label")
        self.verticalLayout_3.addWidget(self.groupBox)
        self.groupBox_2 = QtWidgets.QGroupBox(self.centralwidget)
        self.groupBox_2.setObjectName("groupBox_2")
        self.horizontalLayout_7 = QtWidgets.QHBoxLayout(self.groupBox_2)
        self.horizontalLayout_7.setObjectName("horizontalLayout_7")
        self.verticalLayout = QtWidgets.QVBoxLayout()
        self.verticalLayout.setObjectName("verticalLayout")
        self.pushButton = QtWidgets.QPushButton(self.groupBox_2)
        self.pushButton.setObjectName("pushButton")
        self.verticalLayout.addWidget(self.pushButton)
        self.pushButton_2 = QtWidgets.QPushButton(self.groupBox_2)
        self.pushButton_2.setObjectName("pushButton_2")
        self.verticalLayout.addWidget(self.pushButton_2)
        self.horizontalLayout_7.addLayout(self.verticalLayout)
        self.verticalLayout_4 = QtWidgets.QVBoxLayout()
        self.verticalLayout_4.setObjectName("verticalLayout_4")
        self.pushButton_5 = QtWidgets.QPushButton(self.groupBox_2)
        self.pushButton_5.setObjectName("pushButton_5")
        self.verticalLayout_4.addWidget(self.pushButton_5)
        self.pushButton_6 = QtWidgets.QPushButton(self.groupBox_2)
        self.pushButton_6.setObjectName("pushButton_6")
        self.verticalLayout_4.addWidget(self.pushButton_6)
        self.horizontalLayout_7.addLayout(self.verticalLayout_4)
        self.verticalLayout_3.addWidget(self.groupBox_2)
        self.horizontalLayout.addLayout(self.verticalLayout_3)
        self.tabWidget = QtWidgets.QTabWidget(self.centralwidget)
        self.tabWidget.setObjectName("tabWidget")
        self.tab = QtWidgets.QWidget()
        self.tab.setObjectName("tab")
        self.horizontalLayout_4 = QtWidgets.QHBoxLayout(self.tab)
        self.horizontalLayout_4.setObjectName("horizontalLayout_4")
        self.graphicsView = PlotWidget(self.tab)
        self.graphicsView.setMaximumSize(QtCore.QSize(1920, 1920))
        self.graphicsView.setBaseSize(QtCore.QSize(256, 256))
        self.graphicsView.setObjectName("graphicsView")
        self.horizontalLayout_4.addWidget(self.graphicsView)
        self.tabWidget.addTab(self.tab, "")
        self.tab_2 = QtWidgets.QWidget()
        self.tab_2.setObjectName("tab_2")
        self.horizontalLayout_5 = QtWidgets.QHBoxLayout(self.tab_2)
        self.horizontalLayout_5.setObjectName("horizontalLayout_5")
        self.label_8 = QtWidgets.QLabel(self.tab_2)
        self.label_8.setObjectName("label_8")
        self.horizontalLayout_5.addWidget(self.label_8)
        self.tabWidget.addTab(self.tab_2, "")
        self.horizontalLayout.addWidget(self.tabWidget)
        MainWindow.setCentralWidget(self.centralwidget)
        self.menubar = QtWidgets.QMenuBar(MainWindow)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 1024, 23))
        self.menubar.setObjectName("menubar")
        self.menufile = QtWidgets.QMenu(self.menubar)
        self.menufile.setObjectName("menufile")
        self.menuheli = QtWidgets.QMenu(self.menubar)
        self.menuheli.setObjectName("menuheli")
        MainWindow.setMenuBar(self.menubar)
        self.statusbar = QtWidgets.QStatusBar(MainWindow)
        self.statusbar.setObjectName("statusbar")
        MainWindow.setStatusBar(self.statusbar)
        self.toolBar = QtWidgets.QToolBar(MainWindow)
        self.toolBar.setObjectName("toolBar")
        MainWindow.addToolBar(QtCore.Qt.TopToolBarArea, self.toolBar)
        self.actionexit = QtWidgets.QAction(MainWindow)
        self.actionexit.setObjectName("actionexit")
        self.actionHow_to_use = QtWidgets.QAction(MainWindow)
        self.actionHow_to_use.setObjectName("actionHow_to_use")
        self.actionAbout_us = QtWidgets.QAction(MainWindow)
        self.actionAbout_us.setObjectName("actionAbout_us")
        self.actionSuggestion = QtWidgets.QAction(MainWindow)
        self.actionSuggestion.setObjectName("actionSuggestion")
        self.actionStart = QtWidgets.QAction(MainWindow)
        self.actionStart.setObjectName("actionStart")
        self.actionStop = QtWidgets.QAction(MainWindow)
        self.actionStop.setObjectName("actionStop")
        self.actionConnect_device = QtWidgets.QAction(MainWindow)
        self.actionConnect_device.setObjectName("actionConnect_device")
        self.actionStart_device = QtWidgets.QAction(MainWindow)
        self.actionStart_device.setObjectName("actionStart_device")
        self.actionStop_deviece = QtWidgets.QAction(MainWindow)
        self.actionStop_deviece.setObjectName("actionStop_deviece")
        self.actionExit = QtWidgets.QAction(MainWindow)
        self.actionExit.setObjectName("actionExit")
        self.actionSuggestion_2 = QtWidgets.QAction(MainWindow)
        self.actionSuggestion_2.setObjectName("actionSuggestion_2")
        self.menufile.addSeparator()
        self.menufile.addAction(self.actionConnect_device)
        self.menufile.addSeparator()
        self.menufile.addAction(self.actionStart_device)
        self.menufile.addSeparator()
        self.menufile.addAction(self.actionStop_deviece)
        self.menufile.addSeparator()
        self.menufile.addAction(self.actionExit)
        self.menuheli.addAction(self.actionHow_to_use)
        self.menuheli.addSeparator()
        self.menuheli.addAction(self.actionAbout_us)
        self.menuheli.addSeparator()
        self.menuheli.addAction(self.actionSuggestion_2)
        self.menubar.addAction(self.menufile.menuAction())
        self.menubar.addAction(self.menuheli.menuAction())

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

    def retranslateUi(self, MainWindow):
        _translate = QtCore.QCoreApplication.translate
        MainWindow.setWindowTitle(_translate("MainWindow", "MainWindow"))
        self.label_7.setText(
            _translate(
                "MainWindow",
                "<html><head/><body><p align=\"center\"><span style=\" font-size:18pt; font-weight:600;\">ICARE SYSTEM INTERFACE</span></p></body></html>"
            ))
        self.groupBox_3.setTitle(_translate("MainWindow", "Com Ports"))
        self.label_4.setText(
            _translate(
                "MainWindow",
                "<html><head/><body><p><span style=\" font-weight:600;\">UART:</span></p></body></html>"
            ))
        self.label_5.setText(
            _translate(
                "MainWindow",
                "<html><head/><body><p><span style=\" font-weight:600;\">DATA:</span></p></body></html>"
            ))
        self.pushButton_3.setText(_translate("MainWindow", "CONNECT"))
        self.pushButton_4.setText(_translate("MainWindow", "CLOSE "))
        self.label_6.setText(
            _translate("MainWindow", "COM STATUS : Ports NOT Connect"))
        self.groupBox.setTitle(_translate("MainWindow", "Environment "))
        self.label_2.setText(
            _translate(
                "MainWindow",
                "<html><head/><body><p><span style=\" font-weight:600;\">Temperature:</span></p></body></html>"
            ))
        self.label_3.setText(
            _translate(
                "MainWindow",
                "<html><head/><body><p><span style=\" font-weight:600;\">Humidity:</span></p></body></html>"
            ))
        self.label.setText(
            _translate(
                "MainWindow",
                "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
                "<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
                "p, li { white-space: pre-wrap; }\n"
                "</style></head><body style=\" font-family:\'SimSun\'; font-size:9pt; font-weight:400; font-style:normal;\">\n"
                "<p style=\" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-size:16pt; font-weight:600;\">Concentration of CO:</span></p></body></html>"
            ))
        self.groupBox_2.setTitle(_translate("MainWindow", "Device Control"))
        self.pushButton.setText(_translate("MainWindow", "CARING"))
        self.pushButton_2.setText(_translate("MainWindow", "STOP_C"))
        self.pushButton_5.setText(_translate("MainWindow", "MONITORING"))
        self.pushButton_6.setText(_translate("MainWindow", "STOP_M"))
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab),
                                  _translate("MainWindow", "Point Plot"))
        self.label_8.setText(_translate("MainWindow", "TextLabel"))
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_2),
                                  _translate("MainWindow", "Fall Detection"))
        self.menufile.setTitle(_translate("MainWindow", "File"))
        self.menuheli.setTitle(_translate("MainWindow", "Help"))
        self.toolBar.setWindowTitle(_translate("MainWindow", "toolBar"))
        self.actionexit.setText(_translate("MainWindow", "exit"))
        self.actionHow_to_use.setText(_translate("MainWindow", "How to use"))
        self.actionAbout_us.setText(_translate("MainWindow", "About us"))
        self.actionSuggestion.setText(_translate("MainWindow", "Suggestion"))
        self.actionStart.setText(_translate("MainWindow", "Start"))
        self.actionStop.setText(_translate("MainWindow", "Stop"))
        self.actionConnect_device.setText(
            _translate("MainWindow", "Connect device"))
        self.actionStart_device.setText(
            _translate("MainWindow", "Start device"))
        self.actionStop_deviece.setText(
            _translate("MainWindow", "Stop deviece"))
        self.actionExit.setText(
            _translate("MainWindow", "Exit                      "))
        self.actionSuggestion_2.setText(_translate("MainWindow", "Suggestion"))