summaryrefslogtreecommitdiff
path: root/src/progressBar
diff options
context:
space:
mode:
authorPranav P2023-04-07 20:20:33 +0530
committerPranav P2023-04-07 20:20:33 +0530
commitf87ebcf83c4a2a614e79b10039021cc5a0d56889 (patch)
tree799b929fa44ba972b738a6a758093472d7a7e3a5 /src/progressBar
parent2b3b684b9f6b039beace62272c3d46dc8ec22147 (diff)
downloadeSim-f87ebcf83c4a2a614e79b10039021cc5a0d56889.tar.gz
eSim-f87ebcf83c4a2a614e79b10039021cc5a0d56889.tar.bz2
eSim-f87ebcf83c4a2a614e79b10039021cc5a0d56889.zip
Added progress bar, QtTimer and removed the plots
Diffstat (limited to 'src/progressBar')
-rw-r--r--src/progressBar/progressBar.py51
1 files changed, 51 insertions, 0 deletions
diff --git a/src/progressBar/progressBar.py b/src/progressBar/progressBar.py
new file mode 100644
index 00000000..938b0774
--- /dev/null
+++ b/src/progressBar/progressBar.py
@@ -0,0 +1,51 @@
+# -*- coding: utf-8 -*-
+
+# Form implementation generated from reading ui file 'pop_up_design.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_Dialog(object):
+ def setupUi(self, Dialog):
+ Dialog.setObjectName("Dialog")
+ Dialog.resize(843, 396)
+ self.progressBar = QtWidgets.QProgressBar(Dialog)
+ self.progressBar.setGeometry(QtCore.QRect(30, 30, 781, 31))
+ self.progressBar.setStyleSheet("QProgressBar::chunk {\n"
+" background-color: rgb(38, 162, 105);\n"
+"}")
+ self.progressBar.setMaximum(0)
+ #self.progressBar.setProperty("value", 100)
+ self.progressBar.setTextDirection(QtWidgets.QProgressBar.TopToBottom)
+ self.progressBar.setFormat("")
+ self.progressBar.setObjectName("progressBar")
+ self.ngspiceConsole = QtWidgets.QPlainTextEdit(Dialog)
+ self.ngspiceConsole.setGeometry(QtCore.QRect(30, 80, 781, 281))
+ self.ngspiceConsole.setAutoFillBackground(False)
+ self.ngspiceConsole.setTextInteractionFlags(QtCore.Qt.TextSelectableByKeyboard | QtCore.Qt.TextSelectableByMouse)
+ self.ngspiceConsole.setStyleSheet("QPlainTextEdit {\n"
+" background-color: rgb(36, 31, 49);\n"
+" color: white;\n"
+"}")
+ self.ngspiceConsole.setObjectName("ngspiceConsole")
+
+ self.retranslateUi(Dialog)
+ QtCore.QMetaObject.connectSlotsByName(Dialog)
+
+ def retranslateUi(self, Dialog):
+ _translate = QtCore.QCoreApplication.translate
+ Dialog.setWindowTitle(_translate("Dialog", "Dialog"))
+ #self.ngspiceConsole.setPlainText(_translate("Dialog", "The Ngspice simulation log will appear here."))
+
+ def writeIntoConsole(self, text):
+ self.ngspiceConsole.insertPlainText(text)
+
+ def showProgressCompleted(self):
+ self.progressBar.setMaximum(100)
+ self.progressBar.setProperty("value", 100)