# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'progressBarNew.ui' # # Created by: PyQt5 UI code generator 5.15.6 # # WARNING: Any manual changes made to this file will be lost when pyuic5 is # run again. Do not edit this file unless you know what you are doing. from PyQt5 import QtCore, QtGui, QtWidgets class Ui_Simulation(object): def setupUi(self, Simulation): Simulation.setObjectName("Simulation") Simulation.resize(1250, 652) self.gridLayout = QtWidgets.QGridLayout(Simulation) self.gridLayout.setObjectName("gridLayout") self.verticalLayout = QtWidgets.QVBoxLayout() self.verticalLayout.setObjectName("verticalLayout") self.progressBar = QtWidgets.QProgressBar(Simulation) self.progressBar.setStyleSheet("") self.progressBar.setMaximum(0) self.progressBar.setProperty("value", -1) self.progressBar.setFormat("") self.progressBar.setObjectName("progressBar") self.verticalLayout.addWidget(self.progressBar) self.simulationConsole = QtWidgets.QTextEdit(Simulation) self.simulationConsole.setStyleSheet("") self.simulationConsole.setTextInteractionFlags(QtCore.Qt.NoTextInteraction) self.simulationConsole.setObjectName("simulationConsole") self.verticalLayout.addWidget(self.simulationConsole) self.gridLayout.addLayout(self.verticalLayout, 0, 0, 1, 1) self.verticalLayout_2 = QtWidgets.QVBoxLayout() self.verticalLayout_2.setObjectName("verticalLayout_2") self.pushButton = QtWidgets.QPushButton(Simulation) self.pushButton.setObjectName("pushButton") self.verticalLayout_2.addWidget(self.pushButton) self.pushButton_2 = QtWidgets.QPushButton(Simulation) self.pushButton_2.setObjectName("pushButton_2") self.verticalLayout_2.addWidget(self.pushButton_2) self.pushButton_3 = QtWidgets.QPushButton(Simulation) self.pushButton_3.setObjectName("pushButton_3") self.verticalLayout_2.addWidget(self.pushButton_3) self.pushButton_4 = QtWidgets.QPushButton(Simulation) self.pushButton_4.setObjectName("pushButton_4") self.verticalLayout_2.addWidget(self.pushButton_4) self.gridLayout.addLayout(self.verticalLayout_2, 0, 1, 1, 1) self.retranslateUi(Simulation) QtCore.QMetaObject.connectSlotsByName(Simulation) def retranslateUi(self, Simulation): _translate = QtCore.QCoreApplication.translate Simulation.setWindowTitle(_translate("Simulation", "Simulation")) self.simulationConsole.setHtml(_translate("Simulation", "\n" "\n" "

The quick brown fox jumped over the lazy dog

")) self.pushButton.setText(_translate("Simulation", "PushButton")) self.pushButton_2.setText(_translate("Simulation", "PushButton")) self.pushButton_3.setText(_translate("Simulation", "PushButton")) self.pushButton_4.setText(_translate("Simulation", "PushButton")) def writeIntoConsole(self, consoleLog): self.simulationConsole.insertPlainText(consoleLog) def showProgressCompleted(self): self.progressBar.setMaximum(100) self.progressBar.setProperty("value", 100) if __name__ == "__main__": import sys app = QtWidgets.QApplication(sys.argv) Simulation = QtWidgets.QWidget() ui = Ui_Simulation() ui.setupUi(Simulation) Simulation.show() sys.exit(app.exec_())