class Ui_MainWindow(object): def setupUi(self, MainWindow): MainWindow.setObjectName("MainWindow") MainWindow.resize(1024, 700) MainWindow.setMaximumSize(QtCore.QSize(100000, 100000)) self.centralwidget = QtWidgets.QWidget(MainWindow) self.centralwidget.setObjectName("centralwidget") self.horizontalLayout = QtWidgets.QHBoxLayout(self.centralwidget) self.horizontalLayout.setObjectName("horizontalLayout") self.verticalLayout_3 = QtWidgets.QVBoxLayout() self.verticalLayout_3.setObjectName("verticalLayout_3") self.label_7 = QtWidgets.QLabel(self.centralwidget) self.label_7.setObjectName("label_7") self.verticalLayout_3.addWidget(self.label_7) self.groupBox_3 = QtWidgets.QGroupBox(self.centralwidget) self.groupBox_3.setObjectName("groupBox_3") self.layoutWidget = QtWidgets.QWidget(self.groupBox_3) self.layoutWidget.setGeometry(QtCore.QRect(30, 20, 291, 128)) self.layoutWidget.setObjectName("layoutWidget") self.verticalLayout_5 = QtWidgets.QVBoxLayout(self.layoutWidget) self.verticalLayout_5.setContentsMargins(0, 0, 0, 0) self.verticalLayout_5.setObjectName("verticalLayout_5") self.horizontalLayout_2 = QtWidgets.QHBoxLayout() self.horizontalLayout_2.setObjectName("horizontalLayout_2") self.label_4 = QtWidgets.QLabel(self.layoutWidget) self.label_4.setObjectName("label_4") self.horizontalLayout_2.addWidget(self.label_4) self.comboBox = QtWidgets.QComboBox(self.layoutWidget) self.comboBox.setObjectName("comboBox") self.horizontalLayout_2.addWidget(self.comboBox) self.verticalLayout_5.addLayout(self.horizontalLayout_2) self.horizontalLayout_3 = QtWidgets.QHBoxLayout() self.horizontalLayout_3.setObjectName("horizontalLayout_3") self.label_5 = QtWidgets.QLabel(self.layoutWidget) self.label_5.setObjectName("label_5") self.horizontalLayout_3.addWidget(self.label_5) self.comboBox_2 = QtWidgets.QComboBox(self.layoutWidget) self.comboBox_2.setObjectName("comboBox_2") self.horizontalLayout_3.addWidget(self.comboBox_2) self.verticalLayout_5.addLayout(self.horizontalLayout_3) self.pushButton_3 = QtWidgets.QPushButton(self.layoutWidget) self.pushButton_3.setObjectName("pushButton_3") self.verticalLayout_5.addWidget(self.pushButton_3) self.pushButton_4 = QtWidgets.QPushButton(self.layoutWidget) self.pushButton_4.setObjectName("pushButton_4") self.verticalLayout_5.addWidget(self.pushButton_4) self.label_6 = QtWidgets.QLabel(self.layoutWidget) self.label_6.setObjectName("label_6") self.verticalLayout_5.addWidget(self.label_6) self.verticalLayout_3.addWidget(self.groupBox_3) self.groupBox = QtWidgets.QGroupBox(self.centralwidget) self.groupBox.setAlignment(QtCore.Qt.AlignLeading | QtCore.Qt.AlignLeft | QtCore.Qt.AlignTop) self.groupBox.setObjectName("groupBox") self.verticalLayoutWidget_2 = QtWidgets.QWidget(self.groupBox) self.verticalLayoutWidget_2.setGeometry(QtCore.QRect(30, 30, 281, 81)) self.verticalLayoutWidget_2.setObjectName("verticalLayoutWidget_2") self.verticalLayout_2 = QtWidgets.QVBoxLayout( self.verticalLayoutWidget_2) self.verticalLayout_2.setContentsMargins(0, 0, 0, 0) self.verticalLayout_2.setObjectName("verticalLayout_2") self.label_2 = QtWidgets.QLabel(self.verticalLayoutWidget_2) self.label_2.setMaximumSize(QtCore.QSize(16777215, 126)) self.label_2.setTextFormat(QtCore.Qt.RichText) self.label_2.setObjectName("label_2") self.verticalLayout_2.addWidget(self.label_2) self.label_3 = QtWidgets.QLabel(self.verticalLayoutWidget_2) self.label_3.setObjectName("label_3") self.verticalLayout_2.addWidget(self.label_3) self.label = QtWidgets.QLabel(self.groupBox) self.label.setGeometry(QtCore.QRect(-40, 500, 659, 82)) self.label.setObjectName("label") self.verticalLayout_3.addWidget(self.groupBox) self.groupBox_2 = QtWidgets.QGroupBox(self.centralwidget) self.groupBox_2.setObjectName("groupBox_2") self.horizontalLayout_7 = QtWidgets.QHBoxLayout(self.groupBox_2) self.horizontalLayout_7.setObjectName("horizontalLayout_7") self.verticalLayout = QtWidgets.QVBoxLayout() self.verticalLayout.setObjectName("verticalLayout") self.pushButton = QtWidgets.QPushButton(self.groupBox_2) self.pushButton.setObjectName("pushButton") self.verticalLayout.addWidget(self.pushButton) self.pushButton_2 = QtWidgets.QPushButton(self.groupBox_2) self.pushButton_2.setObjectName("pushButton_2") self.verticalLayout.addWidget(self.pushButton_2) self.horizontalLayout_7.addLayout(self.verticalLayout) self.verticalLayout_4 = QtWidgets.QVBoxLayout() self.verticalLayout_4.setObjectName("verticalLayout_4") self.pushButton_5 = QtWidgets.QPushButton(self.groupBox_2) self.pushButton_5.setObjectName("pushButton_5") self.verticalLayout_4.addWidget(self.pushButton_5) self.pushButton_6 = QtWidgets.QPushButton(self.groupBox_2) self.pushButton_6.setObjectName("pushButton_6") self.verticalLayout_4.addWidget(self.pushButton_6) self.horizontalLayout_7.addLayout(self.verticalLayout_4) self.verticalLayout_3.addWidget(self.groupBox_2) self.horizontalLayout.addLayout(self.verticalLayout_3) self.tabWidget = QtWidgets.QTabWidget(self.centralwidget) self.tabWidget.setObjectName("tabWidget") self.tab = QtWidgets.QWidget() self.tab.setObjectName("tab") self.horizontalLayout_4 = QtWidgets.QHBoxLayout(self.tab) self.horizontalLayout_4.setObjectName("horizontalLayout_4") self.graphicsView = PlotWidget(self.tab) self.graphicsView.setMaximumSize(QtCore.QSize(1920, 1920)) self.graphicsView.setBaseSize(QtCore.QSize(256, 256)) self.graphicsView.setObjectName("graphicsView") self.horizontalLayout_4.addWidget(self.graphicsView) self.tabWidget.addTab(self.tab, "") self.tab_2 = QtWidgets.QWidget() self.tab_2.setObjectName("tab_2") self.horizontalLayout_5 = QtWidgets.QHBoxLayout(self.tab_2) self.horizontalLayout_5.setObjectName("horizontalLayout_5") self.label_8 = QtWidgets.QLabel(self.tab_2) self.label_8.setObjectName("label_8") self.horizontalLayout_5.addWidget(self.label_8) self.tabWidget.addTab(self.tab_2, "") self.horizontalLayout.addWidget(self.tabWidget) MainWindow.setCentralWidget(self.centralwidget) self.menubar = QtWidgets.QMenuBar(MainWindow) self.menubar.setGeometry(QtCore.QRect(0, 0, 1024, 23)) self.menubar.setObjectName("menubar") self.menufile = QtWidgets.QMenu(self.menubar) self.menufile.setObjectName("menufile") self.menuheli = QtWidgets.QMenu(self.menubar) self.menuheli.setObjectName("menuheli") MainWindow.setMenuBar(self.menubar) self.statusbar = QtWidgets.QStatusBar(MainWindow) self.statusbar.setObjectName("statusbar") MainWindow.setStatusBar(self.statusbar) self.toolBar = QtWidgets.QToolBar(MainWindow) self.toolBar.setObjectName("toolBar") MainWindow.addToolBar(QtCore.Qt.TopToolBarArea, self.toolBar) self.actionexit = QtWidgets.QAction(MainWindow) self.actionexit.setObjectName("actionexit") self.actionHow_to_use = QtWidgets.QAction(MainWindow) self.actionHow_to_use.setObjectName("actionHow_to_use") self.actionAbout_us = QtWidgets.QAction(MainWindow) self.actionAbout_us.setObjectName("actionAbout_us") self.actionSuggestion = QtWidgets.QAction(MainWindow) self.actionSuggestion.setObjectName("actionSuggestion") self.actionStart = QtWidgets.QAction(MainWindow) self.actionStart.setObjectName("actionStart") self.actionStop = QtWidgets.QAction(MainWindow) self.actionStop.setObjectName("actionStop") self.actionConnect_device = QtWidgets.QAction(MainWindow) self.actionConnect_device.setObjectName("actionConnect_device") self.actionStart_device = QtWidgets.QAction(MainWindow) self.actionStart_device.setObjectName("actionStart_device") self.actionStop_deviece = QtWidgets.QAction(MainWindow) self.actionStop_deviece.setObjectName("actionStop_deviece") self.actionExit = QtWidgets.QAction(MainWindow) self.actionExit.setObjectName("actionExit") self.actionSuggestion_2 = QtWidgets.QAction(MainWindow) self.actionSuggestion_2.setObjectName("actionSuggestion_2") self.menufile.addSeparator() self.menufile.addAction(self.actionConnect_device) self.menufile.addSeparator() self.menufile.addAction(self.actionStart_device) self.menufile.addSeparator() self.menufile.addAction(self.actionStop_deviece) self.menufile.addSeparator() self.menufile.addAction(self.actionExit) self.menuheli.addAction(self.actionHow_to_use) self.menuheli.addSeparator() self.menuheli.addAction(self.actionAbout_us) self.menuheli.addSeparator() self.menuheli.addAction(self.actionSuggestion_2) self.menubar.addAction(self.menufile.menuAction()) self.menubar.addAction(self.menuheli.menuAction()) self.retranslateUi(MainWindow) self.tabWidget.setCurrentIndex(0) QtCore.QMetaObject.connectSlotsByName(MainWindow) def retranslateUi(self, MainWindow): _translate = QtCore.QCoreApplication.translate MainWindow.setWindowTitle(_translate("MainWindow", "MainWindow")) self.label_7.setText( _translate( "MainWindow", "<html><head/><body><p align=\"center\"><span style=\" font-size:18pt; font-weight:600;\">ICARE SYSTEM INTERFACE</span></p></body></html>" )) self.groupBox_3.setTitle(_translate("MainWindow", "Com Ports")) self.label_4.setText( _translate( "MainWindow", "<html><head/><body><p><span style=\" font-weight:600;\">UART:</span></p></body></html>" )) self.label_5.setText( _translate( "MainWindow", "<html><head/><body><p><span style=\" font-weight:600;\">DATA:</span></p></body></html>" )) self.pushButton_3.setText(_translate("MainWindow", "CONNECT")) self.pushButton_4.setText(_translate("MainWindow", "CLOSE ")) self.label_6.setText( _translate("MainWindow", "COM STATUS : Ports NOT Connect")) self.groupBox.setTitle(_translate("MainWindow", "Environment ")) self.label_2.setText( _translate( "MainWindow", "<html><head/><body><p><span style=\" font-weight:600;\">Temperature:</span></p></body></html>" )) self.label_3.setText( _translate( "MainWindow", "<html><head/><body><p><span style=\" font-weight:600;\">Humidity:</span></p></body></html>" )) self.label.setText( _translate( "MainWindow", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n" "<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n" "p, li { white-space: pre-wrap; }\n" "</style></head><body style=\" font-family:\'SimSun\'; font-size:9pt; font-weight:400; font-style:normal;\">\n" "<p style=\" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-size:16pt; font-weight:600;\">Concentration of CO:</span></p></body></html>" )) self.groupBox_2.setTitle(_translate("MainWindow", "Device Control")) self.pushButton.setText(_translate("MainWindow", "CARING")) self.pushButton_2.setText(_translate("MainWindow", "STOP_C")) self.pushButton_5.setText(_translate("MainWindow", "MONITORING")) self.pushButton_6.setText(_translate("MainWindow", "STOP_M")) self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab), _translate("MainWindow", "Point Plot")) self.label_8.setText(_translate("MainWindow", "TextLabel")) self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_2), _translate("MainWindow", "Fall Detection")) self.menufile.setTitle(_translate("MainWindow", "File")) self.menuheli.setTitle(_translate("MainWindow", "Help")) self.toolBar.setWindowTitle(_translate("MainWindow", "toolBar")) self.actionexit.setText(_translate("MainWindow", "exit")) self.actionHow_to_use.setText(_translate("MainWindow", "How to use")) self.actionAbout_us.setText(_translate("MainWindow", "About us")) self.actionSuggestion.setText(_translate("MainWindow", "Suggestion")) self.actionStart.setText(_translate("MainWindow", "Start")) self.actionStop.setText(_translate("MainWindow", "Stop")) self.actionConnect_device.setText( _translate("MainWindow", "Connect device")) self.actionStart_device.setText( _translate("MainWindow", "Start device")) self.actionStop_deviece.setText( _translate("MainWindow", "Stop deviece")) self.actionExit.setText( _translate("MainWindow", "Exit ")) self.actionSuggestion_2.setText(_translate("MainWindow", "Suggestion"))
class Ui_MainWindow(object): def setupUi(self, MainWindow): MainWindow.setObjectName("MainWindow") MainWindow.resize(1280, 720) MainWindow.setAutoFillBackground(False) MainWindow.setDocumentMode(False) self.centralwidget = QtWidgets.QWidget(MainWindow) self.centralwidget.setAutoFillBackground(False) self.centralwidget.setObjectName("centralwidget") self.verticalLayout = QtWidgets.QVBoxLayout(self.centralwidget) self.verticalLayout.setObjectName("verticalLayout") self.verticalLayout_3 = QtWidgets.QVBoxLayout() self.verticalLayout_3.setObjectName("verticalLayout_3") self.grPlot = PlotWidget(self.centralwidget) self.grPlot.setEnabled(True) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.grPlot.sizePolicy().hasHeightForWidth()) self.grPlot.setSizePolicy(sizePolicy) self.grPlot.setBaseSize(QtCore.QSize(1011, 900)) self.grPlot.setObjectName("grPlot") self.verticalLayout_3.addWidget(self.grPlot) self.fftPlot = MatplotlibWidget(self.centralwidget) self.fftPlot.setObjectName("fftPlot") self.verticalLayout_3.addWidget(self.fftPlot) self.tabWidget = QtWidgets.QTabWidget(self.centralwidget) self.tabWidget.setObjectName("tabWidget") self.manualTextTab = QtWidgets.QWidget() self.manualTextTab.setObjectName("manualTextTab") self.verticalLayout_4 = QtWidgets.QVBoxLayout(self.manualTextTab) self.verticalLayout_4.setContentsMargins(0, 0, 0, 0) self.verticalLayout_4.setObjectName("verticalLayout_4") self.textEdit = QtWidgets.QTextEdit(self.manualTextTab) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.textEdit.sizePolicy().hasHeightForWidth()) self.textEdit.setSizePolicy(sizePolicy) self.textEdit.setObjectName("textEdit") self.verticalLayout_4.addWidget(self.textEdit) self.horizontalLayout_3 = QtWidgets.QHBoxLayout() self.horizontalLayout_3.setSpacing(6) self.horizontalLayout_3.setObjectName("horizontalLayout_3") self.textConfirmBtn = QtWidgets.QPushButton(self.manualTextTab) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.textConfirmBtn.sizePolicy().hasHeightForWidth()) self.textConfirmBtn.setSizePolicy(sizePolicy) self.textConfirmBtn.setLayoutDirection(QtCore.Qt.LeftToRight) self.textConfirmBtn.setObjectName("textConfirmBtn") self.horizontalLayout_3.addWidget(self.textConfirmBtn) self.mRecordBtn = QtWidgets.QPushButton(self.manualTextTab) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(100) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.mRecordBtn.sizePolicy().hasHeightForWidth()) self.mRecordBtn.setSizePolicy(sizePolicy) self.mRecordBtn.setObjectName("mRecordBtn") self.horizontalLayout_3.addWidget(self.mRecordBtn) self.mResetBtn = QtWidgets.QPushButton(self.manualTextTab) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.mResetBtn.sizePolicy().hasHeightForWidth()) self.mResetBtn.setSizePolicy(sizePolicy) self.mResetBtn.setObjectName("mResetBtn") self.horizontalLayout_3.addWidget(self.mResetBtn) self.verticalLayout_4.addLayout(self.horizontalLayout_3) self.tabWidget.addTab(self.manualTextTab, "") self.readBookTab = QtWidgets.QWidget() self.readBookTab.setAutoFillBackground(False) self.readBookTab.setObjectName("readBookTab") self.verticalLayout_5 = QtWidgets.QVBoxLayout(self.readBookTab) self.verticalLayout_5.setContentsMargins(0, 0, 0, 0) self.verticalLayout_5.setObjectName("verticalLayout_5") self.bookText = QtWidgets.QLineEdit(self.readBookTab) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.bookText.sizePolicy().hasHeightForWidth()) self.bookText.setSizePolicy(sizePolicy) self.bookText.setObjectName("bookText") self.verticalLayout_5.addWidget(self.bookText) self.horizontalLayout_4 = QtWidgets.QHBoxLayout() self.horizontalLayout_4.setObjectName("horizontalLayout_4") self.skipBtn = QtWidgets.QPushButton(self.readBookTab) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.skipBtn.sizePolicy().hasHeightForWidth()) self.skipBtn.setSizePolicy(sizePolicy) self.skipBtn.setObjectName("skipBtn") self.horizontalLayout_4.addWidget(self.skipBtn) self.backBtn = QtWidgets.QPushButton(self.readBookTab) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.backBtn.sizePolicy().hasHeightForWidth()) self.backBtn.setSizePolicy(sizePolicy) self.backBtn.setObjectName("backBtn") self.horizontalLayout_4.addWidget(self.backBtn) self.rRecordBtn = QtWidgets.QPushButton(self.readBookTab) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.rRecordBtn.sizePolicy().hasHeightForWidth()) self.rRecordBtn.setSizePolicy(sizePolicy) self.rRecordBtn.setObjectName("rRecordBtn") self.horizontalLayout_4.addWidget(self.rRecordBtn) self.rResetBtn = QtWidgets.QPushButton(self.readBookTab) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.rResetBtn.sizePolicy().hasHeightForWidth()) self.rResetBtn.setSizePolicy(sizePolicy) self.rResetBtn.setObjectName("rResetBtn") self.horizontalLayout_4.addWidget(self.rResetBtn) self.verticalLayout_5.addLayout(self.horizontalLayout_4) self.tabWidget.addTab(self.readBookTab, "") self.optionsTab = QtWidgets.QWidget() self.optionsTab.setObjectName("optionsTab") self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.optionsTab) self.verticalLayout_2.setContentsMargins(0, 0, 0, 0) self.verticalLayout_2.setObjectName("verticalLayout_2") self.gridLayout = QtWidgets.QGridLayout() self.gridLayout.setObjectName("gridLayout") self.usernameInput = QtWidgets.QLineEdit(self.optionsTab) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.usernameInput.sizePolicy().hasHeightForWidth()) self.usernameInput.setSizePolicy(sizePolicy) self.usernameInput.setObjectName("usernameInput") self.gridLayout.addWidget(self.usernameInput, 0, 1, 1, 1) self.bookNameInput = QtWidgets.QLineEdit(self.optionsTab) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.bookNameInput.sizePolicy().hasHeightForWidth()) self.bookNameInput.setSizePolicy(sizePolicy) self.bookNameInput.setObjectName("bookNameInput") self.gridLayout.addWidget(self.bookNameInput, 1, 1, 1, 1) self.bookLabel = QtWidgets.QLabel(self.optionsTab) self.bookLabel.setObjectName("bookLabel") self.gridLayout.addWidget(self.bookLabel, 1, 0, 1, 1) self.userLabel = QtWidgets.QLabel(self.optionsTab) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.userLabel.sizePolicy().hasHeightForWidth()) self.userLabel.setSizePolicy(sizePolicy) self.userLabel.setObjectName("userLabel") self.gridLayout.addWidget(self.userLabel, 0, 0, 1, 1) self.opConfirmBtn = QtWidgets.QPushButton(self.optionsTab) self.opConfirmBtn.setObjectName("opConfirmBtn") self.gridLayout.addWidget(self.opConfirmBtn, 2, 0, 1, 1) self.verticalLayout_2.addLayout(self.gridLayout) self.tabWidget.addTab(self.optionsTab, "") self.verticalLayout_3.addWidget(self.tabWidget) self.verticalLayout.addLayout(self.verticalLayout_3) MainWindow.setCentralWidget(self.centralwidget) self.statusbar = QtWidgets.QStatusBar(MainWindow) self.statusbar.setObjectName("statusbar") MainWindow.setStatusBar(self.statusbar) self.retranslateUi(MainWindow) self.tabWidget.setCurrentIndex(0) QtCore.QMetaObject.connectSlotsByName(MainWindow) def retranslateUi(self, MainWindow): _translate = QtCore.QCoreApplication.translate MainWindow.setWindowTitle(_translate("MainWindow", "MainWindow")) self.textConfirmBtn.setText(_translate("MainWindow", "Confirm Text")) self.mRecordBtn.setText(_translate("MainWindow", "Record")) self.mResetBtn.setText(_translate("MainWindow", "Reset")) self.tabWidget.setTabText( self.tabWidget.indexOf(self.manualTextTab), _translate("MainWindow", "Manual Text Input")) self.skipBtn.setText(_translate("MainWindow", "Skip")) self.backBtn.setText(_translate("MainWindow", "Back")) self.rRecordBtn.setText(_translate("MainWindow", "Record")) self.rResetBtn.setText(_translate("MainWindow", "Reset")) self.tabWidget.setTabText(self.tabWidget.indexOf(self.readBookTab), _translate("MainWindow", "Read Stuff")) self.bookLabel.setText(_translate("MainWindow", "Book Name:")) self.userLabel.setText(_translate("MainWindow", "User:"******"MainWindow", "Confirm")) self.tabWidget.setTabText(self.tabWidget.indexOf(self.optionsTab), _translate("MainWindow", "Options"))
class Ui_MainWindow(object): def setupUi(self, MainWindow): MainWindow.setObjectName("MainWindow") MainWindow.resize(800, 600) self.centralwidget = QtWidgets.QWidget(MainWindow) self.centralwidget.setObjectName("centralwidget") self.layoutWidget = QtWidgets.QWidget(self.centralwidget) self.layoutWidget.setGeometry(QtCore.QRect(20, 30, 771, 401)) self.layoutWidget.setObjectName("layoutWidget") self.verticalLayout = QtWidgets.QVBoxLayout(self.layoutWidget) self.verticalLayout.setContentsMargins(0, 0, 0, 0) self.verticalLayout.setObjectName("verticalLayout") self.horizontalLayout = QtWidgets.QHBoxLayout() self.horizontalLayout.setSizeConstraint( QtWidgets.QLayout.SetMinimumSize) self.horizontalLayout.setContentsMargins(4, 4, 4, 4) self.horizontalLayout.setSpacing(4) self.horizontalLayout.setObjectName("horizontalLayout") self.widget_2 = PlotWidget(self.layoutWidget) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(1) sizePolicy.setVerticalStretch(9) sizePolicy.setHeightForWidth( self.widget_2.sizePolicy().hasHeightForWidth()) self.widget_2.setSizePolicy(sizePolicy) self.widget_2.setObjectName("widget_2") self.horizontalLayout.addWidget(self.widget_2) self.Start1 = QtWidgets.QPushButton(self.layoutWidget) self.Start1.setObjectName("Start1") self.horizontalLayout.addWidget(self.Start1) self.Browse = QtWidgets.QPushButton(self.layoutWidget) self.Browse.setObjectName("Browse") self.horizontalLayout.addWidget(self.Browse) self.verticalLayout.addLayout(self.horizontalLayout) self.widget = PlotWidget(self.layoutWidget) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(1) sizePolicy.setHeightForWidth( self.widget.sizePolicy().hasHeightForWidth()) self.widget.setSizePolicy(sizePolicy) self.widget.setBaseSize(QtCore.QSize(0, 0)) self.widget.setObjectName("widget") self.verticalLayout.addWidget(self.widget) MainWindow.setCentralWidget(self.centralwidget) self.menubar = QtWidgets.QMenuBar(MainWindow) self.menubar.setGeometry(QtCore.QRect(0, 0, 800, 26)) self.menubar.setObjectName("menubar") MainWindow.setMenuBar(self.menubar) self.statusbar = QtWidgets.QStatusBar(MainWindow) self.statusbar.setObjectName("statusbar") MainWindow.setStatusBar(self.statusbar) self.retranslateUi(MainWindow) QtCore.QMetaObject.connectSlotsByName(MainWindow) def retranslateUi(self, MainWindow): _translate = QtCore.QCoreApplication.translate MainWindow.setWindowTitle(_translate("MainWindow", "MainWindow")) self.Start1.setText(_translate("MainWindow", "start")) self.Browse.setText(_translate("MainWindow", "Browse"))
class Ui_MainWindow(object): def setupUi(self, MainWindow): MainWindow.setObjectName("MainWindow") MainWindow.resize(1188, 845) self.centralwidget = QtWidgets.QWidget(MainWindow) self.centralwidget.setObjectName("centralwidget") self.gridLayout = QtWidgets.QGridLayout(self.centralwidget) self.gridLayout.setObjectName("gridLayout") self.tabWidget = QtWidgets.QTabWidget(self.centralwidget) self.tabWidget.setObjectName("tabWidget") self.tab = QtWidgets.QWidget() self.tab.setObjectName("tab") self.gridLayout_2 = QtWidgets.QGridLayout(self.tab) self.gridLayout_2.setObjectName("gridLayout_2") self.Image6 = PlotWidget(self.tab) self.Image6.setBaseSize(QtCore.QSize(0, 600)) self.Image6.setStyleSheet("background-color: rgb(255, 255, 255);") self.Image6.setObjectName("Image6") self.gridLayout_2.addWidget(self.Image6, 3, 1, 1, 1) self.Image7 = PlotWidget(self.tab) self.Image7.setBaseSize(QtCore.QSize(0, 600)) self.Image7.setStyleSheet("background-color: rgb(255, 255, 255);") self.Image7.setObjectName("Image7") self.gridLayout_2.addWidget(self.Image7, 3, 2, 1, 1) self.Image8 = PlotWidget(self.tab) self.Image8.setBaseSize(QtCore.QSize(0, 600)) self.Image8.setStyleSheet("background-color: rgb(255, 255, 255);") self.Image8.setObjectName("Image8") self.gridLayout_2.addWidget(self.Image8, 3, 3, 1, 1) self.Image1 = PlotWidget(self.tab) self.Image1.setBaseSize(QtCore.QSize(0, 600)) self.Image1.setStyleSheet("background-color: rgb(255, 255, 255);") self.Image1.setObjectName("Image1") self.gridLayout_2.addWidget(self.Image1, 2, 0, 1, 1) self.Image2 = PlotWidget(self.tab) self.Image2.setBaseSize(QtCore.QSize(0, 600)) self.Image2.setStyleSheet("background-color: rgb(255, 255, 255);") self.Image2.setObjectName("Image2") self.gridLayout_2.addWidget(self.Image2, 2, 1, 1, 1) self.Image3 = PlotWidget(self.tab) self.Image3.setBaseSize(QtCore.QSize(0, 600)) self.Image3.setStyleSheet("background-color: rgb(255, 255, 255);") self.Image3.setObjectName("Image3") self.gridLayout_2.addWidget(self.Image3, 2, 2, 1, 1) self.Image5 = PlotWidget(self.tab) self.Image5.setBaseSize(QtCore.QSize(0, 600)) self.Image5.setStyleSheet("background-color: rgb(255, 255, 255);") self.Image5.setObjectName("Image5") self.gridLayout_2.addWidget(self.Image5, 3, 0, 1, 1) self.Image4 = PlotWidget(self.tab) self.Image4.setBaseSize(QtCore.QSize(0, 600)) self.Image4.setStyleSheet("background-color: rgb(255, 255, 255);") self.Image4.setObjectName("Image4") self.gridLayout_2.addWidget(self.Image4, 2, 3, 1, 1) self.label = QtWidgets.QLabel(self.tab) font = QtGui.QFont() font.setPointSize(19) font.setBold(True) font.setWeight(75) self.label.setFont(font) self.label.setObjectName("label") self.gridLayout_2.addWidget(self.label, 1, 0, 1, 1) self.browseImage = QtWidgets.QPushButton(self.tab) font = QtGui.QFont() font.setPointSize(11) self.browseImage.setFont(font) self.browseImage.setObjectName("browseImage") self.gridLayout_2.addWidget(self.browseImage, 1, 3, 1, 1) self.tabWidget.addTab(self.tab, "") self.gridLayout.addWidget(self.tabWidget, 0, 0, 1, 1) MainWindow.setCentralWidget(self.centralwidget) self.menubar = QtWidgets.QMenuBar(MainWindow) self.menubar.setGeometry(QtCore.QRect(0, 0, 1188, 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) self.tabWidget.setCurrentIndex(0) QtCore.QMetaObject.connectSlotsByName(MainWindow) def retranslateUi(self, MainWindow): _translate = QtCore.QCoreApplication.translate MainWindow.setWindowTitle(_translate("MainWindow", "MainWindow")) self.label.setText(_translate("MainWindow", "JPEG decompression")) self.browseImage.setText(_translate("MainWindow", "Browse Image")) self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab), _translate("MainWindow", "JPEG"))