def setupUi(self, Dialog): Dialog.setObjectName("Dialog") Dialog.resize(1234, 982) Dialog.setStyleSheet( "/*\n" " Copyright 2013 Emanuel Claesson\n" "\n" " Licensed under the Apache License, Version 2.0 (the \"License\");\n" " you may not use this file except in compliance with the License.\n" " You may obtain a copy of the License at\n" "\n" " http://www.apache.org/licenses/LICENSE-2.0\n" "\n" " Unless required by applicable law or agreed to in writing, software\n" " distributed under the License is distributed on an \"AS IS\" BASIS,\n" " WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n" " See the License for the specific language governing permissions and\n" " limitations under the License.\n" "*/\n" "\n" "/*\n" " COLOR_DARK = #191919\n" " COLOR_MEDIUM = #353535\n" " COLOR_MEDLIGHT = #5A5A5A\n" " COLOR_LIGHT = #DDDDDD\n" " COLOR_ACCENT = #3D7848\n" "*/\n" "\n" "* {\n" " background: #191919;\n" " color: #DDDDDD;\n" " border: 1px solid #5A5A5A;\n" "}\n" "\n" "QWidget::item:selected {\n" " background: #3D7848;\n" "}\n" "\n" "QCheckBox, QRadioButton {\n" " border: none;\n" "}\n" "\n" "QRadioButton::indicator, QCheckBox::indicator {\n" " width: 13px;\n" " height: 13px;\n" "}\n" "\n" "QRadioButton::indicator::unchecked, QCheckBox::indicator::unchecked {\n" " border: 1px solid #5A5A5A;\n" " background: none;\n" "}\n" "\n" "QRadioButton::indicator::checked, QCheckBox::indicator::checked {\n" " border: 1px solid #5A5A5A;\n" " background: #3D7848;\n" "}\n" "\n" "QGroupBox {\n" " margin-top: 6px;\n" "}\n" "\n" "QGroupBox::title {\n" " top: -7px;\n" " left: 7px;\n" "}\n" "\n" "QScrollBar {\n" " border: 1px solid #5A5A5A;\n" " background: #191919;\n" "}\n" "\n" "QScrollBar:horizontal {\n" " height: 15px;\n" " margin: 0px 0px 0px 32px;\n" "}\n" "\n" "QScrollBar:vertical {\n" " width: 15px;\n" " margin: 32px 0px 0px 0px;\n" "}\n" "\n" "QScrollBar::handle {\n" " background: #353535;\n" " border: 1px solid #5A5A5A;\n" "}\n" "\n" "QScrollBar::handle:horizontal {\n" " border-width: 0px 1px 0px 1px;\n" "}\n" "\n" "QScrollBar::handle:vertical {\n" " border-width: 1px 0px 1px 0px;\n" "}\n" "\n" "QScrollBar::handle:horizontal {\n" " min-width: 20px;\n" "}\n" "\n" "QScrollBar::handle:vertical {\n" " min-height: 20px;\n" "}\n" "\n" "QScrollBar::add-line, QScrollBar::sub-line {\n" " background:#353535;\n" " border: 1px solid #5A5A5A;\n" " subcontrol-origin: margin;\n" "}\n" "\n" "QScrollBar::add-line {\n" " position: absolute;\n" "}\n" "\n" "QScrollBar::add-line:horizontal {\n" " width: 15px;\n" " subcontrol-position: left;\n" " left: 15px;\n" "}\n" "\n" "QScrollBar::add-line:vertical {\n" " height: 15px;\n" " subcontrol-position: top;\n" " top: 15px;\n" "}\n" "\n" "QScrollBar::sub-line:horizontal {\n" " width: 15px;\n" " subcontrol-position: top left;\n" "}\n" "\n" "QScrollBar::sub-line:vertical {\n" " height: 15px;\n" " subcontrol-position: top;\n" "}\n" "\n" "QScrollBar:left-arrow, QScrollBar::right-arrow, QScrollBar::up-arrow, QScrollBar::down-arrow {\n" " border: 1px solid #5A5A5A;\n" " width: 3px;\n" " height: 3px;\n" "}\n" "\n" "QScrollBar::add-page, QScrollBar::sub-page {\n" " background: none;\n" "}\n" "\n" "QAbstractButton:hover {\n" " background: #353535;\n" "}\n" "\n" "QAbstractButton:pressed {\n" " background: #5A5A5A;\n" "}\n" "\n" "QAbstractItemView {\n" " show-decoration-selected: 1;\n" " selection-background-color: #3D7848;\n" " selection-color: #DDDDDD;\n" " alternate-background-color: #353535;\n" "}\n" "\n" "QHeaderView {\n" " border: 1px solid #5A5A5A;\n" "}\n" "\n" "QHeaderView::section {\n" " background: #191919;\n" " border: 1px solid #5A5A5A;\n" " padding: 4px;\n" "}\n" "\n" "QHeaderView::section:selected, QHeaderView::section::checked {\n" " background: #353535;\n" "}\n" "\n" "QTableView {\n" " gridline-color: #5A5A5A;\n" "}\n" "\n" "QTabBar {\n" " margin-left: 2px;\n" "}\n" "\n" "QTabBar::tab {\n" " border-radius: 0px;\n" " padding: 4px;\n" " margin: 4px;\n" "}\n" "\n" "QTabBar::tab:selected {\n" " background: #353535;\n" "}\n" "\n" "QComboBox::down-arrow {\n" " border: 1px solid #5A5A5A;\n" " background: #353535;\n" "}\n" "\n" "QComboBox::drop-down {\n" " border: 1px solid #5A5A5A;\n" " background: #353535;\n" "}\n" "\n" "QComboBox::down-arrow {\n" " width: 3px;\n" " height: 3px;\n" " border: 1px solid #5A5A5A;\n" "}\n" "\n" "QAbstractSpinBox {\n" " padding-right: 15px;\n" "}\n" "\n" "QAbstractSpinBox::up-button, QAbstractSpinBox::down-button {\n" " border: 1px solid #5A5A5A;\n" " background: #353535;\n" " subcontrol-origin: border;\n" "}\n" "\n" "QAbstractSpinBox::up-arrow, QAbstractSpinBox::down-arrow {\n" " width: 3px;\n" " height: 3px;\n" " border: 1px solid #5A5A5A;\n" "}\n" "\n" "QSlider {\n" " border: none;\n" "}\n" "\n" "QSlider::groove:horizontal {\n" " height: 5px;\n" " margin: 4px 0px 4px 0px;\n" "}\n" "\n" "QSlider::groove:vertical {\n" " width: 5px;\n" " margin: 0px 4px 0px 4px;\n" "}\n" "\n" "QSlider::handle {\n" " border: 1px solid #5A5A5A;\n" " background: #808080;\n" "}\n" "\n" "QSlider::handle:horizontal {\n" " width: 15px;\n" " margin: -4px 0px -4px 0px;\n" "}\n" "\n" "QSlider::handle:vertical {\n" " height: 15px;\n" " margin: 0px -4px 0px -4px;\n" "}\n" "\n" "QSlider::add-page:vertical, QSlider::sub-page:horizontal {\n" " background: #3D7848;\n" "}\n" "\n" "QSlider::sub-page:vertical, QSlider::add-page:horizontal {\n" " background: #808080;\n" "}\n" "\n" "QLabel {\n" " border: none;\n" "}\n" "\n" "QProgressBar {\n" " text-align: center;\n" "}\n" "\n" "QProgressBar::chunk {\n" " width: 1px;\n" " background-color: #3D7848;\n" "}\n" "\n" "QMenu::separator {\n" " background: #353535;\n" "}") self.verticalLayout = QtWidgets.QVBoxLayout(Dialog) self.verticalLayout.setObjectName("verticalLayout") self.label = QtWidgets.QLabel(Dialog) font = QtGui.QFont() font.setPointSize(16) self.label.setFont(font) self.label.setAlignment(QtCore.Qt.AlignCenter) self.label.setObjectName("label") self.verticalLayout.addWidget(self.label, 0, QtCore.Qt.AlignHCenter) self.groupBox_4 = QtWidgets.QGroupBox(Dialog) self.groupBox_4.setObjectName("groupBox_4") self.gridLayout = QtWidgets.QGridLayout(self.groupBox_4) self.gridLayout.setObjectName("gridLayout") self.verticalLayout_7 = QtWidgets.QVBoxLayout() self.verticalLayout_7.setObjectName("verticalLayout_7") self.graphWidget_Immune = PlotWidget(self.groupBox_4) self.graphWidget_Immune.setMinimumSize(QtCore.QSize(300, 300)) self.graphWidget_Immune.setObjectName("graphWidget_Immune") self.verticalLayout_7.addWidget(self.graphWidget_Immune) self.gridLayout.addLayout(self.verticalLayout_7, 1, 0, 1, 1) self.verticalLayout_8 = QtWidgets.QVBoxLayout() self.verticalLayout_8.setObjectName("verticalLayout_8") self.graphWidget_Dead = PlotWidget(self.groupBox_4) self.graphWidget_Dead.setMinimumSize(QtCore.QSize(300, 300)) self.graphWidget_Dead.setObjectName("graphWidget_Dead") self.verticalLayout_8.addWidget(self.graphWidget_Dead) self.gridLayout.addLayout(self.verticalLayout_8, 1, 1, 1, 1) self.verticalLayout_6 = QtWidgets.QVBoxLayout() self.verticalLayout_6.setObjectName("verticalLayout_6") self.graphWidget_Infected = PlotWidget(self.groupBox_4) self.graphWidget_Infected.setMinimumSize(QtCore.QSize(300, 300)) self.graphWidget_Infected.setObjectName("graphWidget_Infected") self.verticalLayout_6.addWidget(self.graphWidget_Infected) self.gridLayout.addLayout(self.verticalLayout_6, 0, 1, 1, 1) self.verticalLayout_5 = QtWidgets.QVBoxLayout() self.verticalLayout_5.setObjectName("verticalLayout_5") self.graphWidget_Healthy = PlotWidget(self.groupBox_4) self.graphWidget_Healthy.setMinimumSize(QtCore.QSize(300, 300)) self.graphWidget_Healthy.setObjectName("graphWidget_Healthy") self.verticalLayout_5.addWidget(self.graphWidget_Healthy) self.gridLayout.addLayout(self.verticalLayout_5, 0, 0, 1, 1) self.horizontalLayout_15 = QtWidgets.QHBoxLayout() self.horizontalLayout_15.setObjectName("horizontalLayout_15") self.graphWidget_Vaccinated = PlotWidget(self.groupBox_4) self.graphWidget_Vaccinated.setMinimumSize(QtCore.QSize(300, 300)) self.graphWidget_Vaccinated.setObjectName("graphWidget_Vaccinated") self.horizontalLayout_15.addWidget(self.graphWidget_Vaccinated) self.gridLayout.addLayout(self.horizontalLayout_15, 0, 2, 1, 1) self.verticalLayout.addWidget(self.groupBox_4) self.horizontalLayout_18 = QtWidgets.QHBoxLayout() self.horizontalLayout_18.setObjectName("horizontalLayout_18") self.groupBox = QtWidgets.QGroupBox(Dialog) self.groupBox.setObjectName("groupBox") self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.groupBox) self.verticalLayout_2.setObjectName("verticalLayout_2") self.horizontalLayout_2 = QtWidgets.QHBoxLayout() self.horizontalLayout_2.setObjectName("horizontalLayout_2") self.label_countSim = QtWidgets.QLabel(self.groupBox) self.label_countSim.setObjectName("label_countSim") self.horizontalLayout_2.addWidget(self.label_countSim) self.spinBox_countSim = QtWidgets.QSpinBox(self.groupBox) self.spinBox_countSim.setObjectName("spinBox_countSim") self.horizontalLayout_2.addWidget(self.spinBox_countSim) self.verticalLayout_2.addLayout(self.horizontalLayout_2) self.horizontalLayout_3 = QtWidgets.QHBoxLayout() self.horizontalLayout_3.setObjectName("horizontalLayout_3") self.label_simDuration = QtWidgets.QLabel(self.groupBox) font = QtGui.QFont() font.setPointSize(8) self.label_simDuration.setFont(font) self.label_simDuration.setObjectName("label_simDuration") self.horizontalLayout_3.addWidget(self.label_simDuration) self.spinBox_simDuration = QtWidgets.QSpinBox(self.groupBox) self.spinBox_simDuration.setObjectName("spinBox_simDuration") self.horizontalLayout_3.addWidget(self.spinBox_simDuration) self.verticalLayout_2.addLayout(self.horizontalLayout_3) self.horizontalLayout = QtWidgets.QHBoxLayout() self.horizontalLayout.setObjectName("horizontalLayout") self.label_countParticles = QtWidgets.QLabel(self.groupBox) self.label_countParticles.setObjectName("label_countParticles") self.horizontalLayout.addWidget(self.label_countParticles) self.spinBox_countParticles = QtWidgets.QSpinBox(self.groupBox) self.spinBox_countParticles.setObjectName("spinBox_countParticles") self.horizontalLayout.addWidget(self.spinBox_countParticles) self.verticalLayout_2.addLayout(self.horizontalLayout) self.horizontalLayout_4 = QtWidgets.QHBoxLayout() self.horizontalLayout_4.setObjectName("horizontalLayout_4") self.label_countInfectedParticles = QtWidgets.QLabel(self.groupBox) self.label_countInfectedParticles.setObjectName( "label_countInfectedParticles") self.horizontalLayout_4.addWidget(self.label_countInfectedParticles) self.spinBox_countInfectedParticles = QtWidgets.QSpinBox(self.groupBox) self.spinBox_countInfectedParticles.setObjectName( "spinBox_countInfectedParticles") self.horizontalLayout_4.addWidget(self.spinBox_countInfectedParticles) self.verticalLayout_2.addLayout(self.horizontalLayout_4) self.horizontalLayout_18.addWidget(self.groupBox) self.groupBox_2 = QtWidgets.QGroupBox(Dialog) self.groupBox_2.setObjectName("groupBox_2") self.verticalLayout_3 = QtWidgets.QVBoxLayout(self.groupBox_2) self.verticalLayout_3.setObjectName("verticalLayout_3") self.horizontalLayout_5 = QtWidgets.QHBoxLayout() self.horizontalLayout_5.setObjectName("horizontalLayout_5") self.label_infectionRate = QtWidgets.QLabel(self.groupBox_2) self.label_infectionRate.setObjectName("label_infectionRate") self.horizontalLayout_5.addWidget(self.label_infectionRate) self.spinBox_infectionRate = QtWidgets.QSpinBox(self.groupBox_2) self.spinBox_infectionRate.setObjectName("spinBox_infectionRate") self.horizontalLayout_5.addWidget(self.spinBox_infectionRate) self.verticalLayout_3.addLayout(self.horizontalLayout_5) self.horizontalLayout_6 = QtWidgets.QHBoxLayout() self.horizontalLayout_6.setObjectName("horizontalLayout_6") self.label_infectionRadius = QtWidgets.QLabel(self.groupBox_2) self.label_infectionRadius.setObjectName("label_infectionRadius") self.horizontalLayout_6.addWidget(self.label_infectionRadius) self.spinBox_infectionRadius = QtWidgets.QSpinBox(self.groupBox_2) self.spinBox_infectionRadius.setObjectName("spinBox_infectionRadius") self.horizontalLayout_6.addWidget(self.spinBox_infectionRadius) self.verticalLayout_3.addLayout(self.horizontalLayout_6) self.horizontalLayout_7 = QtWidgets.QHBoxLayout() self.horizontalLayout_7.setObjectName("horizontalLayout_7") self.label_deathRate = QtWidgets.QLabel(self.groupBox_2) self.label_deathRate.setObjectName("label_deathRate") self.horizontalLayout_7.addWidget(self.label_deathRate) self.spinBox_deathRate = QtWidgets.QSpinBox(self.groupBox_2) self.spinBox_deathRate.setObjectName("spinBox_deathRate") self.horizontalLayout_7.addWidget(self.spinBox_deathRate) self.verticalLayout_3.addLayout(self.horizontalLayout_7) self.horizontalLayout_8 = QtWidgets.QHBoxLayout() self.horizontalLayout_8.setObjectName("horizontalLayout_8") self.label_minInfectionDays = QtWidgets.QLabel(self.groupBox_2) self.label_minInfectionDays.setObjectName("label_minInfectionDays") self.horizontalLayout_8.addWidget(self.label_minInfectionDays) self.spinBox_minInfectionDays = QtWidgets.QSpinBox(self.groupBox_2) self.spinBox_minInfectionDays.setObjectName("spinBox_minInfectionDays") self.horizontalLayout_8.addWidget(self.spinBox_minInfectionDays) self.verticalLayout_3.addLayout(self.horizontalLayout_8) self.horizontalLayout_9 = QtWidgets.QHBoxLayout() self.horizontalLayout_9.setObjectName("horizontalLayout_9") self.label_maxInfectionDays = QtWidgets.QLabel(self.groupBox_2) self.label_maxInfectionDays.setObjectName("label_maxInfectionDays") self.horizontalLayout_9.addWidget(self.label_maxInfectionDays) self.spinBox_maxInfectionDays = QtWidgets.QSpinBox(self.groupBox_2) self.spinBox_maxInfectionDays.setObjectName("spinBox_maxInfectionDays") self.horizontalLayout_9.addWidget(self.spinBox_maxInfectionDays) self.verticalLayout_3.addLayout(self.horizontalLayout_9) self.horizontalLayout_10 = QtWidgets.QHBoxLayout() self.horizontalLayout_10.setObjectName("horizontalLayout_10") self.label_ImmunePercentage = QtWidgets.QLabel(self.groupBox_2) self.label_ImmunePercentage.setObjectName("label_ImmunePercentage") self.horizontalLayout_10.addWidget(self.label_ImmunePercentage) self.spinBox_ImmunePercentage = QtWidgets.QSpinBox(self.groupBox_2) self.spinBox_ImmunePercentage.setObjectName("spinBox_ImmunePercentage") self.horizontalLayout_10.addWidget(self.spinBox_ImmunePercentage) self.verticalLayout_3.addLayout(self.horizontalLayout_10) self.horizontalLayout_11 = QtWidgets.QHBoxLayout() self.horizontalLayout_11.setObjectName("horizontalLayout_11") self.label_minImmuneDays = QtWidgets.QLabel(self.groupBox_2) self.label_minImmuneDays.setObjectName("label_minImmuneDays") self.horizontalLayout_11.addWidget(self.label_minImmuneDays) self.spinBox_minImmuneDays = QtWidgets.QSpinBox(self.groupBox_2) self.spinBox_minImmuneDays.setObjectName("spinBox_minImmuneDays") self.horizontalLayout_11.addWidget(self.spinBox_minImmuneDays) self.verticalLayout_3.addLayout(self.horizontalLayout_11) self.horizontalLayout_12 = QtWidgets.QHBoxLayout() self.horizontalLayout_12.setObjectName("horizontalLayout_12") self.label_maxImmuneDays = QtWidgets.QLabel(self.groupBox_2) self.label_maxImmuneDays.setObjectName("label_maxImmuneDays") self.horizontalLayout_12.addWidget(self.label_maxImmuneDays) self.spinBox_maxImmuneDays = QtWidgets.QSpinBox(self.groupBox_2) self.spinBox_maxImmuneDays.setObjectName("spinBox_maxImmuneDays") self.horizontalLayout_12.addWidget(self.spinBox_maxImmuneDays) self.verticalLayout_3.addLayout(self.horizontalLayout_12) self.horizontalLayout_18.addWidget(self.groupBox_2) self.groupBox_5 = QtWidgets.QGroupBox(Dialog) self.groupBox_5.setObjectName("groupBox_5") self.verticalLayout_9 = QtWidgets.QVBoxLayout(self.groupBox_5) self.verticalLayout_9.setObjectName("verticalLayout_9") self.horizontalLayout_19 = QtWidgets.QHBoxLayout() self.horizontalLayout_19.setObjectName("horizontalLayout_19") self.checkBox_activateVaccination = QtWidgets.QCheckBox( self.groupBox_5) self.checkBox_activateVaccination.setObjectName( "checkBox_activateVaccination") self.horizontalLayout_19.addWidget(self.checkBox_activateVaccination) self.verticalLayout_9.addLayout(self.horizontalLayout_19) self.horizontalLayout_16 = QtWidgets.QHBoxLayout() self.horizontalLayout_16.setObjectName("horizontalLayout_16") self.label_dateForVaccine = QtWidgets.QLabel(self.groupBox_5) self.label_dateForVaccine.setObjectName("label_dateForVaccine") self.horizontalLayout_16.addWidget(self.label_dateForVaccine) self.spinBox_dateForVaccine = QtWidgets.QSpinBox(self.groupBox_5) self.spinBox_dateForVaccine.setObjectName("spinBox_dateForVaccine") self.horizontalLayout_16.addWidget(self.spinBox_dateForVaccine) self.verticalLayout_9.addLayout(self.horizontalLayout_16) self.horizontalLayout_17 = QtWidgets.QHBoxLayout() self.horizontalLayout_17.setObjectName("horizontalLayout_17") self.label_vaccineSpeed = QtWidgets.QLabel(self.groupBox_5) self.label_vaccineSpeed.setObjectName("label_vaccineSpeed") self.horizontalLayout_17.addWidget(self.label_vaccineSpeed) self.spinBox_vaccineSpeed = QtWidgets.QSpinBox(self.groupBox_5) self.spinBox_vaccineSpeed.setObjectName("spinBox_vaccineSpeed") self.horizontalLayout_17.addWidget(self.spinBox_vaccineSpeed) self.verticalLayout_9.addLayout(self.horizontalLayout_17) self.horizontalLayout_20 = QtWidgets.QHBoxLayout() self.horizontalLayout_20.setObjectName("horizontalLayout_20") self.checkBox_healthyFirstVaccinated = QtWidgets.QCheckBox( self.groupBox_5) self.checkBox_healthyFirstVaccinated.setObjectName( "checkBox_healthyFirstVaccinated") self.horizontalLayout_20.addWidget( self.checkBox_healthyFirstVaccinated) self.verticalLayout_9.addLayout(self.horizontalLayout_20) self.horizontalLayout_18.addWidget(self.groupBox_5) self.groupBox_3 = QtWidgets.QGroupBox(Dialog) self.groupBox_3.setObjectName("groupBox_3") self.verticalLayout_4 = QtWidgets.QVBoxLayout(self.groupBox_3) self.verticalLayout_4.setObjectName("verticalLayout_4") self.horizontalLayout_13 = QtWidgets.QHBoxLayout() self.horizontalLayout_13.setObjectName("horizontalLayout_13") self.label_distanceRadius = QtWidgets.QLabel(self.groupBox_3) self.label_distanceRadius.setObjectName("label_distanceRadius") self.horizontalLayout_13.addWidget(self.label_distanceRadius) self.spinBox_distanceRadius = QtWidgets.QSpinBox(self.groupBox_3) self.spinBox_distanceRadius.setObjectName("spinBox_distanceRadius") self.horizontalLayout_13.addWidget(self.spinBox_distanceRadius) self.verticalLayout_4.addLayout(self.horizontalLayout_13) self.horizontalLayout_14 = QtWidgets.QHBoxLayout() self.horizontalLayout_14.setObjectName("horizontalLayout_14") self.label_quarantinePercentage = QtWidgets.QLabel(self.groupBox_3) self.label_quarantinePercentage.setObjectName( "label_quarantinePercentage") self.horizontalLayout_14.addWidget(self.label_quarantinePercentage) self.spinBox_quarantinePercentage = QtWidgets.QSpinBox(self.groupBox_3) self.spinBox_quarantinePercentage.setObjectName( "spinBox_quarantinePercentage") self.horizontalLayout_14.addWidget(self.spinBox_quarantinePercentage) self.verticalLayout_4.addLayout(self.horizontalLayout_14) self.horizontalLayout_18.addWidget(self.groupBox_3) self.verticalLayout.addLayout(self.horizontalLayout_18) self.pushButton = QtWidgets.QPushButton(Dialog) self.pushButton.setMinimumSize(QtCore.QSize(0, 30)) self.pushButton.setObjectName("pushButton") self.verticalLayout.addWidget(self.pushButton) self.retranslateUi(Dialog) QtCore.QMetaObject.connectSlotsByName(Dialog)
def setupUi(self, Dialog): Dialog.setObjectName("Dialog") Dialog.resize(739, 441) self.verticalLayout = QtWidgets.QVBoxLayout(Dialog) self.verticalLayout.setObjectName("verticalLayout") self.verticalLayout_2 = QtWidgets.QVBoxLayout() self.verticalLayout_2.setObjectName("verticalLayout_2") self.allHaveDiedLabel = QtWidgets.QLabel(Dialog) self.allHaveDiedLabel.setAlignment(QtCore.Qt.AlignCenter) self.allHaveDiedLabel.setObjectName("allHaveDiedLabel") self.verticalLayout_2.addWidget(self.allHaveDiedLabel) self.pandemicIsOverLabel = QtWidgets.QLabel(Dialog) self.pandemicIsOverLabel.setAutoFillBackground(False) self.pandemicIsOverLabel.setAlignment(QtCore.Qt.AlignCenter) self.pandemicIsOverLabel.setObjectName("pandemicIsOverLabel") self.verticalLayout_2.addWidget(self.pandemicIsOverLabel) self.horizontalLayout_5 = QtWidgets.QHBoxLayout() self.horizontalLayout_5.setObjectName("horizontalLayout_5") self.statsLabelEnd = QtWidgets.QLabel(Dialog) self.statsLabelEnd.setObjectName("statsLabelEnd") self.horizontalLayout_5.addWidget(self.statsLabelEnd) self.verticalLayout_3 = QtWidgets.QVBoxLayout() self.verticalLayout_3.setObjectName("verticalLayout_3") self.verticalLayout_4 = QtWidgets.QVBoxLayout() self.verticalLayout_4.setObjectName("verticalLayout_4") self.horizontalLayout_6 = QtWidgets.QHBoxLayout() self.horizontalLayout_6.setObjectName("horizontalLayout_6") self.deathsEndLabel = QtWidgets.QLabel(Dialog) font = QtGui.QFont() font.setBold(True) font.setWeight(75) self.deathsEndLabel.setFont(font) self.deathsEndLabel.setObjectName("deathsEndLabel") self.horizontalLayout_6.addWidget(self.deathsEndLabel) self.deathsEndLCD = QtWidgets.QLCDNumber(Dialog) self.deathsEndLCD.setObjectName("deathsEndLCD") self.horizontalLayout_6.addWidget(self.deathsEndLCD) self.verticalLayout_4.addLayout(self.horizontalLayout_6) self.horizontalLayout_7 = QtWidgets.QHBoxLayout() self.horizontalLayout_7.setObjectName("horizontalLayout_7") self.maxInfectedEndLabel = QtWidgets.QLabel(Dialog) font = QtGui.QFont() font.setBold(True) font.setWeight(75) self.maxInfectedEndLabel.setFont(font) self.maxInfectedEndLabel.setObjectName("maxInfectedEndLabel") self.horizontalLayout_7.addWidget(self.maxInfectedEndLabel) self.maxInfectedEndLCD = QtWidgets.QLCDNumber(Dialog) self.maxInfectedEndLCD.setObjectName("maxInfectedEndLCD") self.horizontalLayout_7.addWidget(self.maxInfectedEndLCD) self.verticalLayout_4.addLayout(self.horizontalLayout_7) self.horizontalLayout_8 = QtWidgets.QHBoxLayout() self.horizontalLayout_8.setObjectName("horizontalLayout_8") self.daysLabel = QtWidgets.QLabel(Dialog) font = QtGui.QFont() font.setBold(True) font.setWeight(75) self.daysLabel.setFont(font) self.daysLabel.setObjectName("daysLabel") self.horizontalLayout_8.addWidget(self.daysLabel) self.daysEndLCD = QtWidgets.QLCDNumber(Dialog) self.daysEndLCD.setObjectName("daysEndLCD") self.horizontalLayout_8.addWidget(self.daysEndLCD) self.verticalLayout_4.addLayout(self.horizontalLayout_8) self.graphicEndWidget = PlotWidget(Dialog) self.graphicEndWidget.setObjectName("graphicEndWidget") self.verticalLayout_4.addWidget(self.graphicEndWidget) self.verticalLayout_3.addLayout(self.verticalLayout_4) self.horizontalLayout_5.addLayout(self.verticalLayout_3) self.verticalLayout_2.addLayout(self.horizontalLayout_5) self.horizontalLayout_2 = QtWidgets.QHBoxLayout() self.horizontalLayout_2.setObjectName("horizontalLayout_2") self.closeEndButton = QtWidgets.QPushButton(Dialog) self.closeEndButton.setObjectName("closeEndButton") self.horizontalLayout_2.addWidget(self.closeEndButton) self.verticalLayout_2.addLayout(self.horizontalLayout_2) self.verticalLayout.addLayout(self.verticalLayout_2) self.retranslateUi(Dialog) QtCore.QMetaObject.connectSlotsByName(Dialog)
def setupUi(self, MainWindow): MainWindow.setObjectName("MainWindow") MainWindow.resize(875, 654) font = QtGui.QFont() font.setPointSize(8) MainWindow.setFont(font) icon = QtGui.QIcon() icon.addPixmap(QtGui.QPixmap("Icons/mechanical-arm.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) MainWindow.setWindowIcon(icon) MainWindow.setIconSize(QtCore.QSize(30, 30)) MainWindow.setToolButtonStyle(QtCore.Qt.ToolButtonIconOnly) self.centralwidget = QtWidgets.QWidget(MainWindow) self.centralwidget.setObjectName("centralwidget") self.tabWidget = QtWidgets.QTabWidget(self.centralwidget) self.tabWidget.setGeometry(QtCore.QRect(330, 10, 511, 591)) palette = QtGui.QPalette() brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.WindowText, brush) brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Button, brush) brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Light, brush) brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Midlight, brush) brush = QtGui.QBrush(QtGui.QColor(127, 127, 127)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Dark, brush) brush = QtGui.QBrush(QtGui.QColor(170, 170, 170)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Mid, brush) brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Text, brush) brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.BrightText, brush) brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.ButtonText, brush) 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(0, 0, 0)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Shadow, brush) brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.AlternateBase, brush) brush = QtGui.QBrush(QtGui.QColor(255, 255, 220)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.ToolTipBase, brush) brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.ToolTipText, brush) brush = QtGui.QBrush(QtGui.QColor(0, 0, 0, 128)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.PlaceholderText, brush) brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.WindowText, brush) brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Button, brush) brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Light, brush) brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Midlight, brush) brush = QtGui.QBrush(QtGui.QColor(127, 127, 127)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Dark, brush) brush = QtGui.QBrush(QtGui.QColor(170, 170, 170)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Mid, brush) brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Text, brush) brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.BrightText, brush) brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.ButtonText, 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(0, 0, 0)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Shadow, brush) brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.AlternateBase, brush) brush = QtGui.QBrush(QtGui.QColor(255, 255, 220)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.ToolTipBase, brush) brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.ToolTipText, brush) brush = QtGui.QBrush(QtGui.QColor(0, 0, 0, 128)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.PlaceholderText, brush) brush = QtGui.QBrush(QtGui.QColor(127, 127, 127)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.WindowText, brush) brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Button, brush) brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Light, brush) brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Midlight, brush) brush = QtGui.QBrush(QtGui.QColor(127, 127, 127)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Dark, brush) brush = QtGui.QBrush(QtGui.QColor(170, 170, 170)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Mid, brush) brush = QtGui.QBrush(QtGui.QColor(127, 127, 127)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Text, brush) brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.BrightText, brush) brush = QtGui.QBrush(QtGui.QColor(127, 127, 127)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.ButtonText, 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) brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Shadow, brush) brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.AlternateBase, brush) brush = QtGui.QBrush(QtGui.QColor(255, 255, 220)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.ToolTipBase, brush) brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.ToolTipText, brush) brush = QtGui.QBrush(QtGui.QColor(0, 0, 0, 128)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.PlaceholderText, brush) self.tabWidget.setPalette(palette) self.tabWidget.setTabBarAutoHide(False) self.tabWidget.setObjectName("tabWidget") self.Configure_Tab = QtWidgets.QWidget() self.Configure_Tab.setObjectName("Configure_Tab") self.gridLayoutWidget_2 = QtWidgets.QWidget(self.Configure_Tab) self.gridLayoutWidget_2.setGeometry(QtCore.QRect(10, 10, 481, 471)) self.gridLayoutWidget_2.setObjectName("gridLayoutWidget_2") self.DecodeGrid = QtWidgets.QGridLayout(self.gridLayoutWidget_2) self.DecodeGrid.setSizeConstraint(QtWidgets.QLayout.SetDefaultConstraint) self.DecodeGrid.setContentsMargins(0, 0, 0, 0) self.DecodeGrid.setObjectName("DecodeGrid") self.Regressor_Combo = QtWidgets.QComboBox(self.gridLayoutWidget_2) font = QtGui.QFont() font.setPointSize(16) self.Regressor_Combo.setFont(font) self.Regressor_Combo.setObjectName("Regressor_Combo") self.Regressor_Combo.addItem("") self.DecodeGrid.addWidget(self.Regressor_Combo, 2, 1, 1, 1) self.ApplyConfig_Button = QtWidgets.QPushButton(self.gridLayoutWidget_2) self.ApplyConfig_Button.setMaximumSize(QtCore.QSize(16777215, 40)) font = QtGui.QFont() font.setPointSize(16) self.ApplyConfig_Button.setFont(font) self.ApplyConfig_Button.setObjectName("ApplyConfig_Button") self.DecodeGrid.addWidget(self.ApplyConfig_Button, 7, 0, 1, 1) self.Class_Nums_Line = QtWidgets.QLineEdit(self.gridLayoutWidget_2) font = QtGui.QFont() font.setPointSize(16) self.Class_Nums_Line.setFont(font) self.Class_Nums_Line.setObjectName("Class_Nums_Line") self.DecodeGrid.addWidget(self.Class_Nums_Line, 4, 1, 1, 1) self.Classifier_Combo = QtWidgets.QComboBox(self.gridLayoutWidget_2) font = QtGui.QFont() font.setPointSize(16) self.Classifier_Combo.setFont(font) self.Classifier_Combo.setObjectName("Classifier_Combo") self.Classifier_Combo.addItem("") self.DecodeGrid.addWidget(self.Classifier_Combo, 3, 1, 1, 1) self.MAV_Sum_Label = QtWidgets.QLabel(self.gridLayoutWidget_2) self.MAV_Sum_Label.setMinimumSize(QtCore.QSize(0, 40)) self.MAV_Sum_Label.setMaximumSize(QtCore.QSize(16777215, 40)) font = QtGui.QFont() font.setPointSize(16) self.MAV_Sum_Label.setFont(font) self.MAV_Sum_Label.setAlignment(QtCore.Qt.AlignCenter) self.MAV_Sum_Label.setObjectName("MAV_Sum_Label") self.DecodeGrid.addWidget(self.MAV_Sum_Label, 5, 0, 1, 1, QtCore.Qt.AlignLeft) self.Parameters_Button = QtWidgets.QPushButton(self.gridLayoutWidget_2) self.Parameters_Button.setMaximumSize(QtCore.QSize(16777215, 40)) font = QtGui.QFont() font.setPointSize(16) self.Parameters_Button.setFont(font) self.Parameters_Button.setObjectName("Parameters_Button") self.DecodeGrid.addWidget(self.Parameters_Button, 6, 1, 1, 1) self.Classifier_Label = QtWidgets.QLabel(self.gridLayoutWidget_2) self.Classifier_Label.setMinimumSize(QtCore.QSize(0, 40)) self.Classifier_Label.setMaximumSize(QtCore.QSize(16777215, 40)) font = QtGui.QFont() font.setPointSize(16) self.Classifier_Label.setFont(font) self.Classifier_Label.setAlignment(QtCore.Qt.AlignCenter) self.Classifier_Label.setObjectName("Classifier_Label") self.DecodeGrid.addWidget(self.Classifier_Label, 3, 0, 1, 1, QtCore.Qt.AlignLeft) self.Hand_Mode_Label = QtWidgets.QLabel(self.gridLayoutWidget_2) self.Hand_Mode_Label.setMinimumSize(QtCore.QSize(0, 40)) self.Hand_Mode_Label.setMaximumSize(QtCore.QSize(16777215, 40)) font = QtGui.QFont() font.setPointSize(16) self.Hand_Mode_Label.setFont(font) self.Hand_Mode_Label.setObjectName("Hand_Mode_Label") self.DecodeGrid.addWidget(self.Hand_Mode_Label, 0, 0, 1, 1, QtCore.Qt.AlignLeft) self.Parameters_Label = QtWidgets.QLabel(self.gridLayoutWidget_2) self.Parameters_Label.setMinimumSize(QtCore.QSize(0, 40)) self.Parameters_Label.setMaximumSize(QtCore.QSize(16777215, 40)) font = QtGui.QFont() font.setPointSize(16) self.Parameters_Label.setFont(font) self.Parameters_Label.setAlignment(QtCore.Qt.AlignCenter) self.Parameters_Label.setObjectName("Parameters_Label") self.DecodeGrid.addWidget(self.Parameters_Label, 6, 0, 1, 1, QtCore.Qt.AlignLeft) self.Hand_Mode_Combo = QtWidgets.QComboBox(self.gridLayoutWidget_2) font = QtGui.QFont() font.setPointSize(16) self.Hand_Mode_Combo.setFont(font) self.Hand_Mode_Combo.setObjectName("Hand_Mode_Combo") self.Hand_Mode_Combo.addItem("") self.DecodeGrid.addWidget(self.Hand_Mode_Combo, 0, 1, 1, 1) self.Wrist_Label = QtWidgets.QLabel(self.gridLayoutWidget_2) self.Wrist_Label.setMinimumSize(QtCore.QSize(0, 40)) font = QtGui.QFont() font.setPointSize(16) self.Wrist_Label.setFont(font) self.Wrist_Label.setObjectName("Wrist_Label") self.DecodeGrid.addWidget(self.Wrist_Label, 1, 0, 1, 1, QtCore.Qt.AlignLeft) self.Wrist_Combo = QtWidgets.QComboBox(self.gridLayoutWidget_2) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.Wrist_Combo.sizePolicy().hasHeightForWidth()) self.Wrist_Combo.setSizePolicy(sizePolicy) font = QtGui.QFont() font.setPointSize(16) self.Wrist_Combo.setFont(font) self.Wrist_Combo.setObjectName("Wrist_Combo") self.Wrist_Combo.addItem("") self.DecodeGrid.addWidget(self.Wrist_Combo, 1, 1, 1, 1) self.MAV_Sum_Line = QtWidgets.QLineEdit(self.gridLayoutWidget_2) font = QtGui.QFont() font.setPointSize(16) self.MAV_Sum_Line.setFont(font) self.MAV_Sum_Line.setObjectName("MAV_Sum_Line") self.DecodeGrid.addWidget(self.MAV_Sum_Line, 5, 1, 1, 1) self.Regressor_Label = QtWidgets.QLabel(self.gridLayoutWidget_2) self.Regressor_Label.setMinimumSize(QtCore.QSize(0, 40)) self.Regressor_Label.setMaximumSize(QtCore.QSize(16777215, 40)) font = QtGui.QFont() font.setPointSize(16) self.Regressor_Label.setFont(font) self.Regressor_Label.setObjectName("Regressor_Label") self.DecodeGrid.addWidget(self.Regressor_Label, 2, 0, 1, 1, QtCore.Qt.AlignLeft) self.Class_Nums_Label = QtWidgets.QLabel(self.gridLayoutWidget_2) self.Class_Nums_Label.setMinimumSize(QtCore.QSize(0, 40)) self.Class_Nums_Label.setMaximumSize(QtCore.QSize(16777215, 40)) font = QtGui.QFont() font.setPointSize(16) self.Class_Nums_Label.setFont(font) self.Class_Nums_Label.setAlignment(QtCore.Qt.AlignCenter) self.Class_Nums_Label.setObjectName("Class_Nums_Label") self.DecodeGrid.addWidget(self.Class_Nums_Label, 4, 0, 1, 1, QtCore.Qt.AlignLeft) self.ParamsFile_Label = QtWidgets.QLabel(self.gridLayoutWidget_2) font = QtGui.QFont() font.setPointSize(10) font.setItalic(True) self.ParamsFile_Label.setFont(font) self.ParamsFile_Label.setScaledContents(True) self.ParamsFile_Label.setWordWrap(True) self.ParamsFile_Label.setObjectName("ParamsFile_Label") self.DecodeGrid.addWidget(self.ParamsFile_Label, 7, 1, 1, 1) self.Hand_Mode_Label.raise_() self.Hand_Mode_Combo.raise_() self.Wrist_Label.raise_() self.Regressor_Label.raise_() self.Wrist_Combo.raise_() self.Classifier_Label.raise_() self.Classifier_Combo.raise_() self.Regressor_Combo.raise_() self.Parameters_Label.raise_() self.Parameters_Button.raise_() self.Class_Nums_Line.raise_() self.Class_Nums_Label.raise_() self.MAV_Sum_Label.raise_() self.MAV_Sum_Line.raise_() self.ApplyConfig_Button.raise_() self.ParamsFile_Label.raise_() self.tabWidget.addTab(self.Configure_Tab, "") self.NomadTab = QtWidgets.QWidget() self.NomadTab.setObjectName("NomadTab") self.verticalLayoutWidget = QtWidgets.QWidget(self.NomadTab) self.verticalLayoutWidget.setGeometry(QtCore.QRect(0, 0, 501, 561)) self.verticalLayoutWidget.setObjectName("verticalLayoutWidget") self.Plot_Layout = QtWidgets.QVBoxLayout(self.verticalLayoutWidget) self.Plot_Layout.setContentsMargins(0, 0, 0, 0) self.Plot_Layout.setObjectName("Plot_Layout") self.Ch01_Plot = PlotWidget(self.verticalLayoutWidget) self.Ch01_Plot.setObjectName("Ch01_Plot") self.Plot_Layout.addWidget(self.Ch01_Plot) self.Ch02_Plot = PlotWidget(self.verticalLayoutWidget) self.Ch02_Plot.setObjectName("Ch02_Plot") self.Plot_Layout.addWidget(self.Ch02_Plot) self.Ch03_Plot = PlotWidget(self.verticalLayoutWidget) self.Ch03_Plot.setObjectName("Ch03_Plot") self.Plot_Layout.addWidget(self.Ch03_Plot) self.Ch04_Plot = PlotWidget(self.verticalLayoutWidget) self.Ch04_Plot.setObjectName("Ch04_Plot") self.Plot_Layout.addWidget(self.Ch04_Plot) self.Ch05_Plot = PlotWidget(self.verticalLayoutWidget) self.Ch05_Plot.setObjectName("Ch05_Plot") self.Plot_Layout.addWidget(self.Ch05_Plot) self.Ch06_Plot = PlotWidget(self.verticalLayoutWidget) self.Ch06_Plot.setObjectName("Ch06_Plot") self.Plot_Layout.addWidget(self.Ch06_Plot) self.Ch07_Plot = PlotWidget(self.verticalLayoutWidget) self.Ch07_Plot.setObjectName("Ch07_Plot") self.Plot_Layout.addWidget(self.Ch07_Plot) self.Ch08_Plot = PlotWidget(self.verticalLayoutWidget) self.Ch08_Plot.setObjectName("Ch08_Plot") self.Plot_Layout.addWidget(self.Ch08_Plot) self.Ch09_Plot = PlotWidget(self.verticalLayoutWidget) self.Ch09_Plot.setObjectName("Ch09_Plot") self.Plot_Layout.addWidget(self.Ch09_Plot) self.Ch10_Plot = PlotWidget(self.verticalLayoutWidget) self.Ch10_Plot.setObjectName("Ch10_Plot") self.Plot_Layout.addWidget(self.Ch10_Plot) self.Ch11_Plot = PlotWidget(self.verticalLayoutWidget) self.Ch11_Plot.setObjectName("Ch11_Plot") self.Plot_Layout.addWidget(self.Ch11_Plot) self.Ch12_Plot = PlotWidget(self.verticalLayoutWidget) self.Ch12_Plot.setObjectName("Ch12_Plot") self.Plot_Layout.addWidget(self.Ch12_Plot) self.tabWidget.addTab(self.NomadTab, "") self.DecodeTab = QtWidgets.QWidget() self.DecodeTab.setObjectName("DecodeTab") self.Recvd_WiSSCI_text = QtWidgets.QTextBrowser(self.DecodeTab) self.Recvd_WiSSCI_text.setGeometry(QtCore.QRect(0, 0, 501, 561)) self.Recvd_WiSSCI_text.setObjectName("Recvd_WiSSCI_text") self.tabWidget.addTab(self.DecodeTab, "") self.gridLayoutWidget = QtWidgets.QWidget(self.centralwidget) self.gridLayoutWidget.setGeometry(QtCore.QRect(10, 10, 312, 161)) self.gridLayoutWidget.setObjectName("gridLayoutWidget") self.StatusGrid = QtWidgets.QGridLayout(self.gridLayoutWidget) self.StatusGrid.setSizeConstraint(QtWidgets.QLayout.SetDefaultConstraint) self.StatusGrid.setContentsMargins(0, 0, 0, 0) self.StatusGrid.setObjectName("StatusGrid") self.ConnectBT_Button = QtWidgets.QPushButton(self.gridLayoutWidget) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.ConnectBT_Button.sizePolicy().hasHeightForWidth()) self.ConnectBT_Button.setSizePolicy(sizePolicy) self.ConnectBT_Button.setMaximumSize(QtCore.QSize(16777215, 40)) font = QtGui.QFont() font.setPointSize(16) self.ConnectBT_Button.setFont(font) self.ConnectBT_Button.setObjectName("ConnectBT_Button") self.StatusGrid.addWidget(self.ConnectBT_Button, 1, 0, 1, 1) self.BTStatus_LED = QtWidgets.QLabel(self.gridLayoutWidget) self.BTStatus_LED.setMaximumSize(QtCore.QSize(60, 60)) self.BTStatus_LED.setText("") self.BTStatus_LED.setPixmap(QtGui.QPixmap("Icons/led-red-on.png")) self.BTStatus_LED.setScaledContents(True) self.BTStatus_LED.setObjectName("BTStatus_LED") self.StatusGrid.addWidget(self.BTStatus_LED, 1, 1, 1, 1) self.ComPort_Combo = QtWidgets.QComboBox(self.gridLayoutWidget) font = QtGui.QFont() font.setPointSize(16) self.ComPort_Combo.setFont(font) self.ComPort_Combo.setObjectName("ComPort_Combo") self.ComPort_Combo.addItem("") self.StatusGrid.addWidget(self.ComPort_Combo, 0, 0, 1, 1) self.gridLayoutWidget_3 = QtWidgets.QWidget(self.centralwidget) self.gridLayoutWidget_3.setGeometry(QtCore.QRect(10, 210, 311, 193)) self.gridLayoutWidget_3.setObjectName("gridLayoutWidget_3") self.DataSrcGrid = QtWidgets.QGridLayout(self.gridLayoutWidget_3) self.DataSrcGrid.setSizeConstraint(QtWidgets.QLayout.SetDefaultConstraint) self.DataSrcGrid.setContentsMargins(0, 0, 0, 0) self.DataSrcGrid.setObjectName("DataSrcGrid") self.StopStreaming_Button = QtWidgets.QPushButton(self.gridLayoutWidget_3) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.StopStreaming_Button.sizePolicy().hasHeightForWidth()) self.StopStreaming_Button.setSizePolicy(sizePolicy) self.StopStreaming_Button.setMaximumSize(QtCore.QSize(16777215, 40)) font = QtGui.QFont() font.setPointSize(16) self.StopStreaming_Button.setFont(font) self.StopStreaming_Button.setObjectName("StopStreaming_Button") self.DataSrcGrid.addWidget(self.StopStreaming_Button, 2, 0, 1, 1) self.OfflineData_LED = QtWidgets.QLabel(self.gridLayoutWidget_3) self.OfflineData_LED.setMaximumSize(QtCore.QSize(60, 60)) self.OfflineData_LED.setText("") self.OfflineData_LED.setPixmap(QtGui.QPixmap("Icons/led-red-on.png")) self.OfflineData_LED.setScaledContents(True) self.OfflineData_LED.setObjectName("OfflineData_LED") self.DataSrcGrid.addWidget(self.OfflineData_LED, 1, 1, 1, 1) self.NomadStatus_LED = QtWidgets.QLabel(self.gridLayoutWidget_3) self.NomadStatus_LED.setMaximumSize(QtCore.QSize(60, 60)) self.NomadStatus_LED.setText("") self.NomadStatus_LED.setPixmap(QtGui.QPixmap("Icons/led-red-on.png")) self.NomadStatus_LED.setScaledContents(True) self.NomadStatus_LED.setObjectName("NomadStatus_LED") self.DataSrcGrid.addWidget(self.NomadStatus_LED, 0, 1, 1, 1) self.StartNomad_Button = QtWidgets.QPushButton(self.gridLayoutWidget_3) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.StartNomad_Button.sizePolicy().hasHeightForWidth()) self.StartNomad_Button.setSizePolicy(sizePolicy) self.StartNomad_Button.setMaximumSize(QtCore.QSize(16777215, 40)) font = QtGui.QFont() font.setPointSize(16) self.StartNomad_Button.setFont(font) self.StartNomad_Button.setObjectName("StartNomad_Button") self.DataSrcGrid.addWidget(self.StartNomad_Button, 0, 0, 1, 1) self.OfflineData_Button = QtWidgets.QPushButton(self.gridLayoutWidget_3) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.OfflineData_Button.sizePolicy().hasHeightForWidth()) self.OfflineData_Button.setSizePolicy(sizePolicy) self.OfflineData_Button.setMaximumSize(QtCore.QSize(16777215, 40)) font = QtGui.QFont() font.setPointSize(16) self.OfflineData_Button.setFont(font) self.OfflineData_Button.setObjectName("OfflineData_Button") self.DataSrcGrid.addWidget(self.OfflineData_Button, 1, 0, 1, 1) self.gridLayoutWidget_4 = QtWidgets.QWidget(self.centralwidget) self.gridLayoutWidget_4.setGeometry(QtCore.QRect(10, 440, 311, 131)) self.gridLayoutWidget_4.setObjectName("gridLayoutWidget_4") self.LoggingGrid = QtWidgets.QGridLayout(self.gridLayoutWidget_4) self.LoggingGrid.setSizeConstraint(QtWidgets.QLayout.SetDefaultConstraint) self.LoggingGrid.setContentsMargins(0, 0, 0, 0) self.LoggingGrid.setObjectName("LoggingGrid") self.StopLogging_Button = QtWidgets.QPushButton(self.gridLayoutWidget_4) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.StopLogging_Button.sizePolicy().hasHeightForWidth()) self.StopLogging_Button.setSizePolicy(sizePolicy) self.StopLogging_Button.setMaximumSize(QtCore.QSize(16777215, 40)) font = QtGui.QFont() font.setPointSize(16) self.StopLogging_Button.setFont(font) self.StopLogging_Button.setObjectName("StopLogging_Button") self.LoggingGrid.addWidget(self.StopLogging_Button, 1, 0, 1, 1) self.Logging_LED = QtWidgets.QLabel(self.gridLayoutWidget_4) self.Logging_LED.setMaximumSize(QtCore.QSize(60, 60)) self.Logging_LED.setText("") self.Logging_LED.setPixmap(QtGui.QPixmap("Icons/led-red-on.png")) self.Logging_LED.setScaledContents(True) self.Logging_LED.setObjectName("Logging_LED") self.LoggingGrid.addWidget(self.Logging_LED, 0, 1, 1, 1) self.StartLogging_Button = QtWidgets.QPushButton(self.gridLayoutWidget_4) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.StartLogging_Button.sizePolicy().hasHeightForWidth()) self.StartLogging_Button.setSizePolicy(sizePolicy) self.StartLogging_Button.setMaximumSize(QtCore.QSize(16777215, 40)) font = QtGui.QFont() font.setPointSize(16) self.StartLogging_Button.setFont(font) self.StartLogging_Button.setObjectName("StartLogging_Button") self.LoggingGrid.addWidget(self.StartLogging_Button, 0, 0, 1, 1) MainWindow.setCentralWidget(self.centralwidget) self.menubar = QtWidgets.QMenuBar(MainWindow) self.menubar.setGeometry(QtCore.QRect(0, 0, 875, 23)) self.menubar.setObjectName("menubar") MainWindow.setMenuBar(self.menubar) self.statusbar = QtWidgets.QStatusBar(MainWindow) self.statusbar.setEnabled(True) self.statusbar.setObjectName("statusbar") MainWindow.setStatusBar(self.statusbar) self.retranslateUi(MainWindow) self.tabWidget.setCurrentIndex(0) QtCore.QMetaObject.connectSlotsByName(MainWindow)
def setupUi(self, MainWindow): MainWindow.setObjectName("MainWindow") MainWindow.resize(691, 607) self.centralwidget = QtWidgets.QWidget(MainWindow) self.centralwidget.setObjectName("centralwidget") self.label = QtWidgets.QLabel(self.centralwidget) self.label.setGeometry(QtCore.QRect(20, 10, 171, 21)) font = QtGui.QFont() font.setPointSize(11) font.setBold(True) font.setWeight(75) self.label.setFont(font) self.label.setObjectName("label") self.label_2 = QtWidgets.QLabel(self.centralwidget) self.label_2.setGeometry(QtCore.QRect(20, 60, 171, 21)) font = QtGui.QFont() font.setPointSize(11) font.setBold(True) font.setWeight(75) self.label_2.setFont(font) self.label_2.setObjectName("label_2") self.lineEdit_2 = QtWidgets.QLineEdit(self.centralwidget) self.lineEdit_2.setGeometry(QtCore.QRect(20, 80, 151, 21)) self.lineEdit_2.setObjectName("lineEdit_2") self.label_3 = QtWidgets.QLabel(self.centralwidget) self.label_3.setGeometry(QtCore.QRect(20, 160, 171, 21)) font = QtGui.QFont() font.setPointSize(11) font.setBold(True) font.setWeight(75) self.label_3.setFont(font) self.label_3.setObjectName("label_3") self.label_4 = QtWidgets.QLabel(self.centralwidget) self.label_4.setGeometry(QtCore.QRect(20, 110, 171, 21)) font = QtGui.QFont() font.setPointSize(11) font.setBold(True) font.setWeight(75) self.label_4.setFont(font) self.label_4.setObjectName("label_4") self.label_5 = QtWidgets.QLabel(self.centralwidget) self.label_5.setGeometry(QtCore.QRect(20, 210, 101, 21)) font = QtGui.QFont() font.setPointSize(11) font.setBold(True) font.setWeight(75) self.label_5.setFont(font) self.label_5.setObjectName("label_5") self.label_6 = QtWidgets.QLabel(self.centralwidget) self.label_6.setGeometry(QtCore.QRect(330, 30, 171, 21)) font = QtGui.QFont() font.setPointSize(11) font.setBold(True) font.setWeight(75) self.label_6.setFont(font) self.label_6.setObjectName("label_6") self.label_7 = QtWidgets.QLabel(self.centralwidget) self.label_7.setGeometry(QtCore.QRect(330, 82, 171, 21)) font = QtGui.QFont() font.setPointSize(11) font.setBold(True) font.setWeight(75) self.label_7.setFont(font) self.label_7.setObjectName("label_7") self.label_8 = QtWidgets.QLabel(self.centralwidget) self.label_8.setGeometry(QtCore.QRect(310, 210, 171, 21)) font = QtGui.QFont() font.setPointSize(11) font.setBold(True) font.setWeight(75) self.label_8.setFont(font) self.label_8.setObjectName("label_8") self.pushButton = QtWidgets.QPushButton(self.centralwidget) self.pushButton.setGeometry(QtCore.QRect(510, 20, 131, 51)) font = QtGui.QFont() font.setPointSize(12) font.setBold(True) font.setWeight(75) self.pushButton.setFont(font) self.pushButton.setObjectName("pushButton") self.checkBox = QtWidgets.QCheckBox(self.centralwidget) self.checkBox.setGeometry(QtCore.QRect(330, 10, 141, 17)) font = QtGui.QFont() font.setPointSize(11) font.setBold(True) font.setWeight(75) self.checkBox.setFont(font) self.checkBox.setObjectName("checkBox") self.checkBox_2 = QtWidgets.QCheckBox(self.centralwidget) self.checkBox_2.setGeometry(QtCore.QRect(330, 180, 141, 17)) font = QtGui.QFont() font.setPointSize(11) font.setBold(True) font.setWeight(75) self.checkBox_2.setFont(font) self.checkBox_2.setObjectName("checkBox_2") self.pushButton_2 = QtWidgets.QPushButton(self.centralwidget) self.pushButton_2.setGeometry(QtCore.QRect(510, 80, 131, 51)) font = QtGui.QFont() font.setPointSize(12) font.setBold(True) font.setWeight(75) self.pushButton_2.setFont(font) self.pushButton_2.setObjectName("pushButton_2") self.graphWidget = PlotWidget(self.centralwidget) self.graphWidget.setGeometry(QtCore.QRect(20, 260, 421, 301)) self.graphWidget.setObjectName("graphWidget") self.lineEdit_3 = QtWidgets.QLineEdit(self.centralwidget) self.lineEdit_3.setGeometry(QtCore.QRect(20, 130, 151, 21)) self.lineEdit_3.setObjectName("lineEdit_3") self.lineEdit_4 = QtWidgets.QLineEdit(self.centralwidget) self.lineEdit_4.setGeometry(QtCore.QRect(20, 180, 151, 21)) self.lineEdit_4.setObjectName("lineEdit_4") self.lineEdit_5 = QtWidgets.QLineEdit(self.centralwidget) self.lineEdit_5.setGeometry(QtCore.QRect(20, 230, 111, 21)) self.lineEdit_5.setObjectName("lineEdit_5") self.lineEdit_6 = QtWidgets.QLineEdit(self.centralwidget) self.lineEdit_6.setGeometry(QtCore.QRect(330, 50, 171, 21)) self.lineEdit_6.setObjectName("lineEdit_6") self.lineEdit_7 = QtWidgets.QLineEdit(self.centralwidget) self.lineEdit_7.setGeometry(QtCore.QRect(330, 100, 171, 21)) self.lineEdit_7.setObjectName("lineEdit_7") self.lineEdit_8 = QtWidgets.QLineEdit(self.centralwidget) self.lineEdit_8.setGeometry(QtCore.QRect(310, 230, 201, 21)) font = QtGui.QFont() font.setItalic(False) self.lineEdit_8.setFont(font) self.lineEdit_8.setObjectName("lineEdit_8") self.label_9 = QtWidgets.QLabel(self.centralwidget) self.label_9.setGeometry(QtCore.QRect(450, 260, 61, 21)) font = QtGui.QFont() font.setPointSize(11) font.setBold(True) font.setWeight(75) self.label_9.setFont(font) self.label_9.setObjectName("label_9") self.lineEdit_9 = QtWidgets.QLineEdit(self.centralwidget) self.lineEdit_9.setGeometry(QtCore.QRect(450, 280, 131, 21)) self.lineEdit_9.setObjectName("lineEdit_9") self.lineEdit_10 = QtWidgets.QLineEdit(self.centralwidget) self.lineEdit_10.setGeometry(QtCore.QRect(450, 330, 131, 21)) self.lineEdit_10.setText("") self.lineEdit_10.setObjectName("lineEdit_10") self.label_10 = QtWidgets.QLabel(self.centralwidget) self.label_10.setGeometry(QtCore.QRect(450, 310, 91, 21)) font = QtGui.QFont() font.setPointSize(11) font.setBold(True) font.setWeight(75) self.label_10.setFont(font) self.label_10.setObjectName("label_10") self.lineEdit_11 = QtWidgets.QLineEdit(self.centralwidget) self.lineEdit_11.setGeometry(QtCore.QRect(450, 380, 131, 21)) self.lineEdit_11.setText("") self.lineEdit_11.setObjectName("lineEdit_11") self.label_11 = QtWidgets.QLabel(self.centralwidget) self.label_11.setGeometry(QtCore.QRect(450, 360, 91, 21)) font = QtGui.QFont() font.setPointSize(11) font.setBold(True) font.setWeight(75) self.label_11.setFont(font) self.label_11.setObjectName("label_11") self.lineEdit_12 = QtWidgets.QLineEdit(self.centralwidget) self.lineEdit_12.setGeometry(QtCore.QRect(450, 430, 131, 21)) self.lineEdit_12.setText("") self.lineEdit_12.setObjectName("lineEdit_12") self.label_12 = QtWidgets.QLabel(self.centralwidget) self.label_12.setGeometry(QtCore.QRect(450, 410, 91, 21)) font = QtGui.QFont() font.setPointSize(11) font.setBold(True) font.setWeight(75) self.label_12.setFont(font) self.label_12.setObjectName("label_12") self.pushButton_3 = QtWidgets.QPushButton(self.centralwidget) self.pushButton_3.setGeometry(QtCore.QRect(390, 170, 111, 31)) font = QtGui.QFont() font.setPointSize(10) font.setBold(False) font.setWeight(50) self.pushButton_3.setFont(font) self.pushButton_3.setObjectName("pushButton_3") self.checkBox_3 = QtWidgets.QCheckBox(self.centralwidget) self.checkBox_3.setGeometry(QtCore.QRect(330, 140, 161, 17)) font = QtGui.QFont() font.setPointSize(11) font.setBold(True) font.setWeight(75) self.checkBox_3.setFont(font) self.checkBox_3.setObjectName("checkBox_3") self.lineEdit_13 = QtWidgets.QLineEdit(self.centralwidget) self.lineEdit_13.setGeometry(QtCore.QRect(150, 230, 111, 21)) self.lineEdit_13.setObjectName("lineEdit_13") self.label_13 = QtWidgets.QLabel(self.centralwidget) self.label_13.setGeometry(QtCore.QRect(150, 210, 151, 21)) font = QtGui.QFont() font.setPointSize(11) font.setBold(True) font.setWeight(75) self.label_13.setFont(font) self.label_13.setObjectName("label_13") self.comboBox_2 = QtWidgets.QComboBox(self.centralwidget) self.comboBox_2.setGeometry(QtCore.QRect(20, 30, 151, 22)) self.comboBox_2.setObjectName("comboBox_2") self.comboBox_2.addItem("") self.comboBox_2.addItem("") self.comboBox_3 = QtWidgets.QComboBox(self.centralwidget) self.comboBox_3.setGeometry(QtCore.QRect(190, 30, 131, 22)) self.comboBox_3.setObjectName("comboBox_3") self.comboBox_3.addItem("") self.comboBox_3.addItem("") self.comboBox_3.addItem("") self.comboBox_3.addItem("") self.comboBox_3.addItem("") self.comboBox_3.addItem("") self.comboBox_3.addItem("") self.comboBox_3.addItem("") self.comboBox_3.addItem("") self.label_14 = QtWidgets.QLabel(self.centralwidget) self.label_14.setGeometry(QtCore.QRect(190, 10, 121, 21)) font = QtGui.QFont() font.setPointSize(11) font.setBold(True) font.setWeight(75) self.label_14.setFont(font) self.label_14.setObjectName("label_14") MainWindow.setCentralWidget(self.centralwidget) self.menubar = QtWidgets.QMenuBar(MainWindow) self.menubar.setGeometry(QtCore.QRect(0, 0, 691, 21)) self.menubar.setObjectName("menubar") self.menuResistencia_vsCampo = QtWidgets.QMenu(self.menubar) self.menuResistencia_vsCampo.setObjectName("menuResistencia_vsCampo") MainWindow.setMenuBar(self.menubar) self.statusbar = QtWidgets.QStatusBar(MainWindow) self.statusbar.setObjectName("statusbar") MainWindow.setStatusBar(self.statusbar) self.menubar.addAction(self.menuResistencia_vsCampo.menuAction()) self.retranslateUi(MainWindow) QtCore.QMetaObject.connectSlotsByName(MainWindow)
def setupUi(self, keithleyOscillo): keithleyOscillo.setObjectName("keithleyOscillo") keithleyOscillo.resize(978, 725) self.verticalLayout = QtWidgets.QVBoxLayout(keithleyOscillo) self.verticalLayout.setObjectName("verticalLayout") self.gridLayout = QtWidgets.QGridLayout() self.gridLayout.setObjectName("gridLayout") self.label_5 = QtWidgets.QLabel(keithleyOscillo) self.label_5.setStyleSheet("font: 40pt \"MS Shell Dlg 2\";") self.label_5.setObjectName("label_5") self.gridLayout.addWidget(self.label_5, 0, 6, 1, 1) spacerItem = QtWidgets.QSpacerItem(50, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.gridLayout.addItem(spacerItem, 0, 12, 1, 1) self.verticalLayout_2 = QtWidgets.QVBoxLayout() self.verticalLayout_2.setObjectName("verticalLayout_2") self.horizontalLayout = QtWidgets.QHBoxLayout() self.horizontalLayout.setObjectName("horizontalLayout") spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout.addItem(spacerItem1) self.label = QtWidgets.QLabel(keithleyOscillo) self.label.setObjectName("label") self.horizontalLayout.addWidget(self.label) self.min = QtWidgets.QDoubleSpinBox(keithleyOscillo) self.min.setDecimals(3) self.min.setMinimum(-100.0) self.min.setMaximum(100.0) self.min.setObjectName("min") self.horizontalLayout.addWidget(self.min) self.label_2 = QtWidgets.QLabel(keithleyOscillo) self.label_2.setObjectName("label_2") self.horizontalLayout.addWidget(self.label_2) self.max = QtWidgets.QDoubleSpinBox(keithleyOscillo) self.max.setDecimals(3) self.max.setMinimum(-100.0) self.max.setMaximum(100.0) self.max.setProperty("value", 5.0) self.max.setObjectName("max") self.horizontalLayout.addWidget(self.max) self.rangeAutoscaleBox = QtWidgets.QCheckBox(keithleyOscillo) self.rangeAutoscaleBox.setObjectName("rangeAutoscaleBox") self.horizontalLayout.addWidget(self.rangeAutoscaleBox) self.verticalLayout_2.addLayout(self.horizontalLayout) self.horizontalLayout_5 = QtWidgets.QHBoxLayout() self.horizontalLayout_5.setObjectName("horizontalLayout_5") spacerItem2 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_5.addItem(spacerItem2) self.label_6 = QtWidgets.QLabel(keithleyOscillo) self.label_6.setObjectName("label_6") self.horizontalLayout_5.addWidget(self.label_6) self.scalingFactor = QtWidgets.QDoubleSpinBox(keithleyOscillo) self.scalingFactor.setMinimumSize(QtCore.QSize(100, 20)) self.scalingFactor.setMaximumSize(QtCore.QSize(100, 20)) self.scalingFactor.setDecimals(6) self.scalingFactor.setMaximum(999999999.999999) self.scalingFactor.setProperty("value", 1.0) self.scalingFactor.setObjectName("scalingFactor") self.horizontalLayout_5.addWidget(self.scalingFactor) self.verticalLayout_2.addLayout(self.horizontalLayout_5) self.horizontalLayout_2 = QtWidgets.QHBoxLayout() self.horizontalLayout_2.setObjectName("horizontalLayout_2") spacerItem3 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_2.addItem(spacerItem3) self.label_4 = QtWidgets.QLabel(keithleyOscillo) self.label_4.setObjectName("label_4") self.horizontalLayout_2.addWidget(self.label_4) self.tStep = QtWidgets.QDoubleSpinBox(keithleyOscillo) self.tStep.setDecimals(3) self.tStep.setMinimum(0.01) self.tStep.setSingleStep(0.01) self.tStep.setProperty("value", 0.02) self.tStep.setObjectName("tStep") self.horizontalLayout_2.addWidget(self.tStep) self.label_3 = QtWidgets.QLabel(keithleyOscillo) self.label_3.setObjectName("label_3") self.horizontalLayout_2.addWidget(self.label_3) self.tWindow = QtWidgets.QDoubleSpinBox(keithleyOscillo) self.tWindow.setDecimals(3) self.tWindow.setMinimum(0.001) self.tWindow.setProperty("value", 10.0) self.tWindow.setObjectName("tWindow") self.horizontalLayout_2.addWidget(self.tWindow) self.verticalLayout_2.addLayout(self.horizontalLayout_2) self.gridLayout.addLayout(self.verticalLayout_2, 0, 0, 1, 1) spacerItem4 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.gridLayout.addItem(spacerItem4, 0, 1, 1, 1) spacerItem5 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.gridLayout.addItem(spacerItem5, 0, 7, 1, 1) self.nbReading = QtWidgets.QLCDNumber(keithleyOscillo) self.nbReading.setMinimumSize(QtCore.QSize(300, 100)) font = QtGui.QFont() font.setKerning(True) font.setStyleStrategy(QtGui.QFont.PreferDefault) self.nbReading.setFont(font) self.nbReading.setLayoutDirection(QtCore.Qt.LeftToRight) self.nbReading.setAutoFillBackground(True) self.nbReading.setSmallDecimalPoint(False) self.nbReading.setNumDigits(8) self.nbReading.setSegmentStyle(QtWidgets.QLCDNumber.Flat) self.nbReading.setProperty("value", 11.0) self.nbReading.setProperty("intValue", 11) self.nbReading.setObjectName("nbReading") self.gridLayout.addWidget(self.nbReading, 0, 5, 1, 1) self.verticalLayout_5 = QtWidgets.QVBoxLayout() self.verticalLayout_5.setObjectName("verticalLayout_5") self.horizontalLayout_3 = QtWidgets.QHBoxLayout() self.horizontalLayout_3.setObjectName("horizontalLayout_3") self.label_8 = QtWidgets.QLabel(keithleyOscillo) font = QtGui.QFont() font.setPointSize(20) self.label_8.setFont(font) self.label_8.setStyleSheet("color: rgb(0, 0, 255);") self.label_8.setAlignment(QtCore.Qt.AlignCenter) self.label_8.setObjectName("label_8") self.horizontalLayout_3.addWidget(self.label_8) self.nbMinEnabled = QtWidgets.QCheckBox(keithleyOscillo) self.nbMinEnabled.setText("") self.nbMinEnabled.setChecked(True) self.nbMinEnabled.setObjectName("nbMinEnabled") self.horizontalLayout_3.addWidget(self.nbMinEnabled) self.nbMinReadingReset = QtWidgets.QPushButton(keithleyOscillo) self.nbMinReadingReset.setMinimumSize(QtCore.QSize(60, 30)) self.nbMinReadingReset.setMaximumSize(QtCore.QSize(60, 30)) self.nbMinReadingReset.setObjectName("nbMinReadingReset") self.horizontalLayout_3.addWidget(self.nbMinReadingReset) self.verticalLayout_5.addLayout(self.horizontalLayout_3) self.nbMinReading = QtWidgets.QLCDNumber(keithleyOscillo) self.nbMinReading.setMinimumSize(QtCore.QSize(150, 0)) self.nbMinReading.setSmallDecimalPoint(False) self.nbMinReading.setNumDigits(8) self.nbMinReading.setSegmentStyle(QtWidgets.QLCDNumber.Flat) self.nbMinReading.setProperty("value", 0.0) self.nbMinReading.setObjectName("nbMinReading") self.verticalLayout_5.addWidget(self.nbMinReading) self.gridLayout.addLayout(self.verticalLayout_5, 0, 9, 1, 1) self.verticalLayout_4 = QtWidgets.QVBoxLayout() self.verticalLayout_4.setObjectName("verticalLayout_4") self.horizontalLayout_6 = QtWidgets.QHBoxLayout() self.horizontalLayout_6.setObjectName("horizontalLayout_6") self.label_7 = QtWidgets.QLabel(keithleyOscillo) font = QtGui.QFont() font.setFamily("MS Shell Dlg 2") font.setPointSize(20) font.setBold(False) font.setItalic(False) font.setWeight(50) self.label_7.setFont(font) self.label_7.setStyleSheet("font: 20pt \"MS Shell Dlg 2\";\n" "color: rgb(255, 0, 0);") self.label_7.setAlignment(QtCore.Qt.AlignCenter) self.label_7.setObjectName("label_7") self.horizontalLayout_6.addWidget(self.label_7) self.nbMaxEnabled = QtWidgets.QCheckBox(keithleyOscillo) self.nbMaxEnabled.setText("") self.nbMaxEnabled.setChecked(True) self.nbMaxEnabled.setObjectName("nbMaxEnabled") self.horizontalLayout_6.addWidget(self.nbMaxEnabled) self.nbMaxReadingReset = QtWidgets.QPushButton(keithleyOscillo) self.nbMaxReadingReset.setMinimumSize(QtCore.QSize(60, 30)) self.nbMaxReadingReset.setMaximumSize(QtCore.QSize(60, 30)) self.nbMaxReadingReset.setStyleSheet("") self.nbMaxReadingReset.setObjectName("nbMaxReadingReset") self.horizontalLayout_6.addWidget(self.nbMaxReadingReset) self.verticalLayout_4.addLayout(self.horizontalLayout_6) self.nbMaxReading = QtWidgets.QLCDNumber(keithleyOscillo) self.nbMaxReading.setMinimumSize(QtCore.QSize(150, 0)) self.nbMaxReading.setSmallDecimalPoint(False) self.nbMaxReading.setNumDigits(8) self.nbMaxReading.setSegmentStyle(QtWidgets.QLCDNumber.Flat) self.nbMaxReading.setProperty("value", 0.0) self.nbMaxReading.setObjectName("nbMaxReading") self.verticalLayout_4.addWidget(self.nbMaxReading) self.gridLayout.addLayout(self.verticalLayout_4, 0, 10, 1, 1) self.verticalLayout.addLayout(self.gridLayout) self.graphicsView = PlotWidget(keithleyOscillo) self.graphicsView.setObjectName("graphicsView") self.verticalLayout.addWidget(self.graphicsView) self.retranslateUi(keithleyOscillo) QtCore.QMetaObject.connectSlotsByName(keithleyOscillo) keithleyOscillo.setTabOrder(self.min, self.max) keithleyOscillo.setTabOrder(self.max, self.rangeAutoscaleBox) keithleyOscillo.setTabOrder(self.rangeAutoscaleBox, self.scalingFactor) keithleyOscillo.setTabOrder(self.scalingFactor, self.tStep) keithleyOscillo.setTabOrder(self.tStep, self.tWindow) keithleyOscillo.setTabOrder(self.tWindow, self.nbMaxEnabled) keithleyOscillo.setTabOrder(self.nbMaxEnabled, self.nbMaxReadingReset) keithleyOscillo.setTabOrder(self.nbMaxReadingReset, self.nbMinEnabled) keithleyOscillo.setTabOrder(self.nbMinEnabled, self.nbMinReadingReset) keithleyOscillo.setTabOrder(self.nbMinReadingReset, self.graphicsView)
def setupUi(self, MainWindow): MainWindow.setObjectName("MainWindow") MainWindow.resize(1076, 749) self.centralwidget = QtWidgets.QWidget(MainWindow) self.centralwidget.setObjectName("centralwidget") self.gridLayout = QtWidgets.QGridLayout(self.centralwidget) self.gridLayout.setObjectName("gridLayout") self.verticalLayout_3 = QtWidgets.QVBoxLayout() self.verticalLayout_3.setObjectName("verticalLayout_3") self.pwm3View = PlotWidget(self.centralwidget) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.pwm3View.sizePolicy().hasHeightForWidth()) self.pwm3View.setSizePolicy(sizePolicy) self.pwm3View.setObjectName("pwm3View") self.verticalLayout_3.addWidget(self.pwm3View) self.gridLayout.addLayout(self.verticalLayout_3, 2, 0, 1, 1) self.verticalLayout = QtWidgets.QVBoxLayout() self.verticalLayout.setObjectName("verticalLayout") self.pwm1View = PlotWidget(self.centralwidget) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.pwm1View.sizePolicy().hasHeightForWidth()) self.pwm1View.setSizePolicy(sizePolicy) self.pwm1View.setObjectName("pwm1View") self.verticalLayout.addWidget(self.pwm1View) self.gridLayout.addLayout(self.verticalLayout, 0, 0, 1, 1) self.verticalLayout_2 = QtWidgets.QVBoxLayout() self.verticalLayout_2.setObjectName("verticalLayout_2") self.pwm2View = PlotWidget(self.centralwidget) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.pwm2View.sizePolicy().hasHeightForWidth()) self.pwm2View.setSizePolicy(sizePolicy) self.pwm2View.setObjectName("pwm2View") self.verticalLayout_2.addWidget(self.pwm2View) self.gridLayout.addLayout(self.verticalLayout_2, 1, 0, 1, 1) self.verticalLayout_4 = QtWidgets.QVBoxLayout() self.verticalLayout_4.setSizeConstraint( QtWidgets.QLayout.SetMaximumSize) self.verticalLayout_4.setContentsMargins(-1, 0, -1, -1) self.verticalLayout_4.setObjectName("verticalLayout_4") self.groupBox = QtWidgets.QGroupBox(self.centralwidget) self.groupBox.setEnabled(True) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.groupBox.sizePolicy().hasHeightForWidth()) self.groupBox.setSizePolicy(sizePolicy) self.groupBox.setMinimumSize(QtCore.QSize(0, 100)) self.groupBox.setBaseSize(QtCore.QSize(0, 105)) self.groupBox.setAlignment(QtCore.Qt.AlignCenter) self.groupBox.setObjectName("groupBox") self.label = QtWidgets.QLabel(self.groupBox) self.label.setGeometry(QtCore.QRect(10, 60, 49, 16)) self.label.setObjectName("label") self.label_2 = QtWidgets.QLabel(self.groupBox) self.label_2.setGeometry(QtCore.QRect(10, 90, 49, 16)) self.label_2.setObjectName("label_2") self.label_3 = QtWidgets.QLabel(self.groupBox) self.label_3.setGeometry(QtCore.QRect(10, 120, 49, 16)) self.label_3.setObjectName("label_3") self.edit_duty1 = QtWidgets.QLineEdit(self.groupBox) self.edit_duty1.setGeometry(QtCore.QRect(70, 60, 71, 21)) self.edit_duty1.setObjectName("edit_duty1") self.sl_pwm1 = QtWidgets.QSlider(self.groupBox) self.sl_pwm1.setGeometry(QtCore.QRect(210, 60, 160, 20)) self.sl_pwm1.setMaximum(100) self.sl_pwm1.setOrientation(QtCore.Qt.Horizontal) self.sl_pwm1.setTickPosition(QtWidgets.QSlider.TicksBelow) self.sl_pwm1.setObjectName("sl_pwm1") self.pb_Test = QtWidgets.QPushButton(self.groupBox) self.pb_Test.setGeometry(QtCore.QRect(960, 80, 84, 21)) self.pb_Test.setObjectName("pb_Test") self.sl_pwm3 = QtWidgets.QSlider(self.groupBox) self.sl_pwm3.setGeometry(QtCore.QRect(210, 120, 160, 20)) self.sl_pwm3.setOrientation(QtCore.Qt.Horizontal) self.sl_pwm3.setTickPosition(QtWidgets.QSlider.TicksBelow) self.sl_pwm3.setObjectName("sl_pwm3") self.sl_pwm2 = QtWidgets.QSlider(self.groupBox) self.sl_pwm2.setGeometry(QtCore.QRect(210, 90, 160, 20)) self.sl_pwm2.setOrientation(QtCore.Qt.Horizontal) self.sl_pwm2.setTickPosition(QtWidgets.QSlider.TicksBelow) self.sl_pwm2.setObjectName("sl_pwm2") self.edit_duty2 = QtWidgets.QLineEdit(self.groupBox) self.edit_duty2.setGeometry(QtCore.QRect(70, 90, 71, 21)) self.edit_duty2.setObjectName("edit_duty2") self.edit_duty3 = QtWidgets.QLineEdit(self.groupBox) self.edit_duty3.setGeometry(QtCore.QRect(70, 120, 71, 21)) self.edit_duty3.setObjectName("edit_duty3") self.lockButton = QtWidgets.QRadioButton(self.groupBox) self.lockButton.setGeometry(QtCore.QRect(390, 90, 93, 20)) self.lockButton.setObjectName("lockButton") self.edit_freq = QtWidgets.QLineEdit(self.groupBox) self.edit_freq.setGeometry(QtCore.QRect(70, 30, 71, 21)) self.edit_freq.setObjectName("edit_freq") self.label_4 = QtWidgets.QLabel(self.groupBox) self.label_4.setGeometry(QtCore.QRect(10, 30, 49, 16)) self.label_4.setObjectName("label_4") self.comboBox = QtWidgets.QComboBox(self.groupBox) self.comboBox.setGeometry(QtCore.QRect(839, 30, 201, 21)) self.comboBox.setObjectName("comboBox") self.frame = QtWidgets.QFrame(self.groupBox) self.frame.setGeometry(QtCore.QRect(200, 20, 571, 30)) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.frame.sizePolicy().hasHeightForWidth()) self.frame.setSizePolicy(sizePolicy) self.frame.setFrameShape(QtWidgets.QFrame.NoFrame) self.frame.setFrameShadow(QtWidgets.QFrame.Raised) self.frame.setLineWidth(0) self.frame.setObjectName("frame") self.f1Button = QtWidgets.QRadioButton(self.frame) self.f1Button.setGeometry(QtCore.QRect(190, 10, 93, 20)) self.f1Button.setObjectName("f1Button") self.f10Button = QtWidgets.QRadioButton(self.frame) self.f10Button.setGeometry(QtCore.QRect(280, 10, 93, 20)) self.f10Button.setObjectName("f10Button") self.freqSlider = QtWidgets.QSlider(self.frame) self.freqSlider.setGeometry(QtCore.QRect(10, 10, 160, 20)) self.freqSlider.setMaximum(999) self.freqSlider.setOrientation(QtCore.Qt.Horizontal) self.freqSlider.setObjectName("freqSlider") self.f100Button = QtWidgets.QRadioButton(self.frame) self.f100Button.setGeometry(QtCore.QRect(370, 10, 93, 20)) self.f100Button.setObjectName("f100Button") self.f1000Button = QtWidgets.QRadioButton(self.frame) self.f1000Button.setGeometry(QtCore.QRect(470, 10, 93, 20)) self.f1000Button.setObjectName("f1000Button") self.label_5 = QtWidgets.QLabel(self.groupBox) self.label_5.setGeometry(QtCore.QRect(150, 63, 49, 16)) self.label_5.setObjectName("label_5") self.label_6 = QtWidgets.QLabel(self.groupBox) self.label_6.setGeometry(QtCore.QRect(150, 93, 49, 16)) self.label_6.setObjectName("label_6") self.label_7 = QtWidgets.QLabel(self.groupBox) self.label_7.setGeometry(QtCore.QRect(150, 123, 49, 16)) self.label_7.setObjectName("label_7") self.freqLabel = QtWidgets.QLabel(self.groupBox) self.freqLabel.setGeometry(QtCore.QRect(150, 33, 49, 16)) self.freqLabel.setObjectName("freqLabel") self.setButton = QtWidgets.QPushButton(self.groupBox) self.setButton.setGeometry(QtCore.QRect(470, 90, 41, 21)) self.setButton.setObjectName("setButton") self.verticalLayout_4.addWidget(self.groupBox) self.gridLayout.addLayout(self.verticalLayout_4, 3, 0, 1, 1) MainWindow.setCentralWidget(self.centralwidget) self.menubar = QtWidgets.QMenuBar(MainWindow) self.menubar.setGeometry(QtCore.QRect(0, 0, 1076, 28)) self.menubar.setObjectName("menubar") self.menuFile = QtWidgets.QMenu(self.menubar) self.menuFile.setObjectName("menuFile") 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.actionTest = QtWidgets.QAction(MainWindow) self.actionTest.setObjectName("actionTest") self.menuFile.addSeparator() self.menuFile.addAction(self.actionExit) self.menubar.addAction(self.menuFile.menuAction()) self.retranslateUi(MainWindow) QtCore.QMetaObject.connectSlotsByName(MainWindow) MainWindow.setTabOrder(self.edit_freq, self.edit_duty1) MainWindow.setTabOrder(self.edit_duty1, self.edit_duty2) MainWindow.setTabOrder(self.edit_duty2, self.edit_duty3) MainWindow.setTabOrder(self.edit_duty3, self.setButton) MainWindow.setTabOrder(self.setButton, self.lockButton) MainWindow.setTabOrder(self.lockButton, self.sl_pwm3) MainWindow.setTabOrder(self.sl_pwm3, self.comboBox) MainWindow.setTabOrder(self.comboBox, self.f1Button) MainWindow.setTabOrder(self.f1Button, self.pb_Test) MainWindow.setTabOrder(self.pb_Test, self.f10Button) MainWindow.setTabOrder(self.f10Button, self.f100Button) MainWindow.setTabOrder(self.f100Button, self.f1000Button) MainWindow.setTabOrder(self.f1000Button, self.freqSlider) MainWindow.setTabOrder(self.freqSlider, self.sl_pwm1) MainWindow.setTabOrder(self.sl_pwm1, self.sl_pwm2)
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 setupUi(self, MainWindow): MainWindow.setObjectName("MainWindow") MainWindow.resize(1397, 813) font = QtGui.QFont() font.setFamily("Ubuntu") font.setPointSize(10) MainWindow.setFont(font) MainWindow.setLayoutDirection(QtCore.Qt.LeftToRight) MainWindow.setAutoFillBackground(False) MainWindow.setTabShape(QtWidgets.QTabWidget.Rounded) self.centralWidget = QtWidgets.QWidget(MainWindow) self.centralWidget.setObjectName("centralWidget") self.verticalLayout_7 = QtWidgets.QVBoxLayout(self.centralWidget) self.verticalLayout_7.setContentsMargins(11, 11, 11, 11) self.verticalLayout_7.setSpacing(6) self.verticalLayout_7.setObjectName("verticalLayout_7") self.splitter_horizontal = QtWidgets.QSplitter(self.centralWidget) self.splitter_horizontal.setOrientation(QtCore.Qt.Horizontal) self.splitter_horizontal.setHandleWidth(10) self.splitter_horizontal.setChildrenCollapsible(False) self.splitter_horizontal.setObjectName("splitter_horizontal") self.splitter_meta_widget_left_pane = QtWidgets.QWidget(self.splitter_horizontal) self.splitter_meta_widget_left_pane.setMinimumSize(QtCore.QSize(250, 250)) self.splitter_meta_widget_left_pane.setMaximumSize(QtCore.QSize(16777215, 16777215)) self.splitter_meta_widget_left_pane.setBaseSize(QtCore.QSize(0, 0)) font = QtGui.QFont() font.setPointSize(10) self.splitter_meta_widget_left_pane.setFont(font) self.splitter_meta_widget_left_pane.setObjectName("splitter_meta_widget_left_pane") self.verticalLayout_5 = QtWidgets.QVBoxLayout(self.splitter_meta_widget_left_pane) self.verticalLayout_5.setContentsMargins(0, 0, 0, 0) self.verticalLayout_5.setSpacing(6) self.verticalLayout_5.setObjectName("verticalLayout_5") self.btnStop = QtWidgets.QPushButton(self.splitter_meta_widget_left_pane) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.btnStop.sizePolicy().hasHeightForWidth()) self.btnStop.setSizePolicy(sizePolicy) self.btnStop.setMinimumSize(QtCore.QSize(0, 150)) font = QtGui.QFont() font.setPointSize(14) self.btnStop.setFont(font) self.btnStop.setStyleSheet("background-color: red") self.btnStop.setObjectName("btnStop") self.verticalLayout_5.addWidget(self.btnStop) self.splitter_vertical = QtWidgets.QSplitter(self.splitter_meta_widget_left_pane) self.splitter_vertical.setOrientation(QtCore.Qt.Vertical) self.splitter_vertical.setHandleWidth(10) self.splitter_vertical.setChildrenCollapsible(False) self.splitter_vertical.setObjectName("splitter_vertical") self.splitter_meta_widget_pinned_plot = QtWidgets.QWidget(self.splitter_vertical) self.splitter_meta_widget_pinned_plot.setObjectName("splitter_meta_widget_pinned_plot") self.verticalLayout_8 = QtWidgets.QVBoxLayout(self.splitter_meta_widget_pinned_plot) self.verticalLayout_8.setContentsMargins(0, 0, 0, 0) self.verticalLayout_8.setSpacing(6) self.verticalLayout_8.setObjectName("verticalLayout_8") self.gbPinnedPlot = QtWidgets.QGroupBox(self.splitter_meta_widget_pinned_plot) self.gbPinnedPlot.setMinimumSize(QtCore.QSize(0, 250)) self.gbPinnedPlot.setMaximumSize(QtCore.QSize(16777215, 16777215)) font = QtGui.QFont() font.setFamily("MS Shell Dlg 2") font.setPointSize(10) self.gbPinnedPlot.setFont(font) self.gbPinnedPlot.setObjectName("gbPinnedPlot") self.verticalLayout_6 = QtWidgets.QVBoxLayout(self.gbPinnedPlot) self.verticalLayout_6.setContentsMargins(11, 11, 11, 11) self.verticalLayout_6.setSpacing(6) self.verticalLayout_6.setObjectName("verticalLayout_6") self.pltPinned = PlotWidget(self.gbPinnedPlot) font = QtGui.QFont() font.setPointSize(10) self.pltPinned.setFont(font) self.pltPinned.setObjectName("pltPinned") self.verticalLayout_6.addWidget(self.pltPinned) self.horizontalLayout_4 = QtWidgets.QHBoxLayout() self.horizontalLayout_4.setSpacing(6) self.horizontalLayout_4.setObjectName("horizontalLayout_4") spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_4.addItem(spacerItem) self.btnResetPinnedPlot = QtWidgets.QPushButton(self.gbPinnedPlot) self.btnResetPinnedPlot.setObjectName("btnResetPinnedPlot") self.horizontalLayout_4.addWidget(self.btnResetPinnedPlot) spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_4.addItem(spacerItem1) self.verticalLayout_6.addLayout(self.horizontalLayout_4) self.verticalLayout_8.addWidget(self.gbPinnedPlot) self.splitter_meta_widget_server_com = QtWidgets.QWidget(self.splitter_vertical) self.splitter_meta_widget_server_com.setObjectName("splitter_meta_widget_server_com") self.verticalLayout_9 = QtWidgets.QVBoxLayout(self.splitter_meta_widget_server_com) self.verticalLayout_9.setContentsMargins(0, 0, 0, 0) self.verticalLayout_9.setSpacing(6) self.verticalLayout_9.setObjectName("verticalLayout_9") self.groupBox = QtWidgets.QGroupBox(self.splitter_meta_widget_server_com) font = QtGui.QFont() font.setFamily("MS Shell Dlg 2") font.setPointSize(10) self.groupBox.setFont(font) self.groupBox.setObjectName("groupBox") self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.groupBox) self.verticalLayout_2.setContentsMargins(11, 11, 11, 11) self.verticalLayout_2.setSpacing(6) self.verticalLayout_2.setObjectName("verticalLayout_2") self.lblServPoll = QtWidgets.QLabel(self.groupBox) font = QtGui.QFont() font.setPointSize(10) font.setBold(True) font.setWeight(75) self.lblServPoll.setFont(font) self.lblServPoll.setObjectName("lblServPoll") self.verticalLayout_2.addWidget(self.lblServPoll) spacerItem2 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) self.verticalLayout_2.addItem(spacerItem2) self.horizontalLayout_3 = QtWidgets.QHBoxLayout() self.horizontalLayout_3.setSpacing(6) self.horizontalLayout_3.setObjectName("horizontalLayout_3") spacerItem3 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_3.addItem(spacerItem3) self.btnStartPause = QtWidgets.QPushButton(self.groupBox) self.btnStartPause.setObjectName("btnStartPause") self.horizontalLayout_3.addWidget(self.btnStartPause) self.btnStop_2 = QtWidgets.QPushButton(self.groupBox) self.btnStop_2.setObjectName("btnStop_2") self.horizontalLayout_3.addWidget(self.btnStop_2) spacerItem4 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_3.addItem(spacerItem4) self.verticalLayout_2.addLayout(self.horizontalLayout_3) self.verticalLayout_9.addWidget(self.groupBox) self.verticalLayout_5.addWidget(self.splitter_vertical) self.splitter_meta_widget_tab = QtWidgets.QWidget(self.splitter_horizontal) self.splitter_meta_widget_tab.setObjectName("splitter_meta_widget_tab") self.verticalLayout = QtWidgets.QVBoxLayout(self.splitter_meta_widget_tab) self.verticalLayout.setContentsMargins(0, 0, 0, 0) self.verticalLayout.setSpacing(6) self.verticalLayout.setObjectName("verticalLayout") self.tabMain = TabWindowWidget(self.splitter_meta_widget_tab) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.tabMain.sizePolicy().hasHeightForWidth()) self.tabMain.setSizePolicy(sizePolicy) self.tabMain.setMinimumSize(QtCore.QSize(500, 450)) font = QtGui.QFont() font.setFamily("MS Shell Dlg 2") font.setPointSize(10) self.tabMain.setFont(font) self.tabMain.setTabShape(QtWidgets.QTabWidget.Rounded) self.tabMain.setObjectName("tabMain") self.overview = QtWidgets.QWidget() self.overview.setObjectName("overview") self.gridLayout_2 = QtWidgets.QGridLayout(self.overview) self.gridLayout_2.setContentsMargins(11, 11, 11, 11) self.gridLayout_2.setSpacing(6) self.gridLayout_2.setObjectName("gridLayout_2") self.scroller = QtWidgets.QScrollArea(self.overview) font = QtGui.QFont() font.setPointSize(10) self.scroller.setFont(font) self.scroller.setAutoFillBackground(False) self.scroller.setFrameShape(QtWidgets.QFrame.NoFrame) self.scroller.setWidgetResizable(True) self.scroller.setObjectName("scroller") self.scrollAreaWidgetContents = QtWidgets.QWidget() self.scrollAreaWidgetContents.setGeometry(QtCore.QRect(0, 0, 472, 677)) self.scrollAreaWidgetContents.setObjectName("scrollAreaWidgetContents") self.gridLayout_6 = QtWidgets.QGridLayout(self.scrollAreaWidgetContents) self.gridLayout_6.setContentsMargins(0, 0, 0, 0) self.gridLayout_6.setSpacing(6) self.gridLayout_6.setObjectName("gridLayout_6") self.fmOverview = QtWidgets.QFrame(self.scrollAreaWidgetContents) font = QtGui.QFont() font.setFamily("MS Shell Dlg 2") font.setPointSize(10) self.fmOverview.setFont(font) self.fmOverview.setStyleSheet("") self.fmOverview.setFrameShape(QtWidgets.QFrame.StyledPanel) self.fmOverview.setFrameShadow(QtWidgets.QFrame.Plain) self.fmOverview.setObjectName("fmOverview") self.gridLayout_6.addWidget(self.fmOverview, 0, 0, 1, 1) self.scroller.setWidget(self.scrollAreaWidgetContents) self.gridLayout_2.addWidget(self.scroller, 0, 0, 1, 1) self.tabMain.addTab(self.overview, "") self.devices = QtWidgets.QWidget() self.devices.setObjectName("devices") self.gridLayout_5 = QtWidgets.QGridLayout(self.devices) self.gridLayout_5.setContentsMargins(11, 11, 11, 11) self.gridLayout_5.setSpacing(6) self.gridLayout_5.setObjectName("gridLayout_5") self.splitSettings = QtWidgets.QSplitter(self.devices) self.splitSettings.setOrientation(QtCore.Qt.Horizontal) self.splitSettings.setObjectName("splitSettings") self.layoutWidget = QtWidgets.QWidget(self.splitSettings) self.layoutWidget.setObjectName("layoutWidget") self.verticalLayout_4 = QtWidgets.QVBoxLayout(self.layoutWidget) self.verticalLayout_4.setContentsMargins(0, 0, 0, 0) self.verticalLayout_4.setSpacing(6) self.verticalLayout_4.setObjectName("verticalLayout_4") self.treeDevices = QtWidgets.QTreeWidget(self.layoutWidget) self.treeDevices.setFrameShadow(QtWidgets.QFrame.Plain) self.treeDevices.setColumnCount(2) self.treeDevices.setObjectName("treeDevices") self.treeDevices.headerItem().setText(0, "1") self.treeDevices.headerItem().setText(1, "2") self.treeDevices.header().setDefaultSectionSize(300) self.verticalLayout_4.addWidget(self.treeDevices) self.horizontalLayout = QtWidgets.QHBoxLayout() self.horizontalLayout.setSizeConstraint(QtWidgets.QLayout.SetDefaultConstraint) self.horizontalLayout.setContentsMargins(0, 0, 0, 0) self.horizontalLayout.setSpacing(6) self.horizontalLayout.setObjectName("horizontalLayout") self.btnExpand = QtWidgets.QPushButton(self.layoutWidget) self.btnExpand.setObjectName("btnExpand") self.horizontalLayout.addWidget(self.btnExpand) self.btnCollapse = QtWidgets.QPushButton(self.layoutWidget) self.btnCollapse.setObjectName("btnCollapse") self.horizontalLayout.addWidget(self.btnCollapse) self.verticalLayout_4.addLayout(self.horizontalLayout) self.fmDeviceSettings = QtWidgets.QFrame(self.splitSettings) self.fmDeviceSettings.setMinimumSize(QtCore.QSize(300, 0)) self.fmDeviceSettings.setBaseSize(QtCore.QSize(600, 0)) self.fmDeviceSettings.setFrameShape(QtWidgets.QFrame.StyledPanel) self.fmDeviceSettings.setFrameShadow(QtWidgets.QFrame.Plain) self.fmDeviceSettings.setObjectName("fmDeviceSettings") self.gridLayout_5.addWidget(self.splitSettings, 0, 0, 1, 1) self.tabMain.addTab(self.devices, "") self.plotting = QtWidgets.QWidget() self.plotting.setObjectName("plotting") self.verticalLayout_3 = QtWidgets.QVBoxLayout(self.plotting) self.verticalLayout_3.setContentsMargins(11, 11, 11, 11) self.verticalLayout_3.setSpacing(6) self.verticalLayout_3.setObjectName("verticalLayout_3") self.frame_4 = QtWidgets.QFrame(self.plotting) self.frame_4.setMaximumSize(QtCore.QSize(16777215, 50)) font = QtGui.QFont() font.setPointSize(10) self.frame_4.setFont(font) self.frame_4.setFrameShape(QtWidgets.QFrame.NoFrame) self.frame_4.setFrameShadow(QtWidgets.QFrame.Plain) self.frame_4.setLineWidth(1) self.frame_4.setObjectName("frame_4") self.horizontalLayout_2 = QtWidgets.QHBoxLayout(self.frame_4) self.horizontalLayout_2.setContentsMargins(0, 0, 0, 0) self.horizontalLayout_2.setSpacing(7) self.horizontalLayout_2.setObjectName("horizontalLayout_2") self.btnSetupDevicePlots = QtWidgets.QPushButton(self.frame_4) self.btnSetupDevicePlots.setMinimumSize(QtCore.QSize(0, 35)) font = QtGui.QFont() font.setPointSize(10) self.btnSetupDevicePlots.setFont(font) self.btnSetupDevicePlots.setFlat(False) self.btnSetupDevicePlots.setObjectName("btnSetupDevicePlots") self.horizontalLayout_2.addWidget(self.btnSetupDevicePlots) self.verticalLayout_3.addWidget(self.frame_4) self.scrollArea = QtWidgets.QScrollArea(self.plotting) font = QtGui.QFont() font.setPointSize(10) self.scrollArea.setFont(font) self.scrollArea.setFrameShape(QtWidgets.QFrame.NoFrame) self.scrollArea.setWidgetResizable(True) self.scrollArea.setObjectName("scrollArea") self.scrollAreaWidgetContents_2 = QtWidgets.QWidget() self.scrollAreaWidgetContents_2.setGeometry(QtCore.QRect(0, 0, 476, 640)) self.scrollAreaWidgetContents_2.setObjectName("scrollAreaWidgetContents_2") self.gridLayout_4 = QtWidgets.QGridLayout(self.scrollAreaWidgetContents_2) self.gridLayout_4.setContentsMargins(0, 0, 0, 0) self.gridLayout_4.setSpacing(6) self.gridLayout_4.setObjectName("gridLayout_4") self.fmPlots = QtWidgets.QFrame(self.scrollAreaWidgetContents_2) font = QtGui.QFont() font.setPointSize(10) self.fmPlots.setFont(font) self.fmPlots.setStyleSheet("") self.fmPlots.setFrameShape(QtWidgets.QFrame.StyledPanel) self.fmPlots.setFrameShadow(QtWidgets.QFrame.Plain) self.fmPlots.setObjectName("fmPlots") self.gridLayout_4.addWidget(self.fmPlots, 0, 0, 1, 1) self.scrollArea.setWidget(self.scrollAreaWidgetContents_2) self.verticalLayout_3.addWidget(self.scrollArea) self.tabMain.addTab(self.plotting, "") self.procedures = QtWidgets.QWidget() self.procedures.setObjectName("procedures") self.gridLayout_9 = QtWidgets.QGridLayout(self.procedures) self.gridLayout_9.setContentsMargins(11, 11, 11, 11) self.gridLayout_9.setSpacing(6) self.gridLayout_9.setObjectName("gridLayout_9") self.btnAddProcedure = QtWidgets.QPushButton(self.procedures) self.btnAddProcedure.setMinimumSize(QtCore.QSize(0, 35)) font = QtGui.QFont() font.setPointSize(10) self.btnAddProcedure.setFont(font) self.btnAddProcedure.setFlat(False) self.btnAddProcedure.setObjectName("btnAddProcedure") self.gridLayout_9.addWidget(self.btnAddProcedure, 0, 0, 1, 1) self.scrollArea_2 = QtWidgets.QScrollArea(self.procedures) self.scrollArea_2.setFrameShape(QtWidgets.QFrame.NoFrame) self.scrollArea_2.setWidgetResizable(True) self.scrollArea_2.setObjectName("scrollArea_2") self.scrollAreaWidgetContents_3 = QtWidgets.QWidget() self.scrollAreaWidgetContents_3.setGeometry(QtCore.QRect(0, 0, 476, 640)) self.scrollAreaWidgetContents_3.setObjectName("scrollAreaWidgetContents_3") self.gridLayout_10 = QtWidgets.QGridLayout(self.scrollAreaWidgetContents_3) self.gridLayout_10.setContentsMargins(0, 0, 0, 11) self.gridLayout_10.setSpacing(6) self.gridLayout_10.setObjectName("gridLayout_10") self.fmProcedures = QtWidgets.QFrame(self.scrollAreaWidgetContents_3) font = QtGui.QFont() font.setPointSize(10) self.fmProcedures.setFont(font) self.fmProcedures.setStyleSheet("") self.fmProcedures.setFrameShape(QtWidgets.QFrame.StyledPanel) self.fmProcedures.setFrameShadow(QtWidgets.QFrame.Plain) self.fmProcedures.setObjectName("fmProcedures") self.vboxProcedures = QtWidgets.QVBoxLayout(self.fmProcedures) self.vboxProcedures.setContentsMargins(11, 11, 11, 11) self.vboxProcedures.setSpacing(6) self.vboxProcedures.setObjectName("vboxProcedures") self.gridLayout_10.addWidget(self.fmProcedures, 0, 0, 1, 1) self.scrollArea_2.setWidget(self.scrollAreaWidgetContents_3) self.gridLayout_9.addWidget(self.scrollArea_2, 1, 0, 1, 1) self.tabMain.addTab(self.procedures, "") self.log = QtWidgets.QWidget() self.log.setObjectName("log") self.gridLayout = QtWidgets.QGridLayout(self.log) self.gridLayout.setContentsMargins(11, 11, 11, 11) self.gridLayout.setSpacing(6) self.gridLayout.setObjectName("gridLayout") self.txtMessageLog = QtWidgets.QTextEdit(self.log) self.txtMessageLog.setFrameShape(QtWidgets.QFrame.StyledPanel) self.txtMessageLog.setFrameShadow(QtWidgets.QFrame.Plain) self.txtMessageLog.setReadOnly(True) self.txtMessageLog.setObjectName("txtMessageLog") self.gridLayout.addWidget(self.txtMessageLog, 0, 0, 1, 1) self.tabMain.addTab(self.log, "") self.verticalLayout.addWidget(self.tabMain) self.verticalLayout_7.addWidget(self.splitter_horizontal) MainWindow.setCentralWidget(self.centralWidget) self.statusBar = QtWidgets.QStatusBar(MainWindow) self.statusBar.setObjectName("statusBar") MainWindow.setStatusBar(self.statusBar) self.toolBar = QtWidgets.QToolBar(MainWindow) font = QtGui.QFont() font.setFamily("MS Shell Dlg 2") font.setPointSize(10) self.toolBar.setFont(font) self.toolBar.setToolButtonStyle(QtCore.Qt.ToolButtonTextBesideIcon) self.toolBar.setObjectName("toolBar") MainWindow.addToolBar(QtCore.Qt.TopToolBarArea, self.toolBar) self.menuBar = QtWidgets.QMenuBar(MainWindow) self.menuBar.setGeometry(QtCore.QRect(0, 0, 1397, 21)) self.menuBar.setObjectName("menuBar") self.menu_File = QtWidgets.QMenu(self.menuBar) self.menu_File.setObjectName("menu_File") self.menu_Configure = QtWidgets.QMenu(self.menuBar) self.menu_Configure.setObjectName("menu_Configure") self.menuHelp = QtWidgets.QMenu(self.menuBar) self.menuHelp.setObjectName("menuHelp") self.menuPrint = QtWidgets.QMenu(self.menuBar) self.menuPrint.setObjectName("menuPrint") MainWindow.setMenuBar(self.menuBar) self.btnQuit = QtWidgets.QAction(MainWindow) self.btnQuit.setObjectName("btnQuit") self.btnLoad = QtWidgets.QAction(MainWindow) self.btnLoad.setObjectName("btnLoad") self.btnSave = QtWidgets.QAction(MainWindow) self.btnSave.setObjectName("btnSave") self.btnSaveAs = QtWidgets.QAction(MainWindow) self.btnSaveAs.setObjectName("btnSaveAs") self.action_new_session = QtWidgets.QAction(MainWindow) self.action_new_session.setObjectName("action_new_session") self.action_load_session = QtWidgets.QAction(MainWindow) self.action_load_session.setObjectName("action_load_session") self.action_save_session = QtWidgets.QAction(MainWindow) self.action_save_session.setObjectName("action_save_session") self.action_save_session_as = QtWidgets.QAction(MainWindow) self.action_save_session_as.setObjectName("action_save_session_as") self.action_quit = QtWidgets.QAction(MainWindow) self.action_quit.setObjectName("action_quit") self.action_slack = QtWidgets.QAction(MainWindow) self.action_slack.setObjectName("action_slack") self.action_help = QtWidgets.QAction(MainWindow) self.action_help.setObjectName("action_help") self.action_about = QtWidgets.QAction(MainWindow) self.action_about.setObjectName("action_about") self.btnAbout = QtWidgets.QAction(MainWindow) self.btnAbout.setObjectName("btnAbout") self.action_settings = QtWidgets.QAction(MainWindow) self.action_settings.setObjectName("action_settings") self.action_print = QtWidgets.QAction(MainWindow) self.action_print.setObjectName("action_print") self.action_print_preview = QtWidgets.QAction(MainWindow) self.action_print_preview.setObjectName("action_print_preview") self.toolBar.addAction(self.btnQuit) self.toolBar.addAction(self.btnLoad) self.toolBar.addAction(self.btnSave) self.toolBar.addAction(self.btnSaveAs) self.toolBar.addAction(self.btnAbout) self.menu_File.addAction(self.action_new_session) self.menu_File.addAction(self.action_load_session) self.menu_File.addAction(self.action_save_session) self.menu_File.addAction(self.action_save_session_as) self.menu_File.addSeparator() self.menu_File.addAction(self.action_quit) self.menu_Configure.addAction(self.action_slack) self.menu_Configure.addAction(self.action_settings) self.menuHelp.addAction(self.action_help) self.menuHelp.addSeparator() self.menuHelp.addAction(self.action_about) self.menuPrint.addAction(self.action_print) self.menuPrint.addAction(self.action_print_preview) self.menuBar.addAction(self.menu_File.menuAction()) self.menuBar.addAction(self.menu_Configure.menuAction()) self.menuBar.addAction(self.menuPrint.menuAction()) self.menuBar.addAction(self.menuHelp.menuAction()) self.retranslateUi(MainWindow) self.tabMain.setCurrentIndex(0) QtCore.QMetaObject.connectSlotsByName(MainWindow)
def setupUi(self, MainWindow): MainWindow.setObjectName(_fromUtf8("MainWindow")) MainWindow.resize(830, 453) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( MainWindow.sizePolicy().hasHeightForWidth()) MainWindow.setSizePolicy(sizePolicy) self.centralwidget = QtGui.QWidget(MainWindow) self.centralwidget.setObjectName(_fromUtf8("centralwidget")) self.verticalLayout_4 = QtGui.QVBoxLayout(self.centralwidget) self.verticalLayout_4.setObjectName(_fromUtf8("verticalLayout_4")) self.tabWidget = QtGui.QTabWidget(self.centralwidget) self.tabWidget.setObjectName(_fromUtf8("tabWidget")) self.tab = QtGui.QWidget() self.tab.setObjectName(_fromUtf8("tab")) self.horizontalLayout = QtGui.QHBoxLayout(self.tab) self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout")) self.groupBox_3 = QtGui.QGroupBox(self.tab) self.groupBox_3.setMinimumSize(QtCore.QSize(0, 350)) self.groupBox_3.setMaximumSize(QtCore.QSize(125, 16777215)) self.groupBox_3.setTitle(_fromUtf8("")) self.groupBox_3.setObjectName(_fromUtf8("groupBox_3")) self.verticalLayout = QtGui.QVBoxLayout(self.groupBox_3) self.verticalLayout.setObjectName(_fromUtf8("verticalLayout")) self.comboBox_2 = QtGui.QComboBox(self.groupBox_3) self.comboBox_2.setMinimumSize(QtCore.QSize(0, 30)) palette = QtGui.QPalette() brush = QtGui.QBrush(QtGui.QColor(11, 11, 11)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.NoRole, brush) brush = QtGui.QBrush(QtGui.QColor(11, 11, 11)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.NoRole, brush) brush = QtGui.QBrush(QtGui.QColor(11, 11, 11)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.NoRole, brush) self.comboBox_2.setPalette(palette) font = QtGui.QFont() font.setPointSize(8) self.comboBox_2.setFont(font) self.comboBox_2.setObjectName(_fromUtf8("comboBox_2")) self.comboBox_2.addItem(_fromUtf8("")) self.comboBox_2.addItem(_fromUtf8("")) self.comboBox_2.addItem(_fromUtf8("")) self.comboBox_2.addItem(_fromUtf8("")) self.comboBox_2.addItem(_fromUtf8("")) self.comboBox_2.addItem(_fromUtf8("")) self.comboBox_2.addItem(_fromUtf8("")) self.comboBox_2.addItem(_fromUtf8("")) self.comboBox_2.addItem(_fromUtf8("")) self.comboBox_2.addItem(_fromUtf8("")) self.comboBox_2.addItem(_fromUtf8("")) self.comboBox_2.addItem(_fromUtf8("")) self.comboBox_2.addItem(_fromUtf8("")) self.verticalLayout.addWidget(self.comboBox_2) self.comboBox = QtGui.QComboBox(self.groupBox_3) self.comboBox.setMinimumSize(QtCore.QSize(0, 30)) palette = QtGui.QPalette() brush = QtGui.QBrush(QtGui.QColor(170, 0, 0)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.NoRole, brush) brush = QtGui.QBrush(QtGui.QColor(170, 0, 0)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.NoRole, brush) brush = QtGui.QBrush(QtGui.QColor(170, 0, 0)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.NoRole, brush) self.comboBox.setPalette(palette) font = QtGui.QFont() font.setPointSize(8) self.comboBox.setFont(font) self.comboBox.setObjectName(_fromUtf8("comboBox")) self.comboBox.addItem(_fromUtf8("")) self.comboBox.addItem(_fromUtf8("")) self.comboBox.addItem(_fromUtf8("")) self.comboBox.addItem(_fromUtf8("")) self.comboBox.addItem(_fromUtf8("")) self.comboBox.addItem(_fromUtf8("")) self.comboBox.addItem(_fromUtf8("")) self.comboBox.addItem(_fromUtf8("")) self.comboBox.addItem(_fromUtf8("")) self.comboBox.addItem(_fromUtf8("")) self.comboBox.addItem(_fromUtf8("")) self.comboBox.addItem(_fromUtf8("")) self.verticalLayout.addWidget(self.comboBox) self.label = QtGui.QLabel(self.groupBox_3) self.label.setMaximumSize(QtCore.QSize(16777215, 20)) self.label.setObjectName(_fromUtf8("label")) self.verticalLayout.addWidget(self.label) self.lineEdit = QtGui.QLineEdit(self.groupBox_3) self.lineEdit.setMinimumSize(QtCore.QSize(0, 30)) self.lineEdit.setObjectName(_fromUtf8("lineEdit")) self.verticalLayout.addWidget(self.lineEdit) self.pushButton = QtGui.QPushButton(self.groupBox_3) self.pushButton.setMinimumSize(QtCore.QSize(50, 30)) font = QtGui.QFont() font.setPointSize(8) self.pushButton.setFont(font) self.pushButton.setObjectName(_fromUtf8("pushButton")) self.verticalLayout.addWidget(self.pushButton) self.groupBox_2 = QtGui.QGroupBox(self.groupBox_3) self.groupBox_2.setMinimumSize(QtCore.QSize(0, 100)) self.groupBox_2.setObjectName(_fromUtf8("groupBox_2")) self.pushButton_2 = QtGui.QPushButton(self.groupBox_2) self.pushButton_2.setGeometry(QtCore.QRect(6, 18, 94, 34)) font = QtGui.QFont() font.setPointSize(8) self.pushButton_2.setFont(font) self.pushButton_2.setObjectName(_fromUtf8("pushButton_2")) self.pushButton_3 = QtGui.QPushButton(self.groupBox_2) self.pushButton_3.setGeometry(QtCore.QRect(6, 54, 94, 34)) font = QtGui.QFont() font.setPointSize(8) self.pushButton_3.setFont(font) self.pushButton_3.setObjectName(_fromUtf8("pushButton_3")) self.pushButton_4 = QtGui.QPushButton(self.groupBox_2) self.pushButton_4.setGeometry(QtCore.QRect(6, 90, 94, 37)) font = QtGui.QFont() font.setPointSize(8) self.pushButton_4.setFont(font) self.pushButton_4.setObjectName(_fromUtf8("pushButton_4")) self.checkBox = QtGui.QCheckBox(self.groupBox_2) self.checkBox.setGeometry(QtCore.QRect(12, 135, 70, 17)) self.checkBox.setObjectName(_fromUtf8("checkBox")) self.verticalLayout.addWidget(self.groupBox_2) self.horizontalLayout.addWidget(self.groupBox_3) self.groupBox = QtGui.QGroupBox(self.tab) self.groupBox.setObjectName(_fromUtf8("groupBox")) self.verticalLayout_2 = QtGui.QVBoxLayout(self.groupBox) self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2")) self.textBrowser = QtGui.QTextBrowser(self.groupBox) palette = QtGui.QPalette() brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Text, brush) brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) 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.Inactive, QtGui.QPalette.Text, brush) brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Base, brush) brush = QtGui.QBrush(QtGui.QColor(120, 120, 120)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Text, brush) brush = QtGui.QBrush(QtGui.QColor(240, 240, 240)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Base, brush) self.textBrowser.setPalette(palette) self.textBrowser.setLineWrapMode(QtGui.QTextEdit.NoWrap) self.textBrowser.setObjectName(_fromUtf8("textBrowser")) self.verticalLayout_2.addWidget(self.textBrowser) self.horizontalLayout.addWidget(self.groupBox) self.tabWidget.addTab(self.tab, _fromUtf8("")) self.tab_2 = QtGui.QWidget() self.tab_2.setObjectName(_fromUtf8("tab_2")) self.horizontalLayout_2 = QtGui.QHBoxLayout(self.tab_2) self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2")) self.groupBox_4 = QtGui.QGroupBox(self.tab_2) self.groupBox_4.setTitle(_fromUtf8("")) self.groupBox_4.setObjectName(_fromUtf8("groupBox_4")) self.verticalLayout_5 = QtGui.QVBoxLayout(self.groupBox_4) self.verticalLayout_5.setObjectName(_fromUtf8("verticalLayout_5")) self.graphicsView = PlotWidget(self.groupBox_4) self.graphicsView.setObjectName(_fromUtf8("graphicsView")) self.verticalLayout_5.addWidget(self.graphicsView) self.graphicsView_2 = PlotWidget(self.groupBox_4) self.graphicsView_2.setObjectName(_fromUtf8("graphicsView_2")) self.verticalLayout_5.addWidget(self.graphicsView_2) self.graphicsView_3 = PlotWidget(self.groupBox_4) self.graphicsView_3.setObjectName(_fromUtf8("graphicsView_3")) self.verticalLayout_5.addWidget(self.graphicsView_3) self.graphicsView_4 = PlotWidget(self.groupBox_4) self.graphicsView_4.setObjectName(_fromUtf8("graphicsView_4")) self.verticalLayout_5.addWidget(self.graphicsView_4) self.horizontalLayout_2.addWidget(self.groupBox_4) self.tabWidget.addTab(self.tab_2, _fromUtf8("")) self.verticalLayout_4.addWidget(self.tabWidget) MainWindow.setCentralWidget(self.centralwidget) self.menubar = QtGui.QMenuBar(MainWindow) self.menubar.setGeometry(QtCore.QRect(0, 0, 830, 21)) self.menubar.setObjectName(_fromUtf8("menubar")) self.menuFile = QtGui.QMenu(self.menubar) self.menuFile.setObjectName(_fromUtf8("menuFile")) MainWindow.setMenuBar(self.menubar) self.statusbar = QtGui.QStatusBar(MainWindow) self.statusbar.setObjectName(_fromUtf8("statusbar")) MainWindow.setStatusBar(self.statusbar) self.actionImport = QtGui.QAction(MainWindow) self.actionImport.setObjectName(_fromUtf8("actionImport")) self.actionOpen = QtGui.QAction(MainWindow) self.actionOpen.setObjectName(_fromUtf8("actionOpen")) self.actionSave_As = QtGui.QAction(MainWindow) self.actionSave_As.setObjectName(_fromUtf8("actionSave_As")) self.actionClose = QtGui.QAction(MainWindow) self.actionClose.setObjectName(_fromUtf8("actionClose")) self.menuFile.addAction(self.actionClose) self.menubar.addAction(self.menuFile.menuAction()) self.retranslateUi(MainWindow) self.tabWidget.setCurrentIndex(0) QtCore.QMetaObject.connectSlotsByName(MainWindow)
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(0) self.start_QPushButton.objectNameChanged['QString'].connect( self.bottom_textBrowser.insertPlainText) self.command_line.returnPressed.connect(self.bottom_textBrowser.update) QtCore.QMetaObject.connectSlotsByName(mainWindow)
def __init__(self, core): # Inherit all attributes of an instance of "QWidget". super(widget_mfi_fmo_plot, self).__init__() # Store the Janus core. self.core = core # Prepare to respond to signals received from the core. self.connect(self.core, SIGNAL('janus_rset'), self.resp_rset) self.connect(self.core, SIGNAL('janus_chng_mfi'), self.resp_chng_mfi) # Initialize this widget's instance of "PlotWidget", which will # contain the plot of MFI magnetic field data. # Note. The "QGridLayout" object given to this widget as its # layout is essentially a dummy. I could have just had # this class inherit "PlotWidget", but I think that this # gives me a bit more control (and a similar structure # "janus_widget_fc_cup"). self.setLayout(QGridLayout()) self.plt = PlotWidget() self.layout().addWidget(self.plt) self.layout().setContentsMargins(0, 0, 0, 0) # Extract the individual elements of the "PlotWidget" object # (e.g., it's axes) for more convenient access later. self.vbx = self.plt.getViewBox() self.axs_x = self.plt.getAxis('bottom') self.axs_y = self.plt.getAxis('left') self.ptm = self.plt.getPlotItem() # Initialize and store the pens and fonts. self.pen_vbx = mkPen(color='k') # self.pen_crv_m = mkPen( color='k' ) # self.pen_crv_n = mkPen( color='k' ) self.pen_crv_x = mkPen(color='r') self.pen_crv_y = mkPen(color='g') self.pen_crv_z = mkPen(color='b') self.pen_crv_x_m = mkPen(color='#8B008B') self.pen_crv_y_m = mkPen(color='#FFD700') self.pen_crv_z_m = mkPen(color='k') self.fnt = self.core.app.font() # Configure the plot: disable automatic adjustments and # adjustments made by the user, change the background and # foreground colors, enable grid lines for both axes, label the # axes, adjust the tick font size, adjust the "AxisItem" sizes, # and add a margin around the entire plot. self.plt.disableAutoRange() self.plt.setMouseEnabled(False, False) self.plt.setMenuEnabled(False) self.plt.hideButtons() self.plt.setBackground('w') setConfigOption('foreground', 'k') #####self.plt.showGrid( True, True ) labelStyle = {'color': 'k'} self.axs_x.setLabel('Time [s]', **labelStyle) self.axs_y.setLabel('Magnetic Field [nT]', **labelStyle) self.axs_x.label.setFont(self.fnt) self.axs_y.label.setFont(self.fnt) self.axs_x.setTickFont(self.fnt) self.axs_y.setTickFont(self.fnt) self.axs_x.setHeight(35) self.axs_y.setWidth(40) self.vbx.border = self.pen_vbx self.ptm.setContentsMargins(5, 5, 5, 5) # Initialize the curves that will be added to this plot. # self.crv_m = None # self.crv_n = None self.crv_x = None self.crv_y = None self.crv_z = None self.crv_x_m = None self.crv_y_m = None self.crv_z_m = None # Populate this plot and adjust it's settings. self.make_plt()
def setupUi(self, MainWindow): MainWindow.setObjectName(_fromUtf8("MainWindow")) MainWindow.resize(800, 600) self.centralwidget = QtGui.QWidget(MainWindow) self.centralwidget.setObjectName(_fromUtf8("centralwidget")) self.verticalLayout = QtGui.QVBoxLayout(self.centralwidget) self.verticalLayout.setObjectName(_fromUtf8("verticalLayout")) self.horizontalLayout = QtGui.QHBoxLayout() self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout")) self.startButton = QtGui.QPushButton(self.centralwidget) self.startButton.setObjectName(_fromUtf8("startButton")) self.horizontalLayout.addWidget(self.startButton) spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.horizontalLayout.addItem(spacerItem) self.label = QtGui.QLabel(self.centralwidget) self.label.setObjectName(_fromUtf8("label")) self.horizontalLayout.addWidget(self.label) self.deviceComboBox = QtGui.QComboBox(self.centralwidget) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.deviceComboBox.sizePolicy().hasHeightForWidth()) self.deviceComboBox.setSizePolicy(sizePolicy) self.deviceComboBox.setObjectName(_fromUtf8("deviceComboBox")) self.deviceComboBox.addItem(_fromUtf8("")) self.deviceComboBox.addItem(_fromUtf8("")) self.deviceComboBox.addItem(_fromUtf8("")) self.deviceComboBox.addItem(_fromUtf8("")) self.deviceComboBox.addItem(_fromUtf8("")) self.deviceComboBox.addItem(_fromUtf8("")) self.deviceComboBox.addItem(_fromUtf8("")) self.deviceComboBox.addItem(_fromUtf8("")) self.deviceComboBox.addItem(_fromUtf8("")) self.deviceComboBox.addItem(_fromUtf8("")) self.deviceComboBox.addItem(_fromUtf8("")) self.deviceComboBox.addItem(_fromUtf8("")) self.horizontalLayout.addWidget(self.deviceComboBox) self.verticalLayout.addLayout(self.horizontalLayout) self.horizontalLayout_2 = QtGui.QHBoxLayout() self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2")) self.label_2 = QtGui.QLabel(self.centralwidget) self.label_2.setObjectName(_fromUtf8("label_2")) self.horizontalLayout_2.addWidget(self.label_2) self.eyeBlinkSensitivity = QtGui.QLineEdit(self.centralwidget) self.eyeBlinkSensitivity.setObjectName( _fromUtf8("eyeBlinkSensitivity")) self.horizontalLayout_2.addWidget(self.eyeBlinkSensitivity) self.label_3 = QtGui.QLabel(self.centralwidget) self.label_3.setObjectName(_fromUtf8("label_3")) self.horizontalLayout_2.addWidget(self.label_3) self.lowerEyeBlinkFrequency = QtGui.QLineEdit(self.centralwidget) self.lowerEyeBlinkFrequency.setObjectName( _fromUtf8("lowerEyeBlinkFrequency")) self.horizontalLayout_2.addWidget(self.lowerEyeBlinkFrequency) self.label_4 = QtGui.QLabel(self.centralwidget) self.label_4.setObjectName(_fromUtf8("label_4")) self.horizontalLayout_2.addWidget(self.label_4) self.higherEyeBlinkFrequency = QtGui.QLineEdit(self.centralwidget) self.higherEyeBlinkFrequency.setObjectName( _fromUtf8("higherEyeBlinkFrequency")) self.horizontalLayout_2.addWidget(self.higherEyeBlinkFrequency) self.verticalLayout.addLayout(self.horizontalLayout_2) self.rawView = PlotWidget(self.centralwidget) self.rawView.setObjectName(_fromUtf8("rawView")) self.verticalLayout.addWidget(self.rawView) self.fftView = PlotWidget(self.centralwidget) self.fftView.setObjectName(_fromUtf8("fftView")) self.verticalLayout.addWidget(self.fftView) MainWindow.setCentralWidget(self.centralwidget) self.menubar = QtGui.QMenuBar(MainWindow) self.menubar.setGeometry(QtCore.QRect(0, 0, 800, 19)) self.menubar.setObjectName(_fromUtf8("menubar")) self.menuFile = QtGui.QMenu(self.menubar) self.menuFile.setObjectName(_fromUtf8("menuFile")) MainWindow.setMenuBar(self.menubar) self.statusbar = QtGui.QStatusBar(MainWindow) self.statusbar.setObjectName(_fromUtf8("statusbar")) MainWindow.setStatusBar(self.statusbar) self.actionQuit = QtGui.QAction(MainWindow) self.actionQuit.setObjectName(_fromUtf8("actionQuit")) self.menuFile.addAction(self.actionQuit) self.menubar.addAction(self.menuFile.menuAction()) self.retranslateUi(MainWindow) QtCore.QMetaObject.connectSlotsByName(MainWindow) MainWindow.setTabOrder(self.rawView, self.fftView)
def setupUi(self, MainWindow): MainWindow.setObjectName("MainWindow") MainWindow.resize(1268, 976) self.centralwidget = QtWidgets.QWidget(MainWindow) self.centralwidget.setObjectName("centralwidget") self.tabWidget = QtWidgets.QTabWidget(self.centralwidget) self.tabWidget.setGeometry(QtCore.QRect(100, 0, 1071, 981)) self.tabWidget.setObjectName("tabWidget") self.tab = QtWidgets.QWidget() self.tab.setObjectName("tab") self.label_7 = QtWidgets.QLabel(self.tab) self.label_7.setGeometry(QtCore.QRect(330, 30, 67, 17)) self.label_7.setObjectName("label_7") self.label_10 = QtWidgets.QLabel(self.tab) self.label_10.setGeometry(QtCore.QRect(230, 50, 67, 17)) self.label_10.setObjectName("label_10") self.verticalSlider_2 = QtWidgets.QSlider(self.tab) self.verticalSlider_2.setGeometry(QtCore.QRect(170, 80, 16, 81)) self.verticalSlider_2.setOrientation(QtCore.Qt.Vertical) self.verticalSlider_2.setObjectName("verticalSlider_2") self.label_6 = QtWidgets.QLabel(self.tab) self.label_6.setGeometry(QtCore.QRect(140, 50, 67, 17)) self.label_6.setObjectName("label_6") self.label_8 = QtWidgets.QLabel(self.tab) self.label_8.setGeometry(QtCore.QRect(320, 50, 67, 17)) self.label_8.setObjectName("label_8") self.verticalSlider = QtWidgets.QSlider(self.tab) self.verticalSlider.setGeometry(QtCore.QRect(90, 80, 16, 81)) self.verticalSlider.setOrientation(QtCore.Qt.Vertical) self.verticalSlider.setObjectName("verticalSlider") self.label_4 = QtWidgets.QLabel(self.tab) self.label_4.setGeometry(QtCore.QRect(60, 50, 67, 17)) self.label_4.setObjectName("label_4") self.verticalSlider_4 = QtWidgets.QSlider(self.tab) self.verticalSlider_4.setGeometry(QtCore.QRect(320, 80, 16, 81)) self.verticalSlider_4.setOrientation(QtCore.Qt.Vertical) self.verticalSlider_4.setObjectName("verticalSlider_4") self.pushButton_2 = QtWidgets.QPushButton(self.tab) self.pushButton_2.setGeometry(QtCore.QRect(950, 50, 89, 25)) self.pushButton_2.setObjectName("pushButton_2") self.label_5 = QtWidgets.QLabel(self.tab) self.label_5.setGeometry(QtCore.QRect(150, 30, 61, 17)) self.label_5.setObjectName("label_5") self.label_3 = QtWidgets.QLabel(self.tab) self.label_3.setGeometry(QtCore.QRect(70, 30, 67, 17)) self.label_3.setObjectName("label_3") self.verticalSlider_5 = QtWidgets.QSlider(self.tab) self.verticalSlider_5.setGeometry(QtCore.QRect(420, 80, 16, 81)) self.verticalSlider_5.setOrientation(QtCore.Qt.Vertical) self.verticalSlider_5.setObjectName("verticalSlider_5") self.label_9 = QtWidgets.QLabel(self.tab) self.label_9.setGeometry(QtCore.QRect(240, 30, 67, 17)) self.label_9.setObjectName("label_9") self.pushButton = QtWidgets.QPushButton(self.tab) self.pushButton.setGeometry(QtCore.QRect(950, 20, 101, 25)) self.pushButton.setObjectName("pushButton") self.label_2 = QtWidgets.QLabel(self.tab) self.label_2.setGeometry(QtCore.QRect(400, 50, 67, 17)) self.label_2.setObjectName("label_2") self.listWidget = QtWidgets.QListWidget(self.tab) self.listWidget.setGeometry(QtCore.QRect(690, 0, 241, 151)) self.listWidget.setObjectName("listWidget") self.verticalSlider_3 = QtWidgets.QSlider(self.tab) self.verticalSlider_3.setGeometry(QtCore.QRect(250, 80, 16, 81)) self.verticalSlider_3.setOrientation(QtCore.Qt.Vertical) self.verticalSlider_3.setObjectName("verticalSlider_3") self.label = QtWidgets.QLabel(self.tab) self.label.setGeometry(QtCore.QRect(400, 30, 67, 17)) self.label.setObjectName("label") self.label_11 = QtWidgets.QLabel(self.tab) self.label_11.setGeometry(QtCore.QRect(70, 170, 31, 17)) self.label_11.setObjectName("label_11") self.label_12 = QtWidgets.QLabel(self.tab) self.label_12.setGeometry(QtCore.QRect(110, 170, 67, 17)) self.label_12.setObjectName("label_12") self.label_13 = QtWidgets.QLabel(self.tab) self.label_13.setGeometry(QtCore.QRect(220, 170, 41, 17)) self.label_13.setObjectName("label_13") self.label_14 = QtWidgets.QLabel(self.tab) self.label_14.setGeometry(QtCore.QRect(270, 170, 67, 17)) self.label_14.setObjectName("label_14") self.label_15 = QtWidgets.QLabel(self.tab) self.label_15.setGeometry(QtCore.QRect(360, 170, 41, 17)) self.label_15.setObjectName("label_15") self.label_16 = QtWidgets.QLabel(self.tab) self.label_16.setGeometry(QtCore.QRect(400, 170, 67, 17)) self.label_16.setObjectName("label_16") self.pushButton_3 = QtWidgets.QPushButton(self.tab) self.pushButton_3.setGeometry(QtCore.QRect(950, 80, 89, 25)) self.pushButton_3.setObjectName("pushButton_3") self.gridLayoutWidget = QtWidgets.QWidget(self.tab) self.gridLayoutWidget.setGeometry(QtCore.QRect(0, 220, 611, 551)) self.gridLayoutWidget.setObjectName("gridLayoutWidget") self.gridLayout_2 = QtWidgets.QGridLayout(self.gridLayoutWidget) self.gridLayout_2.setContentsMargins(0, 0, 0, 0) self.gridLayout_2.setObjectName("gridLayout_2") self.widget_2 = PlotWidget(self.gridLayoutWidget) self.widget_2.setObjectName("widget_2") self.widget = PlotWidget(self.widget_2) self.widget.setGeometry(QtCore.QRect(0, 0, 1041, 651)) self.widget.setObjectName("widget") self.gridLayout_2.addWidget(self.widget_2, 0, 0, 1, 1) self.tabWidget.addTab(self.tab, "") self.tab_2 = QtWidgets.QWidget() self.tab_2.setObjectName("tab_2") self.tabWidget.addTab(self.tab_2, "") MainWindow.setCentralWidget(self.centralwidget) self.menubar = QtWidgets.QMenuBar(MainWindow) self.menubar.setGeometry(QtCore.QRect(0, 0, 1268, 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 setupUi(self, MainWindow): MainWindow.setObjectName("MainWindow") MainWindow.resize(800, 600) self.centralwidget = QtWidgets.QWidget(MainWindow) self.centralwidget.setObjectName("centralwidget") self.gridLayout = QtWidgets.QGridLayout(self.centralwidget) self.gridLayout.setObjectName("gridLayout") self.groupBox = QtWidgets.QGroupBox(self.centralwidget) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.groupBox.sizePolicy().hasHeightForWidth()) self.groupBox.setSizePolicy(sizePolicy) self.groupBox.setAlignment(QtCore.Qt.AlignCenter) self.groupBox.setObjectName("groupBox") self.formLayout = QtWidgets.QFormLayout(self.groupBox) self.formLayout.setContentsMargins(2, 2, 2, 2) self.formLayout.setObjectName("formLayout") self.tabWidget = QtWidgets.QTabWidget(self.groupBox) self.tabWidget.setObjectName("tabWidget") 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.line = QtWidgets.QFrame(self.tab_3) self.line.setFrameShape(QtWidgets.QFrame.HLine) self.line.setFrameShadow(QtWidgets.QFrame.Sunken) self.line.setObjectName("line") self.gridLayout_3.addWidget(self.line, 6, 0, 1, 4) self.recPB = QtWidgets.QPushButton(self.tab_3) self.recPB.setObjectName("recPB") self.gridLayout_3.addWidget(self.recPB, 14, 2, 1, 1) self.stopPB = QtWidgets.QPushButton(self.tab_3) self.stopPB.setObjectName("stopPB") self.gridLayout_3.addWidget(self.stopPB, 14, 3, 1, 1) self.timeLabel = QtWidgets.QLabel(self.tab_3) self.timeLabel.setObjectName("timeLabel") self.gridLayout_3.addWidget(self.timeLabel, 8, 0, 1, 1) self.label_4 = QtWidgets.QLabel(self.tab_3) self.label_4.setObjectName("label_4") self.gridLayout_3.addWidget(self.label_4, 7, 0, 1, 1) self.getLocalPB = QtWidgets.QPushButton(self.tab_3) self.getLocalPB.setObjectName("getLocalPB") self.gridLayout_3.addWidget(self.getLocalPB, 0, 3, 1, 1) self.local_ip_LE = QtWidgets.QLineEdit(self.tab_3) self.local_ip_LE.setObjectName("local_ip_LE") self.gridLayout_3.addWidget(self.local_ip_LE, 0, 1, 1, 2) self.sendPB = QtWidgets.QPushButton(self.tab_3) self.sendPB.setObjectName("sendPB") self.gridLayout_3.addWidget(self.sendPB, 9, 3, 1, 1) self.hexCKB = QtWidgets.QCheckBox(self.tab_3) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.hexCKB.sizePolicy().hasHeightForWidth()) self.hexCKB.setSizePolicy(sizePolicy) self.hexCKB.setObjectName("hexCKB") self.gridLayout_3.addWidget(self.hexCKB, 10, 3, 1, 1) self.connectPB = QtWidgets.QPushButton(self.tab_3) self.connectPB.setObjectName("connectPB") self.gridLayout_3.addWidget(self.connectPB, 5, 2, 1, 1) self.des_ip_LE = QtWidgets.QLineEdit(self.tab_3) self.des_ip_LE.setObjectName("des_ip_LE") self.gridLayout_3.addWidget(self.des_ip_LE, 3, 1, 1, 3) self.trigModCB = QtWidgets.QComboBox(self.tab_3) self.trigModCB.setObjectName("trigModCB") self.trigModCB.addItem("") self.trigModCB.addItem("") self.trigModCB.addItem("") self.gridLayout_3.addWidget(self.trigModCB, 7, 1, 1, 3) self.portLE = QtWidgets.QLineEdit(self.tab_3) self.portLE.setObjectName("portLE") self.gridLayout_3.addWidget(self.portLE, 4, 1, 1, 2) self.label_2 = QtWidgets.QLabel(self.tab_3) self.label_2.setObjectName("label_2") self.gridLayout_3.addWidget(self.label_2, 3, 0, 1, 1) self.timeModCB = QtWidgets.QComboBox(self.tab_3) self.timeModCB.setObjectName("timeModCB") self.timeModCB.addItem("") self.timeModCB.addItem("") self.gridLayout_3.addWidget(self.timeModCB, 8, 3, 1, 1) self.label = QtWidgets.QLabel(self.tab_3) self.label.setObjectName("label") self.gridLayout_3.addWidget(self.label, 0, 0, 1, 1) self.timeLE = QtWidgets.QLineEdit(self.tab_3) self.timeLE.setObjectName("timeLE") self.gridLayout_3.addWidget(self.timeLE, 8, 1, 1, 2) self.discPB = QtWidgets.QPushButton(self.tab_3) self.discPB.setObjectName("discPB") self.gridLayout_3.addWidget(self.discPB, 5, 3, 1, 1) self.stateLed = LedIndicator(self.tab_3) self.stateLed.setText("") self.stateLed.setObjectName("stateLed") self.gridLayout_3.addWidget(self.stateLed, 4, 3, 1, 1) self.label_3 = QtWidgets.QLabel(self.tab_3) self.label_3.setObjectName("label_3") self.gridLayout_3.addWidget(self.label_3, 4, 0, 1, 1) self.sendTE = QtWidgets.QPlainTextEdit(self.tab_3) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Ignored, QtWidgets.QSizePolicy.Ignored) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.sendTE.sizePolicy().hasHeightForWidth()) self.sendTE.setSizePolicy(sizePolicy) self.sendTE.setObjectName("sendTE") self.gridLayout_3.addWidget(self.sendTE, 9, 0, 2, 3) self.gridLayout_3.setColumnStretch(1, 2) self.gridLayout_3.setColumnStretch(2, 1) self.gridLayout_3.setColumnStretch(3, 1) self.tabWidget.addTab(self.tab_3, "") self.tab_4 = QtWidgets.QWidget() self.tab_4.setObjectName("tab_4") self.tabWidget.addTab(self.tab_4, "") self.formLayout.setWidget(0, QtWidgets.QFormLayout.SpanningRole, self.tabWidget) self.gridLayout.addWidget(self.groupBox, 0, 1, 1, 1) self.groupBox_2 = QtWidgets.QGroupBox(self.centralwidget) self.groupBox_2.setAlignment(QtCore.Qt.AlignCenter) self.groupBox_2.setObjectName("groupBox_2") self.gridLayout_2 = QtWidgets.QGridLayout(self.groupBox_2) self.gridLayout_2.setContentsMargins(2, 2, 2, 2) self.gridLayout_2.setObjectName("gridLayout_2") self.msgTB = QtWidgets.QTextBrowser(self.groupBox_2) self.msgTB.setObjectName("msgTB") self.gridLayout_2.addWidget(self.msgTB, 0, 0, 1, 1) self.gridLayout.addWidget(self.groupBox_2, 1, 1, 1, 1) self.plotView = PlotWidget(self.centralwidget) self.plotView.setObjectName("plotView") self.gridLayout.addWidget(self.plotView, 0, 0, 2, 1) self.gridLayout.setColumnStretch(0, 1) MainWindow.setCentralWidget(self.centralwidget) self.menubar = QtWidgets.QMenuBar(MainWindow) self.menubar.setGeometry(QtCore.QRect(0, 0, 800, 18)) self.menubar.setObjectName("menubar") self.menuFile = QtWidgets.QMenu(self.menubar) self.menuFile.setObjectName("menuFile") MainWindow.setMenuBar(self.menubar) self.statusbar = QtWidgets.QStatusBar(MainWindow) self.statusbar.setObjectName("statusbar") MainWindow.setStatusBar(self.statusbar) self.actionInput = QtWidgets.QAction(MainWindow) self.actionInput.setObjectName("actionInput") self.menuFile.addAction(self.actionInput) self.menubar.addAction(self.menuFile.menuAction()) self.retranslateUi(MainWindow) self.tabWidget.setCurrentIndex(0) QtCore.QMetaObject.connectSlotsByName(MainWindow)
def setupUi(self, MainWindow): MainWindow.setObjectName("MainWindow") MainWindow.resize(1256, 691) MainWindow.setMouseTracking(False) MainWindow.setAcceptDrops(True) icon = QtGui.QIcon() icon.addPixmap(QtGui.QPixmap("../../../../../usr/share/pixmaps/cubeview48.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) MainWindow.setWindowIcon(icon) MainWindow.setWindowOpacity(1.0) MainWindow.setToolTip("") MainWindow.setAutoFillBackground(False) MainWindow.setToolButtonStyle(QtCore.Qt.ToolButtonIconOnly) MainWindow.setTabShape(QtGui.QTabWidget.Rounded) self.centralwidget = QtGui.QWidget(MainWindow) self.centralwidget.setObjectName("centralwidget") self.graph = PlotWidget(self.centralwidget) self.graph.setGeometry(QtCore.QRect(0, 10, 881, 471)) self.graph.setObjectName("graph") self.label_2 = QtGui.QLabel(self.centralwidget) self.label_2.setGeometry(QtCore.QRect(1110, 670, 81, 31)) font = QtGui.QFont() font.setPointSize(7) font.setWeight(75) font.setItalic(True) font.setBold(True) self.label_2.setFont(font) self.label_2.setObjectName("label_2") self.editedgraph = PlotWidget(self.centralwidget) self.editedgraph.setGeometry(QtCore.QRect(0, 490, 571, 201)) self.editedgraph.setObjectName("editedgraph") self.files = QtGui.QComboBox(self.centralwidget) self.files.setGeometry(QtCore.QRect(890, 0, 371, 27)) self.files.setObjectName("files") self.label_3 = QtGui.QLabel(self.centralwidget) self.label_3.setGeometry(QtCore.QRect(618, 480, 41, 21)) self.label_3.setObjectName("label_3") self.dIdVval = QtGui.QLabel(self.centralwidget) self.dIdVval.setGeometry(QtCore.QRect(668, 480, 151, 16)) self.dIdVval.setText("") self.dIdVval.setObjectName("dIdVval") self.label_4 = QtGui.QLabel(self.centralwidget) self.label_4.setGeometry(QtCore.QRect(618, 510, 41, 21)) self.label_4.setObjectName("label_4") self.dVdIval = QtGui.QLabel(self.centralwidget) self.dVdIval.setGeometry(QtCore.QRect(668, 510, 151, 16)) self.dVdIval.setText("") self.dVdIval.setObjectName("dVdIval") self.pushButton = QtGui.QPushButton(self.centralwidget) self.pushButton.setGeometry(QtCore.QRect(790, 510, 98, 27)) self.pushButton.setObjectName("pushButton") self.graph2 = PlotWidget(self.centralwidget) self.graph2.setGeometry(QtCore.QRect(680, 560, 201, 131)) self.graph2.setObjectName("graph2") self.pushButton_2 = QtGui.QPushButton(self.centralwidget) self.pushButton_2.setGeometry(QtCore.QRect(680, 536, 201, 21)) self.pushButton_2.setObjectName("pushButton_2") self.thumbs = QtGui.QListWidget(self.centralwidget) self.thumbs.setGeometry(QtCore.QRect(890, 30, 361, 631)) self.thumbs.setAcceptDrops(True) self.thumbs.setDragEnabled(True) self.thumbs.setDragDropMode(QtGui.QAbstractItemView.NoDragDrop) self.thumbs.setSelectionMode(QtGui.QAbstractItemView.ExtendedSelection) self.thumbs.setIconSize(QtCore.QSize(150, 300)) self.thumbs.setFlow(QtGui.QListView.TopToBottom) self.thumbs.setResizeMode(QtGui.QListView.Adjust) self.thumbs.setViewMode(QtGui.QListView.ListMode) self.thumbs.setObjectName("thumbs") self.pushButton_3 = QtGui.QPushButton(self.centralwidget) self.pushButton_3.setGeometry(QtCore.QRect(890, 666, 211, 21)) self.pushButton_3.setObjectName("pushButton_3") self.filename = QtGui.QLineEdit(self.centralwidget) self.filename.setGeometry(QtCore.QRect(790, 480, 101, 27)) self.filename.setObjectName("filename") MainWindow.setCentralWidget(self.centralwidget) self.actionSave_as = QtGui.QAction(MainWindow) self.actionSave_as.setObjectName("actionSave_as") self.retranslateUi(MainWindow) QtCore.QObject.connect(self.pushButton, QtCore.SIGNAL("clicked()"), MainWindow.saveplot) QtCore.QObject.connect(self.pushButton_2, QtCore.SIGNAL("clicked()"), MainWindow.generate_thumbnails) QtCore.QObject.connect(self.files, QtCore.SIGNAL("currentIndexChanged(QString)"), MainWindow.loadfile) QtCore.QObject.connect(self.pushButton_3, QtCore.SIGNAL("clicked()"), MainWindow.plot_selection) QtCore.QMetaObject.connectSlotsByName(MainWindow)
def setupUi(self, Machine_Learn_Interface): Machine_Learn_Interface.setObjectName("Machine_Learn_Interface") Machine_Learn_Interface.resize(753, 664) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(Machine_Learn_Interface.sizePolicy().hasHeightForWidth()) Machine_Learn_Interface.setSizePolicy(sizePolicy) icon = QtGui.QIcon() icon.addPixmap(QtGui.QPixmap(":/images/resource/cropped-Brain-Tool-Icon-2.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) Machine_Learn_Interface.setWindowIcon(icon) self.gridLayout_2 = QtWidgets.QGridLayout(Machine_Learn_Interface) self.gridLayout_2.setObjectName("gridLayout_2") self.tabWidget = QtWidgets.QTabWidget(Machine_Learn_Interface) self.tabWidget.setTabShape(QtWidgets.QTabWidget.Triangular) self.tabWidget.setObjectName("tabWidget") self.Tab = QtWidgets.QWidget() self.Tab.setObjectName("Tab") self.verticalLayout_3 = QtWidgets.QVBoxLayout(self.Tab) self.verticalLayout_3.setObjectName("verticalLayout_3") self.verticalLayout_2 = QtWidgets.QVBoxLayout() self.verticalLayout_2.setObjectName("verticalLayout_2") self.verticalLayout = QtWidgets.QVBoxLayout() self.verticalLayout.setObjectName("verticalLayout") self.horizontalLayout_2 = QtWidgets.QHBoxLayout() self.horizontalLayout_2.setObjectName("horizontalLayout_2") self.label = QtWidgets.QLabel(self.Tab) font = QtGui.QFont() font.setPointSize(9) font.setBold(True) font.setItalic(False) font.setWeight(75) self.label.setFont(font) self.label.setObjectName("label") self.horizontalLayout_2.addWidget(self.label) self.pb_openfiles = QtWidgets.QPushButton(self.Tab) font = QtGui.QFont() font.setBold(True) font.setWeight(75) self.pb_openfiles.setFont(font) icon1 = QtGui.QIcon() icon1.addPixmap(QtGui.QPixmap(":/images/resource/file_add.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.pb_openfiles.setIcon(icon1) self.pb_openfiles.setObjectName("pb_openfiles") self.horizontalLayout_2.addWidget(self.pb_openfiles) self.pb_kmeans = QtWidgets.QPushButton(self.Tab) self.pb_kmeans.setEnabled(False) font = QtGui.QFont() font.setBold(True) font.setWeight(75) self.pb_kmeans.setFont(font) icon2 = QtGui.QIcon() icon2.addPixmap(QtGui.QPixmap(":/images/resource/cluster.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.pb_kmeans.setIcon(icon2) self.pb_kmeans.setObjectName("pb_kmeans") self.horizontalLayout_2.addWidget(self.pb_kmeans) self.verticalLayout.addLayout(self.horizontalLayout_2) self.line = QtWidgets.QFrame(self.Tab) self.line.setFrameShape(QtWidgets.QFrame.HLine) self.line.setFrameShadow(QtWidgets.QFrame.Sunken) self.line.setObjectName("line") self.verticalLayout.addWidget(self.line) self.horizontalLayout = QtWidgets.QHBoxLayout() self.horizontalLayout.setObjectName("horizontalLayout") spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout.addItem(spacerItem) self.label_2 = QtWidgets.QLabel(self.Tab) self.label_2.setAlignment(QtCore.Qt.AlignCenter) self.label_2.setObjectName("label_2") self.horizontalLayout.addWidget(self.label_2) self.pb_cluster_hint = QtWidgets.QPushButton(self.Tab) icon3 = QtGui.QIcon() icon3.addPixmap(QtGui.QPixmap(":/images/resource/Magic-512.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.pb_cluster_hint.setIcon(icon3) self.pb_cluster_hint.setIconSize(QtCore.QSize(18, 18)) self.pb_cluster_hint.setObjectName("pb_cluster_hint") self.horizontalLayout.addWidget(self.pb_cluster_hint) self.sb_cluster_number = QtWidgets.QSpinBox(self.Tab) self.sb_cluster_number.setProperty("value", 3) self.sb_cluster_number.setObjectName("sb_cluster_number") self.horizontalLayout.addWidget(self.sb_cluster_number) self.verticalLayout.addLayout(self.horizontalLayout) self.verticalLayout_2.addLayout(self.verticalLayout) self.gridLayout = QtWidgets.QGridLayout() self.gridLayout.setObjectName("gridLayout") self.label_5 = QtWidgets.QLabel(self.Tab) self.label_5.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.label_5.setObjectName("label_5") self.gridLayout.addWidget(self.label_5, 0, 3, 1, 1) spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Minimum) self.gridLayout.addItem(spacerItem1, 1, 0, 1, 1) self.label_6 = QtWidgets.QLabel(self.Tab) self.label_6.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.label_6.setObjectName("label_6") self.gridLayout.addWidget(self.label_6, 1, 3, 1, 1) self.label_3 = QtWidgets.QLabel(self.Tab) self.label_3.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.label_3.setObjectName("label_3") self.gridLayout.addWidget(self.label_3, 0, 1, 1, 1) self.label_4 = QtWidgets.QLabel(self.Tab) self.label_4.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.label_4.setObjectName("label_4") self.gridLayout.addWidget(self.label_4, 1, 1, 1, 1) self.lb_magnt_name = QtWidgets.QLabel(self.Tab) font = QtGui.QFont() font.setPointSize(9) font.setBold(True) font.setWeight(75) self.lb_magnt_name.setFont(font) self.lb_magnt_name.setText("") self.lb_magnt_name.setObjectName("lb_magnt_name") self.gridLayout.addWidget(self.lb_magnt_name, 3, 2, 1, 1) spacerItem2 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Minimum) self.gridLayout.addItem(spacerItem2, 0, 0, 1, 1) spacerItem3 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Preferred) self.gridLayout.addItem(spacerItem3, 3, 4, 1, 1) spacerItem4 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Minimum) self.gridLayout.addItem(spacerItem4, 3, 0, 1, 1) self.label_7 = QtWidgets.QLabel(self.Tab) self.label_7.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.label_7.setObjectName("label_7") self.gridLayout.addWidget(self.label_7, 3, 1, 1, 1) self.cb_y_values = QtWidgets.QComboBox(self.Tab) self.cb_y_values.setObjectName("cb_y_values") self.gridLayout.addWidget(self.cb_y_values, 0, 2, 1, 1) self.cb_x_values = QtWidgets.QComboBox(self.Tab) self.cb_x_values.setObjectName("cb_x_values") self.gridLayout.addWidget(self.cb_x_values, 1, 2, 1, 1) self.cb_y_n_order = QtWidgets.QComboBox(self.Tab) self.cb_y_n_order.setEnabled(False) self.cb_y_n_order.setObjectName("cb_y_n_order") self.cb_y_n_order.addItem("") self.cb_y_n_order.addItem("") self.cb_y_n_order.addItem("") self.cb_y_n_order.addItem("") self.cb_y_n_order.addItem("") self.cb_y_n_order.addItem("") self.cb_y_n_order.addItem("") self.cb_y_n_order.addItem("") self.cb_y_n_order.addItem("") self.cb_y_n_order.addItem("") self.cb_y_n_order.addItem("") self.cb_y_n_order.addItem("") self.cb_y_n_order.addItem("") self.cb_y_n_order.addItem("") self.cb_y_n_order.addItem("") self.gridLayout.addWidget(self.cb_y_n_order, 0, 4, 1, 1) self.cb_x_n_order = QtWidgets.QComboBox(self.Tab) self.cb_x_n_order.setEnabled(False) self.cb_x_n_order.setObjectName("cb_x_n_order") self.cb_x_n_order.addItem("") self.cb_x_n_order.addItem("") self.cb_x_n_order.addItem("") self.cb_x_n_order.addItem("") self.cb_x_n_order.addItem("") self.cb_x_n_order.addItem("") self.cb_x_n_order.addItem("") self.cb_x_n_order.addItem("") self.cb_x_n_order.addItem("") self.cb_x_n_order.addItem("") self.cb_x_n_order.addItem("") self.cb_x_n_order.addItem("") self.cb_x_n_order.addItem("") self.cb_x_n_order.addItem("") self.gridLayout.addWidget(self.cb_x_n_order, 1, 4, 1, 1) self.verticalLayout_2.addLayout(self.gridLayout) self.pb_viewtable = QtWidgets.QPushButton(self.Tab) self.pb_viewtable.setEnabled(False) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.pb_viewtable.sizePolicy().hasHeightForWidth()) self.pb_viewtable.setSizePolicy(sizePolicy) icon4 = QtGui.QIcon() icon4.addPixmap(QtGui.QPixmap(":/images/resource/table.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.pb_viewtable.setIcon(icon4) self.pb_viewtable.setObjectName("pb_viewtable") self.verticalLayout_2.addWidget(self.pb_viewtable) self.graphicsView = PlotWidget(self.Tab) brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) brush.setStyle(QtCore.Qt.NoBrush) self.graphicsView.setBackgroundBrush(brush) self.graphicsView.setObjectName("graphicsView") self.verticalLayout_2.addWidget(self.graphicsView) self.verticalLayout_3.addLayout(self.verticalLayout_2) self.tabWidget.addTab(self.Tab, "") self.tab_2 = QtWidgets.QWidget() self.tab_2.setObjectName("tab_2") self.tabWidget.addTab(self.tab_2, "") self.gridLayout_2.addWidget(self.tabWidget, 1, 0, 1, 1) self.retranslateUi(Machine_Learn_Interface) self.tabWidget.setCurrentIndex(0) self.cb_y_n_order.setCurrentIndex(1) self.cb_x_n_order.setCurrentIndex(1) QtCore.QMetaObject.connectSlotsByName(Machine_Learn_Interface)
def setupUi(self, MainWindow): MainWindow.setObjectName("MainWindow") MainWindow.resize(962, 535) self.centralwidget = QtWidgets.QWidget(MainWindow) self.centralwidget.setObjectName("centralwidget") self.graphicsView = PlotWidget(self.centralwidget) self.graphicsView.setGeometry(QtCore.QRect(10, 10, 941, 411)) self.graphicsView.setObjectName("graphicsView") self.splitter = QtWidgets.QSplitter(self.centralwidget) self.splitter.setGeometry(QtCore.QRect(370, 430, 511, 61)) self.splitter.setOrientation(QtCore.Qt.Horizontal) self.splitter.setObjectName("splitter") self.pushButton = QtWidgets.QPushButton(self.splitter) font = QtGui.QFont() font.setPointSize(12) font.setBold(True) font.setWeight(75) self.pushButton.setFont(font) self.pushButton.setObjectName("pushButton") self.pushButton_2 = QtWidgets.QPushButton(self.splitter) font = QtGui.QFont() font.setPointSize(12) font.setBold(True) font.setWeight(75) self.pushButton_2.setFont(font) self.pushButton_2.setObjectName("pushButton_2") self.lcdNumber = QtWidgets.QLCDNumber(self.centralwidget) self.lcdNumber.setGeometry(QtCore.QRect(90, 430, 201, 61)) palette = QtGui.QPalette() brush = QtGui.QBrush(QtGui.QColor(0, 170, 0)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.WindowText, brush) brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Light, brush) brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Midlight, brush) brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Dark, brush) brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Mid, brush) brush = QtGui.QBrush(QtGui.QColor(0, 170, 0)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Text, brush) brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.ButtonText, brush) brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Base, brush) brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Window, brush) brush = QtGui.QBrush(QtGui.QColor(255, 0, 0, 128)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.PlaceholderText, brush) brush = QtGui.QBrush(QtGui.QColor(0, 170, 0)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.WindowText, brush) brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Light, brush) brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Midlight, brush) brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Dark, brush) brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Mid, brush) brush = QtGui.QBrush(QtGui.QColor(0, 170, 0)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Text, brush) brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.ButtonText, brush) brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Base, brush) brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Window, brush) brush = QtGui.QBrush(QtGui.QColor(255, 0, 0, 128)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.PlaceholderText, brush) brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.WindowText, brush) brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Light, brush) brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Midlight, brush) brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Dark, brush) brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Mid, brush) brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Text, brush) brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.ButtonText, brush) brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Base, brush) brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Window, brush) brush = QtGui.QBrush(QtGui.QColor(255, 0, 0, 128)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.PlaceholderText, brush) self.lcdNumber.setPalette(palette) self.lcdNumber.setAutoFillBackground(True) self.lcdNumber.setSmallDecimalPoint(True) self.lcdNumber.setDigitCount(5) self.lcdNumber.setMode(QtWidgets.QLCDNumber.Dec) self.lcdNumber.setSegmentStyle(QtWidgets.QLCDNumber.Flat) self.lcdNumber.setProperty("value", 0.0) self.lcdNumber.setObjectName("lcdNumber") self.label = QtWidgets.QLabel(self.centralwidget) self.label.setGeometry(QtCore.QRect(100, 430, 31, 21)) palette = QtGui.QPalette() brush = QtGui.QBrush(QtGui.QColor(0, 170, 0)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.WindowText, brush) brush = QtGui.QBrush(QtGui.QColor(0, 170, 0)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Text, brush) brush = QtGui.QBrush(QtGui.QColor(255, 0, 0)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.BrightText, brush) brush = QtGui.QBrush(QtGui.QColor(255, 0, 0)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.ButtonText, brush) brush = QtGui.QBrush(QtGui.QColor(255, 0, 0, 128)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.PlaceholderText, brush) brush = QtGui.QBrush(QtGui.QColor(0, 170, 0)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.WindowText, brush) brush = QtGui.QBrush(QtGui.QColor(0, 170, 0)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Text, brush) brush = QtGui.QBrush(QtGui.QColor(255, 0, 0)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.BrightText, brush) brush = QtGui.QBrush(QtGui.QColor(255, 0, 0)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.ButtonText, brush) brush = QtGui.QBrush(QtGui.QColor(255, 0, 0, 128)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.PlaceholderText, brush) brush = QtGui.QBrush(QtGui.QColor(120, 120, 120)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.WindowText, brush) brush = QtGui.QBrush(QtGui.QColor(120, 120, 120)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Text, brush) brush = QtGui.QBrush(QtGui.QColor(255, 0, 0)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.BrightText, brush) brush = QtGui.QBrush(QtGui.QColor(120, 120, 120)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.ButtonText, brush) brush = QtGui.QBrush(QtGui.QColor(0, 0, 0, 128)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.PlaceholderText, brush) self.label.setPalette(palette) font = QtGui.QFont() font.setFamily("Georgia") font.setPointSize(14) font.setBold(False) font.setWeight(50) self.label.setFont(font) self.label.setObjectName("label") MainWindow.setCentralWidget(self.centralwidget) self.menubar = QtWidgets.QMenuBar(MainWindow) self.menubar.setGeometry(QtCore.QRect(0, 0, 962, 21)) self.menubar.setObjectName("menubar") MainWindow.setMenuBar(self.menubar) self.statusbar = QtWidgets.QStatusBar(MainWindow) self.statusbar.setObjectName("statusbar") MainWindow.setStatusBar(self.statusbar) self.retranslateUi(MainWindow) QtCore.QMetaObject.connectSlotsByName(MainWindow) self.pushButton_2.clicked.connect(self.clear_values) self.pushButton.clicked.connect(self.toggle_start) self.graphicsView.setLabel('left', "ECG (mV)") self.graphicsView.setLabel('bottom', "Tiempo (s)")
def setupUi(self, MainWindow): MainWindow.setObjectName("MainWindow") MainWindow.resize(850, 700) icon = QtGui.QIcon.fromTheme(":/icon/color") MainWindow.setWindowIcon(icon) self.centralwidget = QtWidgets.QWidget(MainWindow) self.centralwidget.setObjectName("centralwidget") self.verticalLayout = QtWidgets.QVBoxLayout(self.centralwidget) self.verticalLayout.setObjectName("verticalLayout") self.filelist_label = QtWidgets.QLabel(self.centralwidget) self.filelist_label.setObjectName("filelist_label") self.verticalLayout.addWidget(self.filelist_label) self.splitter_horizontal = QtWidgets.QSplitter(self.centralwidget) self.splitter_horizontal.setOrientation(QtCore.Qt.Vertical) self.splitter_horizontal.setObjectName("splitter_horizontal") self.tableView = MyTableView(self.splitter_horizontal) self.tableView.setContextMenuPolicy(QtCore.Qt.ActionsContextMenu) self.tableView.setObjectName("tableView") self.listView = MyListView(self.splitter_horizontal) self.listView.setContextMenuPolicy(QtCore.Qt.ActionsContextMenu) self.listView.setObjectName("listView") self.splitter_vertical = QtWidgets.QSplitter(self.splitter_horizontal) self.splitter_vertical.setOrientation(QtCore.Qt.Horizontal) self.splitter_vertical.setObjectName("splitter_vertical") self.layoutWidget = QtWidgets.QWidget(self.splitter_vertical) self.layoutWidget.setObjectName("layoutWidget") self.verticalLayout_1 = QtWidgets.QVBoxLayout(self.layoutWidget) self.verticalLayout_1.setContentsMargins(0, 0, 0, 0) self.verticalLayout_1.setObjectName("verticalLayout_1") self.log_label = QtWidgets.QLabel(self.layoutWidget) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Maximum) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.log_label.sizePolicy().hasHeightForWidth()) self.log_label.setSizePolicy(sizePolicy) self.log_label.setObjectName("log_label") self.verticalLayout_1.addWidget(self.log_label) self.searchLog = QtWidgets.QLineEdit(self.layoutWidget) self.searchLog.setObjectName("searchLog") self.verticalLayout_1.addWidget(self.searchLog) self.logWidget = LogWidget(self.layoutWidget) self.logWidget.setObjectName("logWidget") self.verticalLayout_1.addWidget(self.logWidget) self.layoutWidget1 = QtWidgets.QWidget(self.splitter_vertical) self.layoutWidget1.setObjectName("layoutWidget1") self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.layoutWidget1) self.verticalLayout_2.setContentsMargins(0, 0, 0, 0) self.verticalLayout_2.setObjectName("verticalLayout_2") self.pktReceive_label = QtWidgets.QLabel(self.layoutWidget1) self.pktReceive_label.setObjectName("pktReceive_label") self.verticalLayout_2.addWidget(self.pktReceive_label) self.dataPktReceive = QtWidgets.QTreeWidget(self.layoutWidget1) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.dataPktReceive.sizePolicy().hasHeightForWidth()) self.dataPktReceive.setSizePolicy(sizePolicy) self.dataPktReceive.setObjectName("dataPktReceive") self.dataPktReceive.headerItem().setText(0, "文件/包") self.dataPktReceive.header().setStretchLastSection(False) self.verticalLayout_2.addWidget(self.dataPktReceive) self.speed_label = QtWidgets.QLabel(self.layoutWidget1) self.speed_label.setObjectName("speed_label") self.verticalLayout_2.addWidget(self.speed_label) self.speedGraph = PlotWidget(self.layoutWidget1) self.speedGraph.setObjectName("speedGraph") self.verticalLayout_2.addWidget(self.speedGraph) self.verticalLayout.addWidget(self.splitter_horizontal) MainWindow.setCentralWidget(self.centralwidget) self.menubar = QtWidgets.QMenuBar(MainWindow) self.menubar.setGeometry(QtCore.QRect(0, 0, 850, 23)) self.menubar.setObjectName("menubar") self.menu = QtWidgets.QMenu(self.menubar) self.menu.setObjectName("menu") self.menu_2 = QtWidgets.QMenu(self.menubar) self.menu_2.setObjectName("menu_2") self.menu_3 = QtWidgets.QMenu(self.menubar) self.menu_3.setObjectName("menu_3") MainWindow.setMenuBar(self.menubar) self.statusbar = QtWidgets.QStatusBar(MainWindow) self.statusbar.setObjectName("statusbar") MainWindow.setStatusBar(self.statusbar) self.toolBar = QtWidgets.QToolBar(MainWindow) self.toolBar.setMinimumSize(QtCore.QSize(16, 16)) self.toolBar.setObjectName("toolBar") MainWindow.addToolBar(QtCore.Qt.TopToolBarArea, self.toolBar) self.action_reg = QtWidgets.QAction(MainWindow) self.action_reg.setObjectName("action_reg") self.action_undoReg = QtWidgets.QAction(MainWindow) self.action_undoReg.setObjectName("action_undoReg") self.action_dow = QtWidgets.QAction(MainWindow) self.action_dow.setObjectName("action_dow") self.action_del = QtWidgets.QAction(MainWindow) self.action_del.setObjectName("action_del") self.action_hub = QtWidgets.QAction(MainWindow) self.action_hub.setObjectName("action_hub") self.action_add = QtWidgets.QAction(MainWindow) self.action_add.setObjectName("action_add") self.action_import = QtWidgets.QAction(MainWindow) self.action_import.setObjectName("action_import") self.action_openDir = QtWidgets.QAction(MainWindow) self.action_openDir.setObjectName("action_openDir") self.action_swi = QtWidgets.QAction(MainWindow) self.action_swi.setObjectName("action_swi") self.action_reset = QtWidgets.QAction(MainWindow) self.action_reset.setObjectName("action_reset") self.actionWindows = QtWidgets.QAction(MainWindow) self.actionWindows.setObjectName("actionWindows") self.actionFusion = QtWidgets.QAction(MainWindow) self.actionFusion.setObjectName("actionFusion") self.actionQdarkstyle = QtWidgets.QAction(MainWindow) self.actionQdarkstyle.setObjectName("actionQdarkstyle") self.actionwindowsvista = QtWidgets.QAction(MainWindow) self.actionwindowsvista.setObjectName("actionwindowsvista") self.action_advancedreg = QtWidgets.QAction(MainWindow) self.action_advancedreg.setObjectName("action_advancedreg") self.action_video = QtWidgets.QAction(MainWindow) self.action_video.setObjectName("action_video") self.action_cmdline = QtWidgets.QAction(MainWindow) self.action_cmdline.setObjectName("action_cmdline") self.menu.addAction(self.action_import) self.menu.addAction(self.action_swi) self.menu.addAction(self.action_reset) self.menu.addAction(self.action_hub) self.menu.addAction(self.action_video) self.menu.addAction(self.action_cmdline) self.menu_2.addAction(self.action_add) self.menu_2.addAction(self.action_reg) self.menu_2.addAction(self.action_advancedreg) self.menu_2.addAction(self.action_undoReg) self.menu_2.addAction(self.action_dow) self.menu_2.addAction(self.action_del) self.menu_2.addAction(self.action_openDir) self.menu_3.addAction(self.actionWindows) self.menu_3.addAction(self.actionwindowsvista) self.menu_3.addAction(self.actionFusion) self.menu_3.addAction(self.actionQdarkstyle) self.menubar.addAction(self.menu.menuAction()) self.menubar.addAction(self.menu_2.menuAction()) self.menubar.addAction(self.menu_3.menuAction()) self.retranslateUi(MainWindow) QtCore.QMetaObject.connectSlotsByName(MainWindow)
def setupUi(self, Dialog): Dialog.setObjectName("Dialog") Dialog.resize(667, 388) self.gridLayout = QtWidgets.QGridLayout(Dialog) self.gridLayout.setObjectName("gridLayout") self.pushButton = QtWidgets.QPushButton(Dialog) self.pushButton.setObjectName("pushButton") self.gridLayout.addWidget(self.pushButton, 0, 0, 1, 1) spacerItem = QtWidgets.QSpacerItem(93, 17, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.gridLayout.addItem(spacerItem, 0, 1, 1, 1) self.frame = QtWidgets.QFrame(Dialog) self.frame.setMaximumSize(QtCore.QSize(80, 16777215)) self.frame.setFrameShape(QtWidgets.QFrame.StyledPanel) self.frame.setFrameShadow(QtWidgets.QFrame.Raised) self.frame.setObjectName("frame") self.verticalLayout_3 = QtWidgets.QVBoxLayout(self.frame) self.verticalLayout_3.setContentsMargins(0, 0, 0, 0) self.verticalLayout_3.setSpacing(3) self.verticalLayout_3.setObjectName("verticalLayout_3") self.pushButton_3 = QtWidgets.QPushButton(self.frame) self.pushButton_3.setText("") icon = QtGui.QIcon() icon.addPixmap(QtGui.QPixmap(":/control/plus.svg"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.pushButton_3.setIcon(icon) self.pushButton_3.setObjectName("pushButton_3") self.verticalLayout_3.addWidget(self.pushButton_3) self.listWidget = QtWidgets.QListWidget(self.frame) self.listWidget.setObjectName("listWidget") self.verticalLayout_3.addWidget(self.listWidget) self.pushButton_4 = QtWidgets.QPushButton(self.frame) self.pushButton_4.setText("") icon1 = QtGui.QIcon() icon1.addPixmap(QtGui.QPixmap(":/control/play.svg"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.pushButton_4.setIcon(icon1) self.pushButton_4.setObjectName("pushButton_4") self.verticalLayout_3.addWidget(self.pushButton_4) self.gridLayout.addWidget(self.frame, 0, 2, 3, 1) self.monitors = QtWidgets.QStackedWidget(Dialog) self.monitors.setObjectName("monitors") self.page_1 = QtWidgets.QWidget() self.page_1.setObjectName("page_1") self.gaugeLayout = QtWidgets.QHBoxLayout(self.page_1) self.gaugeLayout.setContentsMargins(5, 5, 5, 5) self.gaugeLayout.setObjectName("gaugeLayout") self.monitors.addWidget(self.page_1) self.page_2 = QtWidgets.QWidget() self.page_2.setObjectName("page_2") self.horizontalLayout_3 = QtWidgets.QHBoxLayout(self.page_2) self.horizontalLayout_3.setContentsMargins(0, 0, 0, 0) self.horizontalLayout_3.setSpacing(0) self.horizontalLayout_3.setObjectName("horizontalLayout_3") self.graph = PlotWidget(self.page_2) self.graph.setObjectName("graph") self.horizontalLayout_3.addWidget(self.graph) self.monitors.addWidget(self.page_2) self.gridLayout.addWidget(self.monitors, 2, 0, 1, 2) self.configLayout = QtWidgets.QHBoxLayout() self.configLayout.setObjectName("configLayout") self.gridLayout.addLayout(self.configLayout, 1, 0, 1, 2) self.retranslateUi(Dialog) self.monitors.setCurrentIndex(0) self.pushButton_3.clicked.connect(Dialog.add) self.pushButton_4.clicked.connect(Dialog.play) self.pushButton.clicked.connect(Dialog.initialize) QtCore.QMetaObject.connectSlotsByName(Dialog)
def setupUi(self, SoundEquilizer): SoundEquilizer.setObjectName("SoundEquilizer") SoundEquilizer.resize(1268, 926) self.centralwidget = QtWidgets.QWidget(SoundEquilizer) self.centralwidget.setObjectName("centralwidget") self.HalfFourierTransformGraph = PlotWidget(self.centralwidget) self.HalfFourierTransformGraph.setGeometry( QtCore.QRect(20, 10, 1231, 541)) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Ignored, QtWidgets.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.HalfFourierTransformGraph.sizePolicy().hasHeightForWidth()) self.HalfFourierTransformGraph.setSizePolicy(sizePolicy) self.HalfFourierTransformGraph.setObjectName( "HalfFourierTransformGraph") self.horizontalLayoutWidget = QtWidgets.QWidget(self.centralwidget) self.horizontalLayoutWidget.setGeometry( QtCore.QRect(10, 570, 1071, 191)) self.horizontalLayoutWidget.setObjectName("horizontalLayoutWidget") self.horizontalLayout = QtWidgets.QHBoxLayout( self.horizontalLayoutWidget) self.horizontalLayout.setContentsMargins(0, 0, 0, 0) self.horizontalLayout.setObjectName("horizontalLayout") self.FirstBandSlider = QtWidgets.QSlider(self.horizontalLayoutWidget) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.FirstBandSlider.sizePolicy().hasHeightForWidth()) self.FirstBandSlider.setSizePolicy(sizePolicy) self.FirstBandSlider.setMinimum(0) self.FirstBandSlider.setMaximum(100) self.FirstBandSlider.setTracking(True) self.FirstBandSlider.setOrientation(QtCore.Qt.Vertical) self.FirstBandSlider.setObjectName("FirstBandSlider") self.horizontalLayout.addWidget(self.FirstBandSlider) self.SecondBandSlider = QtWidgets.QSlider(self.horizontalLayoutWidget) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.SecondBandSlider.sizePolicy().hasHeightForWidth()) self.SecondBandSlider.setSizePolicy(sizePolicy) self.SecondBandSlider.setMinimum(0) self.SecondBandSlider.setMaximum(100) self.SecondBandSlider.setTracking(True) self.SecondBandSlider.setOrientation(QtCore.Qt.Vertical) self.SecondBandSlider.setTickPosition(QtWidgets.QSlider.NoTicks) self.SecondBandSlider.setObjectName("SecondBandSlider") self.horizontalLayout.addWidget(self.SecondBandSlider) self.ThirdBandSlider = QtWidgets.QSlider(self.horizontalLayoutWidget) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.ThirdBandSlider.sizePolicy().hasHeightForWidth()) self.ThirdBandSlider.setSizePolicy(sizePolicy) self.ThirdBandSlider.setMinimum(0) self.ThirdBandSlider.setMaximum(100) self.ThirdBandSlider.setTracking(True) self.ThirdBandSlider.setOrientation(QtCore.Qt.Vertical) self.ThirdBandSlider.setObjectName("ThirdBandSlider") self.horizontalLayout.addWidget(self.ThirdBandSlider) self.FourthBandSlider = QtWidgets.QSlider(self.horizontalLayoutWidget) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.FourthBandSlider.sizePolicy().hasHeightForWidth()) self.FourthBandSlider.setSizePolicy(sizePolicy) self.FourthBandSlider.setMinimum(0) self.FourthBandSlider.setMaximum(100) self.FourthBandSlider.setTracking(True) self.FourthBandSlider.setOrientation(QtCore.Qt.Vertical) self.FourthBandSlider.setTickPosition(QtWidgets.QSlider.NoTicks) self.FourthBandSlider.setObjectName("FourthBandSlider") self.horizontalLayout.addWidget(self.FourthBandSlider) self.FifthBandSlider = QtWidgets.QSlider(self.horizontalLayoutWidget) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.FifthBandSlider.sizePolicy().hasHeightForWidth()) self.FifthBandSlider.setSizePolicy(sizePolicy) self.FifthBandSlider.setMinimum(0) self.FifthBandSlider.setMaximum(100) self.FifthBandSlider.setTracking(True) self.FifthBandSlider.setOrientation(QtCore.Qt.Vertical) self.FifthBandSlider.setObjectName("FifthBandSlider") self.horizontalLayout.addWidget(self.FifthBandSlider) self.SixthBandSlider = QtWidgets.QSlider(self.horizontalLayoutWidget) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.SixthBandSlider.sizePolicy().hasHeightForWidth()) self.SixthBandSlider.setSizePolicy(sizePolicy) self.SixthBandSlider.setMinimum(0) self.SixthBandSlider.setMaximum(100) self.SixthBandSlider.setTracking(True) self.SixthBandSlider.setOrientation(QtCore.Qt.Vertical) self.SixthBandSlider.setTickPosition(QtWidgets.QSlider.NoTicks) self.SixthBandSlider.setObjectName("SixthBandSlider") self.horizontalLayout.addWidget(self.SixthBandSlider) self.SeventhBandSlider = QtWidgets.QSlider(self.horizontalLayoutWidget) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.SeventhBandSlider.sizePolicy().hasHeightForWidth()) self.SeventhBandSlider.setSizePolicy(sizePolicy) self.SeventhBandSlider.setMinimum(0) self.SeventhBandSlider.setMaximum(100) self.SeventhBandSlider.setTracking(True) self.SeventhBandSlider.setOrientation(QtCore.Qt.Vertical) self.SeventhBandSlider.setObjectName("SeventhBandSlider") self.horizontalLayout.addWidget(self.SeventhBandSlider) self.EighthBandSlider = QtWidgets.QSlider(self.horizontalLayoutWidget) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.EighthBandSlider.sizePolicy().hasHeightForWidth()) self.EighthBandSlider.setSizePolicy(sizePolicy) self.EighthBandSlider.setMinimum(0) self.EighthBandSlider.setMaximum(100) self.EighthBandSlider.setTracking(True) self.EighthBandSlider.setOrientation(QtCore.Qt.Vertical) self.EighthBandSlider.setTickPosition(QtWidgets.QSlider.NoTicks) self.EighthBandSlider.setObjectName("EighthBandSlider") self.horizontalLayout.addWidget(self.EighthBandSlider) self.NinthBandSlider = QtWidgets.QSlider(self.horizontalLayoutWidget) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.NinthBandSlider.sizePolicy().hasHeightForWidth()) self.NinthBandSlider.setSizePolicy(sizePolicy) self.NinthBandSlider.setMinimum(0) self.NinthBandSlider.setMaximum(100) self.NinthBandSlider.setTracking(True) self.NinthBandSlider.setOrientation(QtCore.Qt.Vertical) self.NinthBandSlider.setObjectName("NinthBandSlider") self.horizontalLayout.addWidget(self.NinthBandSlider) self.TenthBandSlider = QtWidgets.QSlider(self.horizontalLayoutWidget) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.TenthBandSlider.sizePolicy().hasHeightForWidth()) self.TenthBandSlider.setSizePolicy(sizePolicy) self.TenthBandSlider.setMinimum(0) self.TenthBandSlider.setMaximum(100) self.TenthBandSlider.setTracking(True) self.TenthBandSlider.setOrientation(QtCore.Qt.Vertical) self.TenthBandSlider.setTickPosition(QtWidgets.QSlider.NoTicks) self.TenthBandSlider.setObjectName("TenthBandSlider") self.horizontalLayout.addWidget(self.TenthBandSlider) self.verticalLayoutWidget = QtWidgets.QWidget(self.centralwidget) self.verticalLayoutWidget.setGeometry(QtCore.QRect( 1080, 570, 171, 191)) self.verticalLayoutWidget.setObjectName("verticalLayoutWidget") self.verticalLayout = QtWidgets.QVBoxLayout(self.verticalLayoutWidget) self.verticalLayout.setContentsMargins(0, 0, 0, 0) self.verticalLayout.setObjectName("verticalLayout") self.Choose = QtWidgets.QLabel(self.verticalLayoutWidget) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.Choose.sizePolicy().hasHeightForWidth()) self.Choose.setSizePolicy(sizePolicy) palette = QtGui.QPalette() brush = QtGui.QBrush(QtGui.QColor(255, 7, 11)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.HighlightedText, brush) brush = QtGui.QBrush(QtGui.QColor(255, 7, 11)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.HighlightedText, brush) brush = QtGui.QBrush(QtGui.QColor(255, 7, 11)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.HighlightedText, brush) self.Choose.setPalette(palette) self.Choose.setObjectName("Choose") self.verticalLayout.addWidget(self.Choose) self.RectWindow = QtWidgets.QRadioButton(self.verticalLayoutWidget) self.RectWindow.setAutoRepeat(False) self.RectWindow.setAutoExclusive(True) self.RectWindow.setObjectName("RectWindow") self.verticalLayout.addWidget(self.RectWindow) self.HamWindow = QtWidgets.QRadioButton(self.verticalLayoutWidget) self.HamWindow.setAutoRepeat(False) self.HamWindow.setAutoExclusive(True) self.HamWindow.setObjectName("HamWindow") self.verticalLayout.addWidget(self.HamWindow) self.HanWindow = QtWidgets.QRadioButton(self.verticalLayoutWidget) self.HanWindow.setAutoRepeat(False) self.HanWindow.setAutoExclusive(True) self.HanWindow.setObjectName("HanWindow") self.verticalLayout.addWidget(self.HanWindow) self.horizontalLayoutWidget_2 = QtWidgets.QWidget(self.centralwidget) self.horizontalLayoutWidget_2.setGeometry( QtCore.QRect(10, 760, 1071, 61)) self.horizontalLayoutWidget_2.setObjectName("horizontalLayoutWidget_2") self.horizontalLayout_2 = QtWidgets.QHBoxLayout( self.horizontalLayoutWidget_2) self.horizontalLayout_2.setContentsMargins(0, 0, 0, 0) self.horizontalLayout_2.setObjectName("horizontalLayout_2") self.FirstBandSpinBox = QtWidgets.QSpinBox( self.horizontalLayoutWidget_2) self.FirstBandSpinBox.setMinimum(0) self.FirstBandSpinBox.setMaximum(100) self.FirstBandSpinBox.setObjectName("FirstBandSpinBox") self.horizontalLayout_2.addWidget(self.FirstBandSpinBox) self.SecondBandSpinBox = QtWidgets.QSpinBox( self.horizontalLayoutWidget_2) self.SecondBandSpinBox.setMinimum(0) self.SecondBandSpinBox.setMaximum(100) self.SecondBandSpinBox.setObjectName("SecondBandSpinBox") self.horizontalLayout_2.addWidget(self.SecondBandSpinBox) self.ThirdBandSpinBox = QtWidgets.QSpinBox( self.horizontalLayoutWidget_2) self.ThirdBandSpinBox.setMinimum(0) self.ThirdBandSpinBox.setMaximum(100) self.ThirdBandSpinBox.setObjectName("ThirdBandSpinBox") self.horizontalLayout_2.addWidget(self.ThirdBandSpinBox) self.FourthBandSpinBox = QtWidgets.QSpinBox( self.horizontalLayoutWidget_2) self.FourthBandSpinBox.setMinimum(0) self.FourthBandSpinBox.setMaximum(100) self.FourthBandSpinBox.setObjectName("FourthBandSpinBox") self.horizontalLayout_2.addWidget(self.FourthBandSpinBox) self.FifthBandSpinBox = QtWidgets.QSpinBox( self.horizontalLayoutWidget_2) self.FifthBandSpinBox.setMinimum(0) self.FifthBandSpinBox.setMaximum(100) self.FifthBandSpinBox.setObjectName("FifthBandSpinBox") self.horizontalLayout_2.addWidget(self.FifthBandSpinBox) self.SixthBandSpinBox = QtWidgets.QSpinBox( self.horizontalLayoutWidget_2) self.SixthBandSpinBox.setMinimum(0) self.SixthBandSpinBox.setMaximum(100) self.SixthBandSpinBox.setObjectName("SixthBandSpinBox") self.horizontalLayout_2.addWidget(self.SixthBandSpinBox) self.SeventhBandSpinBox = QtWidgets.QSpinBox( self.horizontalLayoutWidget_2) self.SeventhBandSpinBox.setMinimum(0) self.SeventhBandSpinBox.setMaximum(100) self.SeventhBandSpinBox.setObjectName("SeventhBandSpinBox") self.horizontalLayout_2.addWidget(self.SeventhBandSpinBox) self.EighthBandSpinBox = QtWidgets.QSpinBox( self.horizontalLayoutWidget_2) self.EighthBandSpinBox.setMinimum(0) self.EighthBandSpinBox.setMaximum(100) self.EighthBandSpinBox.setObjectName("EighthBandSpinBox") self.horizontalLayout_2.addWidget(self.EighthBandSpinBox) self.NinthBandSpinBox = QtWidgets.QSpinBox( self.horizontalLayoutWidget_2) self.NinthBandSpinBox.setMinimum(0) self.NinthBandSpinBox.setMaximum(100) self.NinthBandSpinBox.setObjectName("NinthBandSpinBox") self.horizontalLayout_2.addWidget(self.NinthBandSpinBox) self.TenthBandSpinBox = QtWidgets.QSpinBox( self.horizontalLayoutWidget_2) self.TenthBandSpinBox.setMinimum(0) self.TenthBandSpinBox.setMaximum(100) self.TenthBandSpinBox.setObjectName("TenthBandSpinBox") self.horizontalLayout_2.addWidget(self.TenthBandSpinBox) self.horizontalLayoutWidget_3 = QtWidgets.QWidget(self.centralwidget) self.horizontalLayoutWidget_3.setGeometry( QtCore.QRect(10, 820, 1071, 51)) self.horizontalLayoutWidget_3.setObjectName("horizontalLayoutWidget_3") self.horizontalLayout_3 = QtWidgets.QHBoxLayout( self.horizontalLayoutWidget_3) self.horizontalLayout_3.setContentsMargins(0, 0, 0, 0) self.horizontalLayout_3.setObjectName("horizontalLayout_3") self.FirstBandLabel = QtWidgets.QLabel(self.horizontalLayoutWidget_3) self.FirstBandLabel.setObjectName("FirstBandLabel") self.horizontalLayout_3.addWidget(self.FirstBandLabel) self.SecondBandLabel = QtWidgets.QLabel(self.horizontalLayoutWidget_3) self.SecondBandLabel.setObjectName("SecondBandLabel") self.horizontalLayout_3.addWidget(self.SecondBandLabel) self.ThirdBandLabel = QtWidgets.QLabel(self.horizontalLayoutWidget_3) self.ThirdBandLabel.setObjectName("ThirdBandLabel") self.horizontalLayout_3.addWidget(self.ThirdBandLabel) self.FourthBandLabel = QtWidgets.QLabel(self.horizontalLayoutWidget_3) self.FourthBandLabel.setObjectName("FourthBandLabel") self.horizontalLayout_3.addWidget(self.FourthBandLabel) self.FifthBandLabel = QtWidgets.QLabel(self.horizontalLayoutWidget_3) self.FifthBandLabel.setObjectName("FifthBandLabel") self.horizontalLayout_3.addWidget(self.FifthBandLabel) self.SixthBandLabel = QtWidgets.QLabel(self.horizontalLayoutWidget_3) self.SixthBandLabel.setObjectName("SixthBandLabel") self.horizontalLayout_3.addWidget(self.SixthBandLabel) self.SeventhBandLabel = QtWidgets.QLabel(self.horizontalLayoutWidget_3) self.SeventhBandLabel.setObjectName("SeventhBandLabel") self.horizontalLayout_3.addWidget(self.SeventhBandLabel) self.EighthBandLabel = QtWidgets.QLabel(self.horizontalLayoutWidget_3) self.EighthBandLabel.setObjectName("EighthBandLabel") self.horizontalLayout_3.addWidget(self.EighthBandLabel) self.NinthBandLabel = QtWidgets.QLabel(self.horizontalLayoutWidget_3) self.NinthBandLabel.setObjectName("NinthBandLabel") self.horizontalLayout_3.addWidget(self.NinthBandLabel) self.TenthBandLabel = QtWidgets.QLabel(self.horizontalLayoutWidget_3) self.TenthBandLabel.setObjectName("TenthBandLabel") self.horizontalLayout_3.addWidget(self.TenthBandLabel) self.gridLayoutWidget = QtWidgets.QWidget(self.centralwidget) self.gridLayoutWidget.setGeometry(QtCore.QRect(1080, 760, 171, 111)) self.gridLayoutWidget.setObjectName("gridLayoutWidget") self.gridLayout = QtWidgets.QGridLayout(self.gridLayoutWidget) self.gridLayout.setContentsMargins(0, 0, 0, 0) self.gridLayout.setObjectName("gridLayout") self.NextPushButton = QtWidgets.QPushButton(self.gridLayoutWidget) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.NextPushButton.sizePolicy().hasHeightForWidth()) self.NextPushButton.setSizePolicy(sizePolicy) self.NextPushButton.setObjectName("NextPushButton") self.gridLayout.addWidget(self.NextPushButton, 0, 0, 1, 1) SoundEquilizer.setCentralWidget(self.centralwidget) self.menubar = QtWidgets.QMenuBar(SoundEquilizer) self.menubar.setGeometry(QtCore.QRect(0, 0, 1268, 25)) self.menubar.setObjectName("menubar") SoundEquilizer.setMenuBar(self.menubar) self.statusbar = QtWidgets.QStatusBar(SoundEquilizer) self.statusbar.setObjectName("statusbar") SoundEquilizer.setStatusBar(self.statusbar) self.SliderArr = [ self.FirstBandSlider, self.SecondBandSlider, self.ThirdBandSlider, self.FourthBandSlider, self.FifthBandSlider, self.SixthBandSlider, self.SeventhBandSlider, self.EighthBandSlider, self.NinthBandSlider, self.TenthBandSlider ] self.SpinArr = [ self.FirstBandSpinBox, self.SecondBandSpinBox, self.ThirdBandSpinBox, self.FourthBandSpinBox, self.FifthBandSpinBox, self.SixthBandSpinBox, self.SeventhBandSpinBox, self.EighthBandSpinBox, self.NinthBandSpinBox, self.TenthBandSpinBox ] self.HalfFourier = [] self.NegativeHalf = [] self.BandsArray = [] self.Length = 0 self.SubLength = 0 self.Magnitude = [] self.RightMagnitude = [] self.LeftMagnitude = [] self.Phase = [] self.output2 = [] self.retranslateUi(SoundEquilizer) QtCore.QMetaObject.connectSlotsByName(SoundEquilizer)
def setupUi(self, Form): Form.setObjectName("Form") Form.resize(929, 769) self.gridLayout = QtWidgets.QGridLayout(Form) self.gridLayout.setObjectName("gridLayout") self.splitter_2 = QtWidgets.QSplitter(Form) self.splitter_2.setOrientation(QtCore.Qt.Horizontal) self.splitter_2.setObjectName("splitter_2") self.splitter = QtWidgets.QSplitter(self.splitter_2) self.splitter.setOrientation(QtCore.Qt.Vertical) self.splitter.setObjectName("splitter") self.horizontalLayoutWidget = QtWidgets.QWidget(self.splitter) self.horizontalLayoutWidget.setObjectName("horizontalLayoutWidget") self.horizontalLayout_settings = QtWidgets.QHBoxLayout(self.horizontalLayoutWidget) self.horizontalLayout_settings.setContentsMargins(0, 0, 0, 0) self.horizontalLayout_settings.setObjectName("horizontalLayout_settings") self.verticalLayout = QtWidgets.QVBoxLayout() self.verticalLayout.setSpacing(0) self.verticalLayout.setObjectName("verticalLayout") self.horizontalLayout = QtWidgets.QHBoxLayout() self.horizontalLayout.setSpacing(0) self.horizontalLayout.setObjectName("horizontalLayout") self.zoom_pb = QtWidgets.QPushButton(self.horizontalLayoutWidget) self.zoom_pb.setText("") icon = QtGui.QIcon() icon.addPixmap(QtGui.QPixmap(":/Labview_icons/Icon_Library/Zoom_to_Selection.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.zoom_pb.setIcon(icon) self.zoom_pb.setCheckable(True) self.zoom_pb.setObjectName("zoom_pb") self.horizontalLayout.addWidget(self.zoom_pb) self.Do_math_pb = QtWidgets.QPushButton(self.horizontalLayoutWidget) self.Do_math_pb.setText("") icon1 = QtGui.QIcon() icon1.addPixmap(QtGui.QPixmap(":/Labview_icons/Icon_Library/Calculator.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.Do_math_pb.setIcon(icon1) self.Do_math_pb.setCheckable(True) self.Do_math_pb.setObjectName("Do_math_pb") self.horizontalLayout.addWidget(self.Do_math_pb) self.do_measurements_pb = QtWidgets.QPushButton(self.horizontalLayoutWidget) self.do_measurements_pb.setText("") icon2 = QtGui.QIcon() icon2.addPixmap(QtGui.QPixmap(":/Labview_icons/Icon_Library/MeasurementStudio_32.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.do_measurements_pb.setIcon(icon2) self.do_measurements_pb.setCheckable(True) self.do_measurements_pb.setObjectName("do_measurements_pb") self.horizontalLayout.addWidget(self.do_measurements_pb) self.crosshair_pb = QtWidgets.QPushButton(self.horizontalLayoutWidget) self.crosshair_pb.setText("") icon3 = QtGui.QIcon() icon3.addPixmap(QtGui.QPixmap(":/Labview_icons/Icon_Library/reset.png"), QtGui.QIcon.Normal, QtGui.QIcon.On) self.crosshair_pb.setIcon(icon3) self.crosshair_pb.setCheckable(True) self.crosshair_pb.setObjectName("crosshair_pb") self.horizontalLayout.addWidget(self.crosshair_pb) self.x_label = QtWidgets.QLabel(self.horizontalLayoutWidget) self.x_label.setObjectName("x_label") self.horizontalLayout.addWidget(self.x_label) self.y_label = QtWidgets.QLabel(self.horizontalLayoutWidget) self.y_label.setObjectName("y_label") self.horizontalLayout.addWidget(self.y_label) spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout.addItem(spacerItem) self.verticalLayout.addLayout(self.horizontalLayout) self.horizontalLayout_settings.addLayout(self.verticalLayout) self.Graph_Lineouts = PlotWidget(self.splitter) self.Graph_Lineouts.setObjectName("Graph_Lineouts") self.ROIs_widget = QtWidgets.QWidget(self.splitter_2) self.ROIs_widget.setMaximumSize(QtCore.QSize(300, 16777215)) self.ROIs_widget.setObjectName("ROIs_widget") self.gridLayout.addWidget(self.splitter_2, 0, 0, 1, 1) self.StatusBarLayout = QtWidgets.QHBoxLayout() self.StatusBarLayout.setObjectName("StatusBarLayout") self.gridLayout.addLayout(self.StatusBarLayout, 1, 0, 1, 1) self.retranslateUi(Form) QtCore.QMetaObject.connectSlotsByName(Form)
def setupUi(self, MainWindow): MainWindow.setObjectName(_fromUtf8("MainWindow")) MainWindow.resize(993, 692) self.centralwidget = QtGui.QWidget(MainWindow) self.centralwidget.setObjectName(_fromUtf8("centralwidget")) self.verticalLayout_2 = QtGui.QVBoxLayout(self.centralwidget) self.verticalLayout_2.setMargin(10) self.verticalLayout_2.setSpacing(10) self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2")) self.frame_4 = QtGui.QFrame(self.centralwidget) self.frame_4.setFrameShape(QtGui.QFrame.StyledPanel) self.frame_4.setFrameShadow(QtGui.QFrame.Raised) self.frame_4.setObjectName(_fromUtf8("frame_4")) self.horizontalLayout = QtGui.QHBoxLayout(self.frame_4) self.horizontalLayout.setMargin(0) self.horizontalLayout.setSpacing(0) self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout")) self.label_3 = QtGui.QLabel(self.frame_4) font = QtGui.QFont() font.setPointSize(12) font.setBold(True) font.setWeight(75) self.label_3.setFont(font) self.label_3.setObjectName(_fromUtf8("label_3")) self.horizontalLayout.addWidget(self.label_3) self.label_4 = QtGui.QLabel(self.frame_4) self.label_4.setEnabled(True) self.label_4.setAlignment(QtCore.Qt.AlignLeading | QtCore.Qt.AlignLeft | QtCore.Qt.AlignVCenter) self.label_4.setObjectName(_fromUtf8("label_4")) self.horizontalLayout.addWidget(self.label_4) spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.horizontalLayout.addItem(spacerItem) self.btnSite = QtGui.QPushButton(self.frame_4) self.btnSite.setStyleSheet(_fromUtf8("color: rgb(0, 0, 255);")) self.btnSite.setCheckable(False) self.btnSite.setFlat(True) self.btnSite.setObjectName(_fromUtf8("btnSite")) self.horizontalLayout.addWidget(self.btnSite) self.verticalLayout_2.addWidget(self.frame_4) self.frame_5 = QtGui.QFrame(self.centralwidget) self.frame_5.setFrameShape(QtGui.QFrame.StyledPanel) self.frame_5.setFrameShadow(QtGui.QFrame.Raised) self.frame_5.setObjectName(_fromUtf8("frame_5")) self.horizontalLayout_3 = QtGui.QHBoxLayout(self.frame_5) self.horizontalLayout_3.setMargin(0) self.horizontalLayout_3.setSpacing(0) self.horizontalLayout_3.setObjectName(_fromUtf8("horizontalLayout_3")) self.lblDevice = QtGui.QLabel(self.frame_5) self.lblDevice.setEnabled(False) self.lblDevice.setObjectName(_fromUtf8("lblDevice")) self.horizontalLayout_3.addWidget(self.lblDevice) spacerItem1 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.horizontalLayout_3.addItem(spacerItem1) self.verticalLayout_2.addWidget(self.frame_5) self.frame = QtGui.QFrame(self.centralwidget) self.frame.setFrameShape(QtGui.QFrame.NoFrame) self.frame.setFrameShadow(QtGui.QFrame.Plain) self.frame.setObjectName(_fromUtf8("frame")) self.verticalLayout = QtGui.QVBoxLayout(self.frame) self.verticalLayout.setMargin(0) self.verticalLayout.setSpacing(10) self.verticalLayout.setObjectName(_fromUtf8("verticalLayout")) self.frame_2 = QtGui.QFrame(self.frame) self.frame_2.setFrameShape(QtGui.QFrame.StyledPanel) self.frame_2.setFrameShadow(QtGui.QFrame.Raised) self.frame_2.setObjectName(_fromUtf8("frame_2")) self.horizontalLayout_2 = QtGui.QHBoxLayout(self.frame_2) self.horizontalLayout_2.setMargin(0) self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2")) self.chkInvert = QtGui.QCheckBox(self.frame_2) self.chkInvert.setObjectName(_fromUtf8("chkInvert")) self.horizontalLayout_2.addWidget(self.chkInvert) self.chkAutoscale = QtGui.QCheckBox(self.frame_2) self.chkAutoscale.setChecked(True) self.chkAutoscale.setObjectName(_fromUtf8("chkAutoscale")) self.horizontalLayout_2.addWidget(self.chkAutoscale) self.line = QtGui.QFrame(self.frame_2) self.line.setFrameShape(QtGui.QFrame.VLine) self.line.setFrameShadow(QtGui.QFrame.Sunken) self.line.setObjectName(_fromUtf8("line")) self.horizontalLayout_2.addWidget(self.line) self.label_2 = QtGui.QLabel(self.frame_2) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.label_2.sizePolicy().hasHeightForWidth()) self.label_2.setSizePolicy(sizePolicy) self.label_2.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.label_2.setObjectName(_fromUtf8("label_2")) self.horizontalLayout_2.addWidget(self.label_2) self.spinLowpass = QtGui.QSpinBox(self.frame_2) self.spinLowpass.setPrefix(_fromUtf8("")) self.spinLowpass.setMinimum(0) self.spinLowpass.setMaximum(999999) self.spinLowpass.setSingleStep(1) self.spinLowpass.setProperty("value", 45) self.spinLowpass.setObjectName(_fromUtf8("spinLowpass")) self.horizontalLayout_2.addWidget(self.spinLowpass) self.label_5 = QtGui.QLabel(self.frame_2) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.label_5.sizePolicy().hasHeightForWidth()) self.label_5.setSizePolicy(sizePolicy) self.label_5.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.label_5.setObjectName(_fromUtf8("label_5")) self.horizontalLayout_2.addWidget(self.label_5) self.lineTitle = QtGui.QLineEdit(self.frame_2) self.lineTitle.setObjectName(_fromUtf8("lineTitle")) self.horizontalLayout_2.addWidget(self.lineTitle) self.line_2 = QtGui.QFrame(self.frame_2) self.line_2.setFrameShape(QtGui.QFrame.VLine) self.line_2.setFrameShadow(QtGui.QFrame.Sunken) self.line_2.setObjectName(_fromUtf8("line_2")) self.horizontalLayout_2.addWidget(self.line_2) self.btnPause = QtGui.QPushButton(self.frame_2) self.btnPause.setCheckable(True) self.btnPause.setObjectName(_fromUtf8("btnPause")) self.horizontalLayout_2.addWidget(self.btnPause) self.btnSave = QtGui.QPushButton(self.frame_2) self.btnSave.setObjectName(_fromUtf8("btnSave")) self.horizontalLayout_2.addWidget(self.btnSave) self.verticalLayout.addWidget(self.frame_2) self.frame_3 = QtGui.QFrame(self.frame) self.frame_3.setFrameShape(QtGui.QFrame.StyledPanel) self.frame_3.setFrameShadow(QtGui.QFrame.Plain) self.frame_3.setObjectName(_fromUtf8("frame_3")) self.verticalLayout_3 = QtGui.QVBoxLayout(self.frame_3) self.verticalLayout_3.setMargin(0) self.verticalLayout_3.setSpacing(0) self.verticalLayout_3.setObjectName(_fromUtf8("verticalLayout_3")) self.grECG = PlotWidget(self.frame_3) self.grECG.setFrameShape(QtGui.QFrame.NoFrame) self.grECG.setFrameShadow(QtGui.QFrame.Plain) self.grECG.setLineWidth(0) self.grECG.setObjectName(_fromUtf8("grECG")) self.verticalLayout_3.addWidget(self.grECG) self.verticalLayout.addWidget(self.frame_3) self.verticalLayout_2.addWidget(self.frame) MainWindow.setCentralWidget(self.centralwidget) self.retranslateUi(MainWindow) QtCore.QMetaObject.connectSlotsByName(MainWindow)
def setupUi(self, MainWindow): MainWindow.setObjectName(_fromUtf8("MainWindow")) MainWindow.resize(1201, 602) self.centralwidget = QtGui.QWidget(MainWindow) self.centralwidget.setObjectName(_fromUtf8("centralwidget")) self.signalBefore = PlotWidget(self.centralwidget) self.signalBefore.setGeometry(QtCore.QRect(140, 10, 321, 181)) self.signalBefore.setObjectName(_fromUtf8("signalBefore")) self.browseBtn = QtGui.QPushButton(self.centralwidget) self.browseBtn.setGeometry(QtCore.QRect(10, 20, 101, 23)) self.browseBtn.setObjectName(_fromUtf8("browseBtn")) self.saveBtn = QtGui.QPushButton(self.centralwidget) self.saveBtn.setGeometry(QtCore.QRect(10, 60, 101, 23)) self.saveBtn.setObjectName(_fromUtf8("saveBtn")) self.recordBeforeBtn = QtGui.QPushButton(self.centralwidget) self.recordBeforeBtn.setGeometry(QtCore.QRect(10, 100, 101, 23)) self.recordBeforeBtn.setObjectName(_fromUtf8("recordBeforeBtn")) self.signalAfter = PlotWidget(self.centralwidget) self.signalAfter.setGeometry(QtCore.QRect(140, 250, 321, 181)) self.signalAfter.setObjectName(_fromUtf8("signalAfter")) self.freqMagBefore = PlotWidget(self.centralwidget) self.freqMagBefore.setGeometry(QtCore.QRect(480, 10, 321, 181)) self.freqMagBefore.setObjectName(_fromUtf8("freqMagBefore")) self.freqMagAfter = PlotWidget(self.centralwidget) self.freqMagAfter.setGeometry(QtCore.QRect(480, 250, 321, 181)) self.freqMagAfter.setObjectName(_fromUtf8("freqMagAfter")) self.freqPhaseBefore = PlotWidget(self.centralwidget) self.freqPhaseBefore.setGeometry(QtCore.QRect(820, 10, 321, 181)) self.freqPhaseBefore.setObjectName(_fromUtf8("freqPhaseBefore")) self.freqPhaseAfter = PlotWidget(self.centralwidget) self.freqPhaseAfter.setGeometry(QtCore.QRect(820, 250, 321, 181)) self.freqPhaseAfter.setObjectName(_fromUtf8("freqPhaseAfter")) self.label = QtGui.QLabel(self.centralwidget) self.label.setGeometry(QtCore.QRect(250, 200, 81, 20)) self.label.setObjectName(_fromUtf8("label")) self.label_2 = QtGui.QLabel(self.centralwidget) self.label_2.setGeometry(QtCore.QRect(250, 440, 101, 20)) self.label_2.setObjectName(_fromUtf8("label_2")) self.label_3 = QtGui.QLabel(self.centralwidget) self.label_3.setGeometry(QtCore.QRect(555, 200, 171, 20)) self.label_3.setObjectName(_fromUtf8("label_3")) self.label_4 = QtGui.QLabel(self.centralwidget) self.label_4.setGeometry(QtCore.QRect(570, 440, 171, 20)) self.label_4.setObjectName(_fromUtf8("label_4")) self.label_5 = QtGui.QLabel(self.centralwidget) self.label_5.setGeometry(QtCore.QRect(890, 440, 171, 20)) self.label_5.setObjectName(_fromUtf8("label_5")) self.label_6 = QtGui.QLabel(self.centralwidget) self.label_6.setGeometry(QtCore.QRect(890, 200, 171, 20)) self.label_6.setObjectName(_fromUtf8("label_6")) self.recordAfterBtn = QtGui.QPushButton(self.centralwidget) self.recordAfterBtn.setGeometry(QtCore.QRect(10, 140, 101, 23)) self.recordAfterBtn.setObjectName(_fromUtf8("recordAfterBtn")) MainWindow.setCentralWidget(self.centralwidget) self.menubar = QtGui.QMenuBar(MainWindow) self.menubar.setGeometry(QtCore.QRect(0, 0, 1201, 21)) self.menubar.setObjectName(_fromUtf8("menubar")) MainWindow.setMenuBar(self.menubar) self.statusbar = QtGui.QStatusBar(MainWindow) self.statusbar.setObjectName(_fromUtf8("statusbar")) MainWindow.setStatusBar(self.statusbar) self.retranslateUi(MainWindow) QtCore.QMetaObject.connectSlotsByName(MainWindow)
def setupUi(self, IRTempus): IRTempus.setObjectName(_fromUtf8("IRTempus")) IRTempus.setWindowModality(QtCore.Qt.ApplicationModal) IRTempus.resize(852, 596) IRTempus.setWindowIcon(QtGui.QIcon('icon.ico')) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(IRTempus.sizePolicy().hasHeightForWidth()) IRTempus.setSizePolicy(sizePolicy) IRTempus.setAcceptDrops(False) IRTempus.setAutoFillBackground(False) IRTempus.setModal(True) self.tabPrincipal = QtGui.QTabWidget(IRTempus) self.tabPrincipal.setGeometry(QtCore.QRect(6, 7, 861, 581)) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.tabPrincipal.sizePolicy().hasHeightForWidth()) self.tabPrincipal.setSizePolicy(sizePolicy) self.tabPrincipal.setObjectName(_fromUtf8("tabPrincipal")) self.tab_mostrador = QtGui.QWidget() self.tab_mostrador.setObjectName(_fromUtf8("tab_mostrador")) self.pB_startacq = QtGui.QPushButton(self.tab_mostrador) self.pB_startacq.setGeometry(QtCore.QRect(520, 500, 141, 41)) self.pB_startacq.setObjectName(_fromUtf8("pB_startacq")) self.l_mostrador = QtGui.QLabel(self.tab_mostrador) self.l_mostrador.setGeometry(QtCore.QRect(180, 505, 111, 31)) self.l_mostrador.setObjectName(_fromUtf8("l_mostrador")) self.label_7 = QtGui.QLabel(self.tab_mostrador) self.label_7.setGeometry(QtCore.QRect(10, 510, 161, 21)) font = QtGui.QFont() font.setBold(True) font.setWeight(75) self.label_7.setFont(font) self.label_7.setObjectName(_fromUtf8("label_7")) self.vS_channel_1 = QtGui.QSlider(self.tab_mostrador) self.vS_channel_1.setGeometry(QtCore.QRect(758, 27, 29, 61)) self.vS_channel_1.setMaximum(1023) self.vS_channel_1.setProperty("value", 512) self.vS_channel_1.setTracking(True) self.vS_channel_1.setOrientation(QtCore.Qt.Vertical) self.vS_channel_1.setObjectName(_fromUtf8("vS_channel_1")) self.lE_channel_1 = QtGui.QLineEdit(self.tab_mostrador) self.lE_channel_1.setGeometry(QtCore.QRect(788, 47, 41, 27)) self.lE_channel_1.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.lE_channel_1.setObjectName(_fromUtf8("lE_channel_1")) self.vS_channel_2 = QtGui.QSlider(self.tab_mostrador) self.vS_channel_2.setGeometry(QtCore.QRect(758, 107, 29, 61)) self.vS_channel_2.setMaximum(1023) self.vS_channel_2.setProperty("value", 512) self.vS_channel_2.setSliderPosition(512) self.vS_channel_2.setOrientation(QtCore.Qt.Vertical) self.vS_channel_2.setObjectName(_fromUtf8("vS_channel_2")) self.lE_channel_2 = QtGui.QLineEdit(self.tab_mostrador) self.lE_channel_2.setGeometry(QtCore.QRect(788, 127, 41, 27)) self.lE_channel_2.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.lE_channel_2.setObjectName(_fromUtf8("lE_channel_2")) self.lE_channel_5 = QtGui.QLineEdit(self.tab_mostrador) self.lE_channel_5.setGeometry(QtCore.QRect(788, 367, 41, 27)) self.lE_channel_5.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.lE_channel_5.setObjectName(_fromUtf8("lE_channel_5")) self.lE_channel_4 = QtGui.QLineEdit(self.tab_mostrador) self.lE_channel_4.setGeometry(QtCore.QRect(788, 287, 41, 27)) self.lE_channel_4.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.lE_channel_4.setObjectName(_fromUtf8("lE_channel_4")) self.lE_channel_3 = QtGui.QLineEdit(self.tab_mostrador) self.lE_channel_3.setGeometry(QtCore.QRect(788, 207, 41, 27)) self.lE_channel_3.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.lE_channel_3.setObjectName(_fromUtf8("lE_channel_3")) self.lE_channel_6 = QtGui.QLineEdit(self.tab_mostrador) self.lE_channel_6.setGeometry(QtCore.QRect(788, 447, 41, 27)) self.lE_channel_6.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.lE_channel_6.setObjectName(_fromUtf8("lE_channel_6")) self.vS_channel_4 = QtGui.QSlider(self.tab_mostrador) self.vS_channel_4.setGeometry(QtCore.QRect(758, 267, 29, 61)) self.vS_channel_4.setMaximum(1023) self.vS_channel_4.setProperty("value", 512) self.vS_channel_4.setOrientation(QtCore.Qt.Vertical) self.vS_channel_4.setObjectName(_fromUtf8("vS_channel_4")) self.vS_channel_3 = QtGui.QSlider(self.tab_mostrador) self.vS_channel_3.setGeometry(QtCore.QRect(758, 187, 29, 61)) self.vS_channel_3.setMaximum(1023) self.vS_channel_3.setProperty("value", 512) self.vS_channel_3.setOrientation(QtCore.Qt.Vertical) self.vS_channel_3.setObjectName(_fromUtf8("vS_channel_3")) self.vS_channel_5 = QtGui.QSlider(self.tab_mostrador) self.vS_channel_5.setGeometry(QtCore.QRect(758, 347, 29, 61)) self.vS_channel_5.setMaximum(1023) self.vS_channel_5.setProperty("value", 512) self.vS_channel_5.setOrientation(QtCore.Qt.Vertical) self.vS_channel_5.setObjectName(_fromUtf8("vS_channel_5")) self.vS_channel_6 = QtGui.QSlider(self.tab_mostrador) self.vS_channel_6.setGeometry(QtCore.QRect(758, 427, 29, 61)) self.vS_channel_6.setMaximum(1023) self.vS_channel_6.setProperty("value", 512) self.vS_channel_6.setOrientation(QtCore.Qt.Vertical) self.vS_channel_6.setObjectName(_fromUtf8("vS_channel_6")) self.tab_views = QtGui.QTabWidget(self.tab_mostrador) self.tab_views.setGeometry(QtCore.QRect(2, 3, 751, 491)) self.tab_views.setTabPosition(QtGui.QTabWidget.West) self.tab_views.setObjectName(_fromUtf8("tab_views")) self.tab_separados = QtGui.QWidget() self.tab_separados.setObjectName(_fromUtf8("tab_separados")) self.pW_channel_5 = PlotWidget(self.tab_separados) self.pW_channel_5.setGeometry(QtCore.QRect(8, 349, 701, 51)) self.pW_channel_5.setObjectName(_fromUtf8("pW_channel_5")) self.pW_channel_3 = PlotWidget(self.tab_separados) self.pW_channel_3.setGeometry(QtCore.QRect(8, 189, 701, 51)) self.pW_channel_3.setObjectName(_fromUtf8("pW_channel_3")) self.sP_channel_4 = QtGui.QSpinBox(self.tab_separados) self.sP_channel_4.setGeometry(QtCore.QRect(78, 246, 61, 21)) self.sP_channel_4.setMinimum(1) self.sP_channel_4.setObjectName(_fromUtf8("sP_channel_4")) self.lE_time_1 = QtGui.QLineEdit(self.tab_separados) self.lE_time_1.setGeometry(QtCore.QRect(148, 5, 81, 21)) self.lE_time_1.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.lE_time_1.setObjectName(_fromUtf8("lE_time_1")) self.sP_channel_2 = QtGui.QSpinBox(self.tab_separados) self.sP_channel_2.setGeometry(QtCore.QRect(79, 86, 61, 21)) self.sP_channel_2.setMinimum(1) self.sP_channel_2.setObjectName(_fromUtf8("sP_channel_2")) self.lE_time_5 = QtGui.QLineEdit(self.tab_separados) self.lE_time_5.setGeometry(QtCore.QRect(148, 325, 81, 21)) self.lE_time_5.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.lE_time_5.setObjectName(_fromUtf8("lE_time_5")) self.cB_subida_4 = QtGui.QCheckBox(self.tab_separados) self.cB_subida_4.setGeometry(QtCore.QRect(350, 246, 100, 22)) self.cB_subida_4.setChecked(True) self.cB_subida_4.setObjectName(_fromUtf8("cB_subida_4")) self.pW_channel_4 = PlotWidget(self.tab_separados) self.pW_channel_4.setGeometry(QtCore.QRect(8, 269, 701, 51)) self.pW_channel_4.setObjectName(_fromUtf8("pW_channel_4")) self.cB_descida_2 = QtGui.QCheckBox(self.tab_separados) self.cB_descida_2.setGeometry(QtCore.QRect(460, 86, 100, 22)) self.cB_descida_2.setObjectName(_fromUtf8("cB_descida_2")) self.l_channel_8 = QtGui.QLabel(self.tab_separados) self.l_channel_8.setGeometry(QtCore.QRect(230, 10, 70, 16)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.l_channel_8.setFont(font) self.l_channel_8.setObjectName(_fromUtf8("l_channel_8")) self.sP_channel_3 = QtGui.QSpinBox(self.tab_separados) self.sP_channel_3.setGeometry(QtCore.QRect(79, 166, 61, 21)) self.sP_channel_3.setMinimum(1) self.sP_channel_3.setObjectName(_fromUtf8("sP_channel_3")) self.l_channel_12 = QtGui.QLabel(self.tab_separados) self.l_channel_12.setGeometry(QtCore.QRect(232, 410, 70, 16)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.l_channel_12.setFont(font) self.l_channel_12.setObjectName(_fromUtf8("l_channel_12")) self.l_channel_9 = QtGui.QLabel(self.tab_separados) self.l_channel_9.setGeometry(QtCore.QRect(232, 170, 70, 16)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.l_channel_9.setFont(font) self.l_channel_9.setObjectName(_fromUtf8("l_channel_9")) self.cB_subida_1 = QtGui.QCheckBox(self.tab_separados) self.cB_subida_1.setGeometry(QtCore.QRect(350, 10, 97, 22)) self.cB_subida_1.setChecked(True) self.cB_subida_1.setObjectName(_fromUtf8("cB_subida_1")) self.l_channel_10 = QtGui.QLabel(self.tab_separados) self.l_channel_10.setGeometry(QtCore.QRect(232, 250, 70, 16)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.l_channel_10.setFont(font) self.l_channel_10.setObjectName(_fromUtf8("l_channel_10")) self.lE_time_3 = QtGui.QLineEdit(self.tab_separados) self.lE_time_3.setGeometry(QtCore.QRect(149, 165, 81, 21)) self.lE_time_3.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.lE_time_3.setObjectName(_fromUtf8("lE_time_3")) self.pW_channel_2 = PlotWidget(self.tab_separados) self.pW_channel_2.setGeometry(QtCore.QRect(8, 109, 701, 51)) self.pW_channel_2.setObjectName(_fromUtf8("pW_channel_2")) self.cB_descida_5 = QtGui.QCheckBox(self.tab_separados) self.cB_descida_5.setGeometry(QtCore.QRect(460, 325, 100, 22)) self.cB_descida_5.setObjectName(_fromUtf8("cB_descida_5")) self.l_channel_11 = QtGui.QLabel(self.tab_separados) self.l_channel_11.setGeometry(QtCore.QRect(232, 330, 70, 16)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.l_channel_11.setFont(font) self.l_channel_11.setObjectName(_fromUtf8("l_channel_11")) self.cB_descida_6 = QtGui.QCheckBox(self.tab_separados) self.cB_descida_6.setGeometry(QtCore.QRect(460, 405, 100, 22)) self.cB_descida_6.setObjectName(_fromUtf8("cB_descida_6")) self.cB_subida_3 = QtGui.QCheckBox(self.tab_separados) self.cB_subida_3.setGeometry(QtCore.QRect(350, 165, 100, 22)) self.cB_subida_3.setChecked(True) self.cB_subida_3.setObjectName(_fromUtf8("cB_subida_3")) self.sP_channel_5 = QtGui.QSpinBox(self.tab_separados) self.sP_channel_5.setGeometry(QtCore.QRect(78, 326, 61, 21)) self.sP_channel_5.setMinimum(1) self.sP_channel_5.setObjectName(_fromUtf8("sP_channel_5")) self.sP_channel_6 = QtGui.QSpinBox(self.tab_separados) self.sP_channel_6.setGeometry(QtCore.QRect(78, 406, 61, 21)) self.sP_channel_6.setMinimum(1) self.sP_channel_6.setObjectName(_fromUtf8("sP_channel_6")) self.cB_subida_2 = QtGui.QCheckBox(self.tab_separados) self.cB_subida_2.setGeometry(QtCore.QRect(350, 86, 100, 22)) self.cB_subida_2.setChecked(True) self.cB_subida_2.setObjectName(_fromUtf8("cB_subida_2")) self.sP_channel_1 = QtGui.QSpinBox(self.tab_separados) self.sP_channel_1.setGeometry(QtCore.QRect(78, 6, 61, 21)) self.sP_channel_1.setMinimum(1) self.sP_channel_1.setObjectName(_fromUtf8("sP_channel_1")) self.cB_descida_4 = QtGui.QCheckBox(self.tab_separados) self.cB_descida_4.setGeometry(QtCore.QRect(460, 246, 100, 22)) self.cB_descida_4.setObjectName(_fromUtf8("cB_descida_4")) self.cB_subida_5 = QtGui.QCheckBox(self.tab_separados) self.cB_subida_5.setGeometry(QtCore.QRect(350, 325, 100, 22)) self.cB_subida_5.setChecked(True) self.cB_subida_5.setObjectName(_fromUtf8("cB_subida_5")) self.pW_channel_6 = PlotWidget(self.tab_separados) self.pW_channel_6.setGeometry(QtCore.QRect(8, 429, 701, 51)) self.pW_channel_6.setObjectName(_fromUtf8("pW_channel_6")) self.cB_descida_3 = QtGui.QCheckBox(self.tab_separados) self.cB_descida_3.setGeometry(QtCore.QRect(460, 165, 100, 22)) self.cB_descida_3.setObjectName(_fromUtf8("cB_descida_3")) self.cB_subida_6 = QtGui.QCheckBox(self.tab_separados) self.cB_subida_6.setGeometry(QtCore.QRect(350, 405, 100, 22)) self.cB_subida_6.setChecked(True) self.cB_subida_6.setObjectName(_fromUtf8("cB_subida_6")) self.lE_time_6 = QtGui.QLineEdit(self.tab_separados) self.lE_time_6.setGeometry(QtCore.QRect(148, 405, 81, 21)) self.lE_time_6.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.lE_time_6.setObjectName(_fromUtf8("lE_time_6")) self.lE_time_2 = QtGui.QLineEdit(self.tab_separados) self.lE_time_2.setGeometry(QtCore.QRect(149, 85, 81, 21)) self.lE_time_2.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.lE_time_2.setObjectName(_fromUtf8("lE_time_2")) self.cB_descida_1 = QtGui.QCheckBox(self.tab_separados) self.cB_descida_1.setGeometry(QtCore.QRect(460, 10, 97, 22)) self.cB_descida_1.setObjectName(_fromUtf8("cB_descida_1")) self.lE_time_4 = QtGui.QLineEdit(self.tab_separados) self.lE_time_4.setGeometry(QtCore.QRect(148, 245, 81, 21)) self.lE_time_4.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.lE_time_4.setObjectName(_fromUtf8("lE_time_4")) self.pW_channel_1 = PlotWidget(self.tab_separados) self.pW_channel_1.setGeometry(QtCore.QRect(8, 29, 701, 51)) self.pW_channel_1.setObjectName(_fromUtf8("pW_channel_1")) self.l_channel_13 = QtGui.QLabel(self.tab_separados) self.l_channel_13.setGeometry(QtCore.QRect(230, 90, 70, 16)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.l_channel_13.setFont(font) self.l_channel_13.setObjectName(_fromUtf8("l_channel_13")) self.tab_views.addTab(self.tab_separados, _fromUtf8("")) self.tab_juntos = QtGui.QWidget() self.tab_juntos.setObjectName(_fromUtf8("tab_juntos")) self.pW_all = PlotWidget(self.tab_juntos) self.pW_all.setGeometry(QtCore.QRect(9, 7, 701, 341)) self.pW_all.setObjectName(_fromUtf8("pW_all")) self.tW_timetable = QtGui.QTableWidget(self.tab_juntos) self.tW_timetable.setGeometry(QtCore.QRect(182, 360, 528, 111)) font = QtGui.QFont() font.setPointSize(9) font.setBold(True) font.setWeight(75) self.tW_timetable.setFont(font) self.tW_timetable.setObjectName(_fromUtf8("tW_timetable")) self.tW_timetable.setColumnCount(0) self.tW_timetable.setRowCount(0) self.tW_timetable.horizontalHeader().setDefaultSectionSize(85) self.tW_timetable.verticalHeader().setDefaultSectionSize(20) self.pB_timetable = QtGui.QPushButton(self.tab_juntos) self.pB_timetable.setGeometry(QtCore.QRect(10, 360, 171, 111)) self.pB_timetable.setObjectName(_fromUtf8("pB_timetable")) self.tab_views.addTab(self.tab_juntos, _fromUtf8("")) self.cB_constrain = QtGui.QCheckBox(self.tab_mostrador) self.cB_constrain.setGeometry(QtCore.QRect(670, 500, 181, 41)) self.cB_constrain.setStyleSheet( _fromUtf8("color: rgb(0, 0, 0);\n" "background-color: rgb(255, 255, 255);")) self.cB_constrain.setObjectName(_fromUtf8("cB_constrain")) self.cB_channel_1 = QtGui.QCheckBox(self.tab_mostrador) self.cB_channel_1.setGeometry(QtCore.QRect(760, 10, 91, 21)) font = QtGui.QFont() font.setBold(True) font.setWeight(75) self.cB_channel_1.setFont(font) self.cB_channel_1.setStyleSheet( _fromUtf8("color: rgb(0, 0, 255);\n" "background-color: rgb(255, 255, 255);")) self.cB_channel_1.setChecked(True) self.cB_channel_1.setObjectName(_fromUtf8("cB_channel_1")) self.cB_channel_2 = QtGui.QCheckBox(self.tab_mostrador) self.cB_channel_2.setGeometry(QtCore.QRect(760, 90, 91, 21)) font = QtGui.QFont() font.setBold(True) font.setWeight(75) self.cB_channel_2.setFont(font) self.cB_channel_2.setStyleSheet( _fromUtf8("color: rgb(0, 255, 0);\n" "background-color: rgb(255, 255, 255);")) self.cB_channel_2.setChecked(True) self.cB_channel_2.setObjectName(_fromUtf8("cB_channel_2")) self.cB_channel_3 = QtGui.QCheckBox(self.tab_mostrador) self.cB_channel_3.setGeometry(QtCore.QRect(760, 170, 91, 21)) font = QtGui.QFont() font.setBold(True) font.setWeight(75) self.cB_channel_3.setFont(font) self.cB_channel_3.setStyleSheet( _fromUtf8("color: rgb(255, 0, 0);\n" "background-color: rgb(255, 255, 255);")) self.cB_channel_3.setChecked(True) self.cB_channel_3.setObjectName(_fromUtf8("cB_channel_3")) self.cB_channel_4 = QtGui.QCheckBox(self.tab_mostrador) self.cB_channel_4.setGeometry(QtCore.QRect(760, 250, 91, 21)) font = QtGui.QFont() font.setBold(True) font.setWeight(75) self.cB_channel_4.setFont(font) self.cB_channel_4.setStyleSheet( _fromUtf8("color: rgb(0, 128, 128);\n" "background-color: rgb(255, 255, 255);")) self.cB_channel_4.setChecked(True) self.cB_channel_4.setObjectName(_fromUtf8("cB_channel_4")) self.cB_channel_5 = QtGui.QCheckBox(self.tab_mostrador) self.cB_channel_5.setGeometry(QtCore.QRect(760, 330, 91, 21)) font = QtGui.QFont() font.setBold(True) font.setWeight(75) self.cB_channel_5.setFont(font) self.cB_channel_5.setStyleSheet( _fromUtf8("color: rgb(128, 128, 0);\n" "background-color: rgb(255, 255, 255);")) self.cB_channel_5.setChecked(True) self.cB_channel_5.setObjectName(_fromUtf8("cB_channel_5")) self.cB_channel_6 = QtGui.QCheckBox(self.tab_mostrador) self.cB_channel_6.setGeometry(QtCore.QRect(760, 410, 91, 21)) font = QtGui.QFont() font.setBold(True) font.setWeight(75) self.cB_channel_6.setFont(font) self.cB_channel_6.setStyleSheet( _fromUtf8("color: rgb(128, 0, 128);\n" "background-color: rgb(255, 255, 255);")) self.cB_channel_6.setChecked(True) self.cB_channel_6.setObjectName(_fromUtf8("cB_channel_6")) self.label_8 = QtGui.QLabel(self.tab_mostrador) self.label_8.setGeometry(QtCore.QRect(280, 510, 111, 21)) font = QtGui.QFont() font.setBold(True) font.setWeight(75) self.label_8.setFont(font) self.label_8.setObjectName(_fromUtf8("label_8")) self.lE_delay = QtGui.QLineEdit(self.tab_mostrador) self.lE_delay.setGeometry(QtCore.QRect(390, 510, 71, 21)) self.lE_delay.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.lE_delay.setObjectName(_fromUtf8("lE_delay")) self.label_9 = QtGui.QLabel(self.tab_mostrador) self.label_9.setGeometry(QtCore.QRect(470, 510, 41, 21)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.label_9.setFont(font) self.label_9.setObjectName(_fromUtf8("label_9")) self.tab_views.raise_() self.pB_startacq.raise_() self.l_mostrador.raise_() self.label_7.raise_() self.vS_channel_1.raise_() self.lE_channel_1.raise_() self.vS_channel_2.raise_() self.lE_channel_2.raise_() self.lE_channel_5.raise_() self.lE_channel_4.raise_() self.lE_channel_3.raise_() self.lE_channel_6.raise_() self.vS_channel_4.raise_() self.vS_channel_3.raise_() self.vS_channel_5.raise_() self.vS_channel_6.raise_() self.cB_constrain.raise_() self.cB_channel_1.raise_() self.cB_channel_2.raise_() self.cB_channel_3.raise_() self.cB_channel_4.raise_() self.cB_channel_5.raise_() self.cB_channel_6.raise_() self.label_8.raise_() self.lE_delay.raise_() self.label_9.raise_() self.tabPrincipal.addTab(self.tab_mostrador, _fromUtf8("")) self.tab_arquivo = QtGui.QWidget() self.tab_arquivo.setObjectName(_fromUtf8("tab_arquivo")) self.pB_save = QtGui.QPushButton(self.tab_arquivo) self.pB_save.setGeometry(QtCore.QRect(20, 70, 391, 27)) self.pB_save.setObjectName(_fromUtf8("pB_save")) self.pB_load = QtGui.QPushButton(self.tab_arquivo) self.pB_load.setGeometry(QtCore.QRect(20, 100, 391, 27)) self.pB_load.setObjectName(_fromUtf8("pB_load")) self.pB_savetime = QtGui.QPushButton(self.tab_arquivo) self.pB_savetime.setGeometry(QtCore.QRect(430, 70, 391, 27)) self.pB_savetime.setObjectName(_fromUtf8("pB_savetime")) self.tabPrincipal.addTab(self.tab_arquivo, _fromUtf8("")) self.tab_serial = QtGui.QWidget() self.tab_serial.setObjectName(_fromUtf8("tab_serial")) self.pB_connect = QtGui.QPushButton(self.tab_serial) self.pB_connect.setGeometry(QtCore.QRect(70, 90, 301, 27)) self.pB_connect.setObjectName(_fromUtf8("pB_connect")) self.label_2 = QtGui.QLabel(self.tab_serial) self.label_2.setGeometry(QtCore.QRect(70, 40, 311, 17)) font = QtGui.QFont() font.setBold(True) font.setWeight(75) self.label_2.setFont(font) self.label_2.setObjectName(_fromUtf8("label_2")) self.pB_closeconnection = QtGui.QPushButton(self.tab_serial) self.pB_closeconnection.setGeometry(QtCore.QRect(70, 210, 171, 27)) self.pB_closeconnection.setObjectName(_fromUtf8("pB_closeconnection")) self.layoutWidget = QtGui.QWidget(self.tab_serial) self.layoutWidget.setGeometry(QtCore.QRect(71, 141, 265, 29)) self.layoutWidget.setObjectName(_fromUtf8("layoutWidget")) self.horizontalLayout_2 = QtGui.QHBoxLayout(self.layoutWidget) self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2")) self.label = QtGui.QLabel(self.layoutWidget) self.label.setObjectName(_fromUtf8("label")) self.horizontalLayout_2.addWidget(self.label) self.cB_port = QtGui.QComboBox(self.layoutWidget) self.cB_port.setObjectName(_fromUtf8("cB_port")) self.horizontalLayout_2.addWidget(self.cB_port) self.label_25 = QtGui.QLabel(self.tab_serial) self.label_25.setGeometry(QtCore.QRect(70, 270, 121, 17)) font = QtGui.QFont() font.setBold(True) font.setWeight(75) self.label_25.setFont(font) self.label_25.setObjectName(_fromUtf8("label_25")) self.l_commstatus = QtGui.QLabel(self.tab_serial) self.l_commstatus.setGeometry(QtCore.QRect(200, 270, 491, 17)) self.l_commstatus.setObjectName(_fromUtf8("l_commstatus")) self.tabPrincipal.addTab(self.tab_serial, _fromUtf8("")) self.tab_sobre = QtGui.QWidget() self.tab_sobre.setObjectName(_fromUtf8("tab_sobre")) self.l_ufscar = QtGui.QLabel(self.tab_sobre) self.l_ufscar.setGeometry(QtCore.QRect(160, 370, 180, 125)) self.l_ufscar.setObjectName(_fromUtf8("l_ufscar")) self.l_cca = QtGui.QLabel(self.tab_sobre) self.l_cca.setGeometry(QtCore.QRect(567, 368, 130, 122)) self.l_cca.setObjectName(_fromUtf8("l_cca")) self.label_3 = QtGui.QLabel(self.tab_sobre) self.label_3.setGeometry(QtCore.QRect(530, 497, 211, 17)) font = QtGui.QFont() font.setFamily(_fromUtf8("Arial Black")) font.setPointSize(10) self.label_3.setFont(font) self.label_3.setObjectName(_fromUtf8("label_3")) self.textBrowser = QtGui.QTextBrowser(self.tab_sobre) self.textBrowser.setGeometry(QtCore.QRect(80, 40, 681, 321)) self.textBrowser.setObjectName(_fromUtf8("textBrowser")) self.tabPrincipal.addTab(self.tab_sobre, _fromUtf8("")) self.l_filename = QtGui.QLabel(IRTempus) self.l_filename.setGeometry(QtCore.QRect(520, 12, 251, 20)) self.l_filename.setObjectName(_fromUtf8("l_filename")) self.retranslateUi(IRTempus) self.tabPrincipal.setCurrentIndex(0) self.tab_views.setCurrentIndex(0) QtCore.QMetaObject.connectSlotsByName(IRTempus)
def setupUi(self, FinalWindow): FinalWindow.setObjectName("FinalWindow") FinalWindow.resize(1343, 916) self.centralwidget = QtWidgets.QWidget(FinalWindow) self.centralwidget.setObjectName("centralwidget") self.gridLayout = QtWidgets.QGridLayout(self.centralwidget) self.gridLayout.setObjectName("gridLayout") self.verticalLayout_2 = QtWidgets.QVBoxLayout() self.verticalLayout_2.setObjectName("verticalLayout_2") self.PlaySecondOutput = QtWidgets.QPushButton(self.centralwidget) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.PlaySecondOutput.sizePolicy().hasHeightForWidth()) self.PlaySecondOutput.setSizePolicy(sizePolicy) self.PlaySecondOutput.setObjectName("PlaySecondOutput") self.verticalLayout_2.addWidget(self.PlaySecondOutput) self.SaveSecondOutput = QtWidgets.QPushButton(self.centralwidget) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.SaveSecondOutput.sizePolicy().hasHeightForWidth()) self.SaveSecondOutput.setSizePolicy(sizePolicy) self.SaveSecondOutput.setObjectName("SaveSecondOutput") self.verticalLayout_2.addWidget(self.SaveSecondOutput) self.gridLayout.addLayout(self.verticalLayout_2, 3, 1, 1, 1) self.ViewSecondOutput = PlotWidget(self.centralwidget) self.ViewSecondOutput.setObjectName("ViewSecondOutput") self.gridLayout.addWidget(self.ViewSecondOutput, 3, 0, 1, 1) self.verticalLayout = QtWidgets.QVBoxLayout() self.verticalLayout.setObjectName("verticalLayout") self.PlayOriginal = QtWidgets.QPushButton(self.centralwidget) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Maximum, QtWidgets.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.PlayOriginal.sizePolicy().hasHeightForWidth()) self.PlayOriginal.setSizePolicy(sizePolicy) self.PlayOriginal.setObjectName("PlayOriginal") self.verticalLayout.addWidget(self.PlayOriginal) self.gridLayout.addLayout(self.verticalLayout, 0, 1, 1, 1) self.ViewFirstOutput = PlotWidget(self.centralwidget) self.ViewFirstOutput.setObjectName("ViewFirstOutput") self.gridLayout.addWidget(self.ViewFirstOutput, 2, 0, 1, 1) self.ViewOriginal = PlotWidget(self.centralwidget) self.ViewOriginal.setObjectName("ViewOriginal") self.gridLayout.addWidget(self.ViewOriginal, 0, 0, 1, 1) self.verticalLayout_3 = QtWidgets.QVBoxLayout() self.verticalLayout_3.setObjectName("verticalLayout_3") self.PlayFirstOutput = QtWidgets.QPushButton(self.centralwidget) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.PlayFirstOutput.sizePolicy().hasHeightForWidth()) self.PlayFirstOutput.setSizePolicy(sizePolicy) self.PlayFirstOutput.setObjectName("PlayFirstOutput") self.verticalLayout_3.addWidget(self.PlayFirstOutput) self.SaveFirstOutput = QtWidgets.QPushButton(self.centralwidget) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.SaveFirstOutput.sizePolicy().hasHeightForWidth()) self.SaveFirstOutput.setSizePolicy(sizePolicy) self.SaveFirstOutput.setObjectName("SaveFirstOutput") self.verticalLayout_3.addWidget(self.SaveFirstOutput) self.gridLayout.addLayout(self.verticalLayout_3, 2, 1, 1, 1) self.PlayAll = QtWidgets.QPushButton(self.centralwidget) self.PlayAll.setObjectName("PlayAll") self.gridLayout.addWidget(self.PlayAll, 4, 0, 1, 2) FinalWindow.setCentralWidget(self.centralwidget) self.menubar = QtWidgets.QMenuBar(FinalWindow) self.menubar.setGeometry(QtCore.QRect(0, 0, 1343, 25)) self.menubar.setObjectName("menubar") FinalWindow.setMenuBar(self.menubar) self.statusbar = QtWidgets.QStatusBar(FinalWindow) self.statusbar.setObjectName("statusbar") FinalWindow.setStatusBar(self.statusbar) # self.audio1 # self.audio2 # self.audio3 self.retranslateUi(FinalWindow) QtCore.QMetaObject.connectSlotsByName(FinalWindow)
def setupUi(self, MainWindow): MainWindow.setObjectName(_fromUtf8("MainWindow")) self.resize(1920, 1080) self.status = False self.setAutoFillBackground(False) self.setDocumentMode(False) self.centralwidget = QtGui.QWidget(MainWindow) self.centralwidget.setObjectName(_fromUtf8("centralwidget")) self.exitAct = QAction(QIcon('exit.png'), '&Exit', self) self.exitAct.setShortcut('Ctrl+Q') self.exitAct.setStatusTip('Exit application') self.exitAct.triggered.connect(qApp.quit) self.loadAct = QAction(QIcon('exit.png'), '&Import Unfolding', self) self.loadAct.setShortcut('Ctrl+L') self.loadAct.setStatusTip('Import Unfolding') self.loadAct.triggered.connect(self.openFileNameDialog) self.exportAct = QAction(QIcon('exit.png'), '&Export Unfolding', self) self.exportAct.setShortcut('Ctrl+E') self.exportAct.setStatusTip('Export Unfolding') self.exportAct.triggered.connect(self.exportUnfolding) self.writeNPAct = QAction(QIcon('exit.png'), '&Write coordinates as np file', self) self.writeNPAct.setShortcut('Ctrl+W') self.writeNPAct.setStatusTip('Write coordinates') self.writeNPAct.triggered.connect(self.writeNP_file) self.loadGeometryAct = QAction(QIcon('exit.png'), '&Load geometry from .log file', self) #self.loadGeometry.setShortcut('Ctrl+W') self.loadGeometryAct.setStatusTip('Load geometry') self.loadGeometryAct.triggered.connect(self.loadGeometry) self.select_directoryAct = QAction( QIcon('exit.png'), '&Select a directory to generate hdf5 files from', self) self.select_directoryAct.setStatusTip('Select directory') self.select_directoryAct.triggered.connect(self.select_directory) self.load_HDF5Act = QAction(QIcon('exit.png'), '&Select a hdf5 files for the DFT data', self) self.load_HDF5Act.setStatusTip('Select HDF5') self.load_HDF5Act.triggered.connect(self.load_hdf5_scan) self.statusBar() self.menubar = self.menuBar() self.fileMenu = self.menubar.addMenu('&File') self.fileMenu.addAction(self.exitAct) self.fileMenu.addAction(self.loadAct) self.fileMenu.addAction(self.exportAct) self.fileMenu.addAction(self.writeNPAct) self.fileMenu.addAction(self.loadGeometryAct) self.fileMenu.addAction(self.select_directoryAct) self.fileMenu.addAction(self.load_HDF5Act) self.horizontalLayout = QHBoxLayout(self.centralwidget) self.horizontalLayout.setSpacing(10) self.verticalLayout = QVBoxLayout() ### Containing the integration buttons self.horizontalLayout_2 = QHBoxLayout() ### Containing the inital/final position show self.finalPositionLayout = QHBoxLayout() self.gl_widget = gl.GLViewWidget() self.gl_widget.setCameraPosition(distance=20, elevation=40) self.gl_widget.setGeometry(0, 110, 1920, 1080) self.energy_Plot = PlotWidget() self.energy_Plot.setObjectName(_fromUtf8("energyPlot")) self.energy_Plot.setBackground('k') # set properties of the label for y axis self.energy_Plot.setLabel('left', 'E(B3LYP)', units='H') # set properties of the label for x axis self.energy_Plot.setLabel('bottom', 'CC-distance', units='A') # adding legend self.energy_Plot.addLegend() self.horizontalLayout.addWidget(self.gl_widget, 4) ### Push button for sinle integration self.btnUp = QPushButton() self.btnUp.setObjectName(_fromUtf8("btnUp")) ### Check box for continous integration self.chkIntegrate = QCheckBox() self.chkIntegrate.setObjectName(_fromUtf8("chkIntegrate")) ### SpinBox to set the size of the integration step self.spinStep = QSpinBox() self.spinStep.setMinimum(0) self.spinStep.setMaximum(10000) self.spinStep.setObjectName(_fromUtf8("spinStep")) ### final position button self.btnFin = QPushButton() self.btnFin.setObjectName(_fromUtf8("btnFin")) ### initial position button self.btnInit = QPushButton() self.btnInit.setObjectName(_fromUtf8("btnPos")) ### select hinges button self.btnSelHinge = QPushButton() self.btnSelHinge.setObjectName(_fromUtf8("btnSelHinge")) ### close unfolding button self.btnClose = QPushButton() self.btnClose.setObjectName(_fromUtf8("btnClose")) ### add the buttons to the integration layout self.horizontalLayout_2.addWidget(self.spinStep) self.horizontalLayout_2.addWidget(self.btnUp) self.horizontalLayout_2.addWidget(self.chkIntegrate) ## add final position button to layout self.finalPositionLayout.addWidget(self.btnInit) self.finalPositionLayout.addWidget(self.btnFin) self.finalPositionLayout.addWidget(self.btnSelHinge) self.finalPositionLayout.addWidget(self.btnClose) ### add integration and final position layout and plot widget to right side layout self.verticalLayout.addLayout(self.horizontalLayout_2, 1) self.verticalLayout.addLayout(self.finalPositionLayout, 1) self.verticalLayout.addWidget(self.energy_Plot, 6) self.horizontalLayout.addLayout(self.verticalLayout, 1) self.widget = QWidget() self.widget.setLayout(self.horizontalLayout) self.setCentralWidget(self.widget) self.retranslateUi(MainWindow) QtCore.QMetaObject.connectSlotsByName(MainWindow) self.setWindowTitle('Fullerene Unfolding')
def setupUi(self, MainWindow): MainWindow.setObjectName("MainWindow") MainWindow.resize(635, 480) MainWindow.setStyleSheet("background-color: rgb(255, 255, 255);\n" "font: 10pt \"MS Shell Dlg 2\";") self.centralwidget = QtWidgets.QWidget(MainWindow) self.centralwidget.setObjectName("centralwidget") self.graphicsView = PlotWidget(self.centralwidget) self.graphicsView.setGeometry(QtCore.QRect(10, 10, 611, 371)) self.graphicsView.setObjectName("graphicsView") self.lineEdit = QtWidgets.QLineEdit(self.centralwidget) self.lineEdit.setGeometry(QtCore.QRect(10, 390, 381, 31)) font = QtGui.QFont() font.setFamily("MS Shell Dlg 2") font.setPointSize(10) font.setBold(False) font.setItalic(False) font.setWeight(50) self.lineEdit.setFont(font) self.lineEdit.setText("") self.lineEdit.setObjectName("lineEdit") self.pushButton = QtWidgets.QPushButton(self.centralwidget) self.pushButton.setGeometry(QtCore.QRect(400, 390, 91, 31)) self.pushButton.setStyleSheet("background-color: rgb(255, 204, 0);") self.pushButton.setObjectName("pushButton") self.pushButton_2 = QtWidgets.QPushButton(self.centralwidget) self.pushButton_2.setGeometry(QtCore.QRect(600, 390, 21, 31)) self.pushButton_2.setStyleSheet("background-color: rgb(255, 204, 0);") self.pushButton_2.setObjectName("pushButton_2") self.pushButton_3 = QtWidgets.QPushButton(self.centralwidget) self.pushButton_3.setGeometry(QtCore.QRect(500, 390, 91, 31)) self.pushButton_3.setStyleSheet("background-color: rgb(255, 204, 0);") self.pushButton_3.setObjectName("pushButton_3") self.label = QtWidgets.QLabel(self.centralwidget) self.label.setGeometry(QtCore.QRect(10, 430, 91, 16)) self.label.setObjectName("label") self.label_2 = QtWidgets.QLabel(self.centralwidget) self.label_2.setGeometry(QtCore.QRect(110, 430, 301, 16)) self.label_2.setText("") self.label_2.setObjectName("label_2") self.lineEdit_2 = QtWidgets.QLineEdit(self.centralwidget) self.lineEdit_2.setGeometry(QtCore.QRect(500, 430, 41, 20)) self.lineEdit_2.setObjectName("lineEdit_2") self.lineEdit_3 = QtWidgets.QLineEdit(self.centralwidget) self.lineEdit_3.setGeometry(QtCore.QRect(570, 430, 41, 20)) self.lineEdit_3.setObjectName("lineEdit_3") self.label_3 = QtWidgets.QLabel(self.centralwidget) self.label_3.setGeometry(QtCore.QRect(480, 430, 16, 20)) self.label_3.setObjectName("label_3") self.label_4 = QtWidgets.QLabel(self.centralwidget) self.label_4.setGeometry(QtCore.QRect(620, 430, 16, 20)) self.label_4.setObjectName("label_4") self.label_5 = QtWidgets.QLabel(self.centralwidget) self.label_5.setGeometry(QtCore.QRect(550, 430, 16, 20)) self.label_5.setObjectName("label_5") self.label_6 = QtWidgets.QLabel(self.centralwidget) self.label_6.setGeometry(QtCore.QRect(410, 430, 71, 20)) self.label_6.setObjectName("label_6") 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 setupUi(self, MainWindow): MainWindow.setObjectName(_fromUtf8("MainWindow")) MainWindow.resize(816, 512) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( MainWindow.sizePolicy().hasHeightForWidth()) MainWindow.setSizePolicy(sizePolicy) MainWindow.setMinimumSize(QtCore.QSize(816, 512)) MainWindow.setMaximumSize(QtCore.QSize(816, 512)) MainWindow.setLocale( QtCore.QLocale(QtCore.QLocale.English, QtCore.QLocale.UnitedStates)) self.centralwidget = QtGui.QWidget(MainWindow) self.centralwidget.setMinimumSize(QtCore.QSize(640, 480)) self.centralwidget.setObjectName(_fromUtf8("centralwidget")) self.frameX = QtGui.QFrame(self.centralwidget) self.frameX.setGeometry(QtCore.QRect(9, 9, 256, 444)) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.MinimumExpanding, QtGui.QSizePolicy.MinimumExpanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.frameX.sizePolicy().hasHeightForWidth()) self.frameX.setSizePolicy(sizePolicy) self.frameX.setFrameShape(QtGui.QFrame.NoFrame) self.frameX.setFrameShadow(QtGui.QFrame.Plain) self.frameX.setObjectName(_fromUtf8("frameX")) self.verticalLayout = QtGui.QVBoxLayout(self.frameX) self.verticalLayout.setMargin(0) self.verticalLayout.setObjectName(_fromUtf8("verticalLayout")) self.labelFFTx = QtGui.QLabel(self.frameX) self.labelFFTx.setObjectName(_fromUtf8("labelFFTx")) self.verticalLayout.addWidget(self.labelFFTx) self.grFFTx = PlotWidget(self.frameX) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.MinimumExpanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.grFFTx.sizePolicy().hasHeightForWidth()) self.grFFTx.setSizePolicy(sizePolicy) self.grFFTx.setMinimumSize(QtCore.QSize(150, 200)) self.grFFTx.setObjectName(_fromUtf8("grFFTx")) self.verticalLayout.addWidget(self.grFFTx) self.labelAx = QtGui.QLabel(self.frameX) self.labelAx.setObjectName(_fromUtf8("labelAx")) self.verticalLayout.addWidget(self.labelAx) self.grAccX = PlotWidget(self.frameX) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.grAccX.sizePolicy().hasHeightForWidth()) self.grAccX.setSizePolicy(sizePolicy) self.grAccX.setMinimumSize(QtCore.QSize(150, 200)) self.grAccX.setSizeIncrement(QtCore.QSize(0, 0)) self.grAccX.setObjectName(_fromUtf8("grAccX")) self.verticalLayout.addWidget(self.grAccX) self.frameY = QtGui.QFrame(self.centralwidget) self.frameY.setGeometry(QtCore.QRect(280, 10, 256, 444)) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.MinimumExpanding, QtGui.QSizePolicy.MinimumExpanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.frameY.sizePolicy().hasHeightForWidth()) self.frameY.setSizePolicy(sizePolicy) self.frameY.setFrameShape(QtGui.QFrame.NoFrame) self.frameY.setFrameShadow(QtGui.QFrame.Plain) self.frameY.setObjectName(_fromUtf8("frameY")) self.verticalLayout_2 = QtGui.QVBoxLayout(self.frameY) self.verticalLayout_2.setMargin(0) self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2")) self.labelFFTy = QtGui.QLabel(self.frameY) self.labelFFTy.setObjectName(_fromUtf8("labelFFTy")) self.verticalLayout_2.addWidget(self.labelFFTy) self.grFFTy = PlotWidget(self.frameY) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.MinimumExpanding, QtGui.QSizePolicy.MinimumExpanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.grFFTy.sizePolicy().hasHeightForWidth()) self.grFFTy.setSizePolicy(sizePolicy) self.grFFTy.setMinimumSize(QtCore.QSize(150, 200)) self.grFFTy.setObjectName(_fromUtf8("grFFTy")) self.verticalLayout_2.addWidget(self.grFFTy) self.labelAy = QtGui.QLabel(self.frameY) self.labelAy.setObjectName(_fromUtf8("labelAy")) self.verticalLayout_2.addWidget(self.labelAy) self.grAccY = PlotWidget(self.frameY) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.MinimumExpanding, QtGui.QSizePolicy.MinimumExpanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.grAccY.sizePolicy().hasHeightForWidth()) self.grAccY.setSizePolicy(sizePolicy) self.grAccY.setMinimumSize(QtCore.QSize(150, 200)) self.grAccY.setSizeIncrement(QtCore.QSize(0, 0)) self.grAccY.setObjectName(_fromUtf8("grAccY")) self.verticalLayout_2.addWidget(self.grAccY) self.frameZ = QtGui.QFrame(self.centralwidget) self.frameZ.setGeometry(QtCore.QRect(550, 10, 256, 444)) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.MinimumExpanding, QtGui.QSizePolicy.MinimumExpanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.frameZ.sizePolicy().hasHeightForWidth()) self.frameZ.setSizePolicy(sizePolicy) self.frameZ.setMinimumSize(QtCore.QSize(256, 0)) self.frameZ.setFrameShape(QtGui.QFrame.NoFrame) self.frameZ.setFrameShadow(QtGui.QFrame.Plain) self.frameZ.setObjectName(_fromUtf8("frameZ")) self.verticalLayout_3 = QtGui.QVBoxLayout(self.frameZ) self.verticalLayout_3.setMargin(0) self.verticalLayout_3.setObjectName(_fromUtf8("verticalLayout_3")) self.labelFFTz = QtGui.QLabel(self.frameZ) self.labelFFTz.setObjectName(_fromUtf8("labelFFTz")) self.verticalLayout_3.addWidget(self.labelFFTz) self.grFFTz = PlotWidget(self.frameZ) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.grFFTz.sizePolicy().hasHeightForWidth()) self.grFFTz.setSizePolicy(sizePolicy) self.grFFTz.setMinimumSize(QtCore.QSize(150, 200)) self.grFFTz.setObjectName(_fromUtf8("grFFTz")) self.verticalLayout_3.addWidget(self.grFFTz) self.labelAz = QtGui.QLabel(self.frameZ) self.labelAz.setObjectName(_fromUtf8("labelAz")) self.verticalLayout_3.addWidget(self.labelAz) self.grAccZ = PlotWidget(self.frameZ) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.MinimumExpanding, QtGui.QSizePolicy.MinimumExpanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.grAccZ.sizePolicy().hasHeightForWidth()) self.grAccZ.setSizePolicy(sizePolicy) self.grAccZ.setMinimumSize(QtCore.QSize(150, 200)) self.grAccZ.setSizeIncrement(QtCore.QSize(0, 0)) self.grAccZ.setObjectName(_fromUtf8("grAccZ")) self.verticalLayout_3.addWidget(self.grAccZ) self.btnStartStream = QtGui.QPushButton(self.centralwidget) self.btnStartStream.setGeometry(QtCore.QRect(480, 460, 75, 23)) self.btnStartStream.setToolTip(_fromUtf8("")) self.btnStartStream.setCheckable(False) self.btnStartStream.setObjectName(_fromUtf8("btnStartStream")) self.btnStartRecord = QtGui.QPushButton(self.centralwidget) self.btnStartRecord.setGeometry(QtCore.QRect(650, 460, 75, 23)) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.btnStartRecord.sizePolicy().hasHeightForWidth()) self.btnStartRecord.setSizePolicy(sizePolicy) self.btnStartRecord.setObjectName(_fromUtf8("btnStartRecord")) self.btnStopStream = QtGui.QPushButton(self.centralwidget) self.btnStopStream.setGeometry(QtCore.QRect(560, 460, 75, 23)) self.btnStopStream.setToolTip(_fromUtf8("")) self.btnStopStream.setCheckable(False) self.btnStopStream.setObjectName(_fromUtf8("btnStopStream")) self.btnStopRecord = QtGui.QPushButton(self.centralwidget) self.btnStopRecord.setGeometry(QtCore.QRect(730, 460, 75, 23)) self.btnStopRecord.setObjectName(_fromUtf8("btnStopRecord")) self.comboBox = QtGui.QComboBox(self.centralwidget) self.comboBox.setGeometry(QtCore.QRect(10, 460, 69, 22)) self.comboBox.setEditable(False) self.comboBox.setObjectName(_fromUtf8("comboBox")) self.comboBox.addItem(_fromUtf8("")) self.comboBox.addItem(_fromUtf8("")) self.btnOpenPort = QtGui.QPushButton(self.centralwidget) self.btnOpenPort.setGeometry(QtCore.QRect(170, 460, 75, 23)) self.btnOpenPort.setCheckable(True) self.btnOpenPort.setChecked(False) self.btnOpenPort.setObjectName(_fromUtf8("btnOpenPort")) self.btnRefreshList = QtGui.QPushButton(self.centralwidget) self.btnRefreshList.setGeometry(QtCore.QRect(90, 460, 75, 23)) self.btnRefreshList.setObjectName(_fromUtf8("btnRefreshList")) MainWindow.setCentralWidget(self.centralwidget) self.menuBar = QtGui.QMenuBar(MainWindow) self.menuBar.setGeometry(QtCore.QRect(0, 0, 816, 21)) self.menuBar.setObjectName(_fromUtf8("menuBar")) self.menuDatei = QtGui.QMenu(self.menuBar) self.menuDatei.setObjectName(_fromUtf8("menuDatei")) MainWindow.setMenuBar(self.menuBar) self.actionData_Folder = QtGui.QAction(MainWindow) self.actionData_Folder.setObjectName(_fromUtf8("actionData_Folder")) self.actionClose = QtGui.QAction(MainWindow) self.actionClose.setShortcutContext(QtCore.Qt.WindowShortcut) self.actionClose.setMenuRole(QtGui.QAction.QuitRole) self.actionClose.setObjectName(_fromUtf8("actionClose")) self.actionCom_Port = QtGui.QAction(MainWindow) self.actionCom_Port.setMenuRole(QtGui.QAction.PreferencesRole) self.actionCom_Port.setSoftKeyRole(QtGui.QAction.NoSoftKey) self.actionCom_Port.setObjectName(_fromUtf8("actionCom_Port")) self.menuDatei.addAction(self.actionData_Folder) self.menuDatei.addSeparator() self.menuDatei.addAction(self.actionClose) self.menuBar.addAction(self.menuDatei.menuAction()) self.retranslateUi(MainWindow) QtCore.QObject.connect(self.actionClose, QtCore.SIGNAL(_fromUtf8("triggered()")), MainWindow.close) QtCore.QMetaObject.connectSlotsByName(MainWindow)
def setupUi(self, MainWindow): MainWindow.setObjectName("MainWindow") MainWindow.resize(773, 593) self.centralwidget = QtWidgets.QWidget(MainWindow) self.centralwidget.setObjectName("centralwidget") self.gridLayout_5 = QtWidgets.QGridLayout(self.centralwidget) self.gridLayout_5.setObjectName("gridLayout_5") self.frame = QtWidgets.QFrame(self.centralwidget) self.frame.setFrameShape(QtWidgets.QFrame.StyledPanel) self.frame.setFrameShadow(QtWidgets.QFrame.Raised) self.frame.setObjectName("frame") self.gridLayout = QtWidgets.QGridLayout(self.frame) self.gridLayout.setObjectName("gridLayout") self.Data_File_Label = QtWidgets.QLabel(self.frame) self.Data_File_Label.setObjectName("Data_File_Label") self.gridLayout.addWidget(self.Data_File_Label, 0, 0, 1, 1) self.Data_File_lineEdit = QtWidgets.QLineEdit(self.frame) self.Data_File_lineEdit.setObjectName("Data_File_lineEdit") self.gridLayout.addWidget(self.Data_File_lineEdit, 0, 1, 1, 1) self.Browse_path_Button = QtWidgets.QToolButton(self.frame) self.Browse_path_Button.setObjectName("Browse_path_Button") self.gridLayout.addWidget(self.Browse_path_Button, 0, 2, 1, 1) self.Plot_PushButton = QtWidgets.QPushButton(self.frame) self.Plot_PushButton.setObjectName("Plot_PushButton") self.gridLayout.addWidget(self.Plot_PushButton, 0, 3, 1, 1) self.Clear_PushButton = QtWidgets.QPushButton(self.frame) self.Clear_PushButton.setObjectName("Clear_PushButton") self.gridLayout.addWidget(self.Clear_PushButton, 0, 4, 1, 1) spacerItem = QtWidgets.QSpacerItem(229, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.gridLayout.addItem(spacerItem, 0, 5, 1, 1) self.gridLayout_5.addWidget(self.frame, 0, 0, 1, 1) self.frame_2 = QtWidgets.QFrame(self.centralwidget) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.frame_2.sizePolicy().hasHeightForWidth()) self.frame_2.setSizePolicy(sizePolicy) self.frame_2.setFrameShape(QtWidgets.QFrame.StyledPanel) self.frame_2.setFrameShadow(QtWidgets.QFrame.Raised) self.frame_2.setObjectName("frame_2") self.gridLayout_4 = QtWidgets.QGridLayout(self.frame_2) self.gridLayout_4.setObjectName("gridLayout_4") self.graphicsView = PlotWidget(self.frame_2) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(2) sizePolicy.setVerticalStretch(1) sizePolicy.setHeightForWidth( self.graphicsView.sizePolicy().hasHeightForWidth()) self.graphicsView.setSizePolicy(sizePolicy) font = QtGui.QFont() font.setBold(True) font.setWeight(75) self.graphicsView.setFont(font) self.graphicsView.setObjectName("graphicsView") self.gridLayout_4.addWidget(self.graphicsView, 0, 0, 1, 1) self.treeView = QtWidgets.QTreeView(self.frame_2) self.treeView.setObjectName("treeView") self.gridLayout_4.addWidget(self.treeView, 1, 0, 1, 1) self.gridLayout_5.addWidget(self.frame_2, 1, 0, 1, 1) MainWindow.setCentralWidget(self.centralwidget) self.menubar = QtWidgets.QMenuBar(MainWindow) self.menubar.setGeometry(QtCore.QRect(0, 0, 773, 21)) self.menubar.setObjectName("menubar") MainWindow.setMenuBar(self.menubar) self.statusbar = QtWidgets.QStatusBar(MainWindow) self.statusbar.setObjectName("statusbar") MainWindow.setStatusBar(self.statusbar) self.retranslateUi(MainWindow) QtCore.QMetaObject.connectSlotsByName(MainWindow)
def setupUi(self, AudioVisualizer): AudioVisualizer.setObjectName("AudioVisualizer") AudioVisualizer.resize(1000, 700) AudioVisualizer.setStyleSheet("background-color: #283747") self.centralwidget = QtWidgets.QWidget(AudioVisualizer) self.centralwidget.setObjectName("centralwidget") self.horizontalLayout = QtWidgets.QHBoxLayout(self.centralwidget) self.horizontalLayout.setObjectName("horizontalLayout") self.sound_lvl = QtWidgets.QProgressBar(self.centralwidget) self.sound_lvl.setMaximum(1000) self.sound_lvl.setProperty("value", 150) self.sound_lvl.setTextVisible(False) self.sound_lvl.setOrientation(QtCore.Qt.Vertical) self.sound_lvl.setObjectName("sound_lvl") self.horizontalLayout.addWidget(self.sound_lvl) self.frame = QtWidgets.QFrame(self.centralwidget) font = QtGui.QFont() font.setBold(True) font.setWeight(75) self.frame.setFont(font) self.frame.setFrameShape(QtWidgets.QFrame.NoFrame) self.frame.setFrameShadow(QtWidgets.QFrame.Plain) self.frame.setObjectName("frame") self.verticalLayout = QtWidgets.QVBoxLayout(self.frame) self.verticalLayout.setContentsMargins(0, 0, 0, 0) self.verticalLayout.setObjectName("verticalLayout") self.label_fft = QtWidgets.QLabel(self.frame) font = QtGui.QFont() font.setPointSize(9) font.setBold(True) font.setWeight(75) self.label_fft.setFont(font) self.label_fft.setStyleSheet("color: #FFFFFF") self.label_fft.setObjectName("label_fft") self.verticalLayout.addWidget(self.label_fft) self.fft_plot = PlotWidget(self.frame) self.fft_plot.setObjectName("fft_plot") self.verticalLayout.addWidget(self.fft_plot) self.pcm_normal = QtWidgets.QLabel(self.frame) font = QtGui.QFont() font.setPointSize(9) font.setBold(True) font.setWeight(75) self.pcm_normal.setFont(font) self.pcm_normal.setStyleSheet("color: #FFFFFF") self.pcm_normal.setObjectName("pcm_normal") self.verticalLayout.addWidget(self.pcm_normal) self.pcm_plot = PlotWidget(self.frame) self.pcm_plot.setObjectName("pcm_plot") self.verticalLayout.addWidget(self.pcm_plot) self.label = QtWidgets.QLabel(self.frame) font = QtGui.QFont() font.setPointSize(9) font.setBold(True) font.setWeight(75) self.label.setFont(font) self.label.setStyleSheet("color: #FFFFFF") self.label.setObjectName("label") self.verticalLayout.addWidget(self.label) self.horizontalSlider = QtWidgets.QSlider(self.frame) self.horizontalSlider.setMinimum(-25) self.horizontalSlider.setMaximum(25) self.horizontalSlider.setOrientation(QtCore.Qt.Horizontal) self.horizontalSlider.setObjectName("horizontalSlider") self.verticalLayout.addWidget(self.horizontalSlider) self.horizontalLayout.addWidget(self.frame) AudioVisualizer.setCentralWidget(self.centralwidget) self.retranslateUi(AudioVisualizer) QtCore.QMetaObject.connectSlotsByName(AudioVisualizer)