summaryrefslogtreecommitdiff
path: root/src/progressBar
diff options
context:
space:
mode:
Diffstat (limited to 'src/progressBar')
-rw-r--r--src/progressBar/progressBar.py12
-rw-r--r--src/progressBar/progressBar.ui2
2 files changed, 12 insertions, 2 deletions
diff --git a/src/progressBar/progressBar.py b/src/progressBar/progressBar.py
index 4bc1e982..f0aa964f 100644
--- a/src/progressBar/progressBar.py
+++ b/src/progressBar/progressBar.py
@@ -16,12 +16,13 @@ class Ui_Form(object):
self.qProcess = qProcess
self.qTimer = simulationEssentials['timer']
self.enableButtons = simulationEssentials['enableButtons']
+ self.isSimulationSuccess = simulationEssentials['isSimulationSuccess']
# super().__init__()
def setupUi(self, Form):
Form.setObjectName("Form")
Form.resize(1244, 644)
self.verticalLayoutWidget = QtWidgets.QWidget(Form)
- self.verticalLayoutWidget.setGeometry(QtCore.QRect(10, 10, 1131, 481))
+ self.verticalLayoutWidget.setGeometry(QtCore.QRect(10, 10, 1131, 471))
self.verticalLayoutWidget.setObjectName("verticalLayoutWidget")
self.verticalLayout = QtWidgets.QVBoxLayout(self.verticalLayoutWidget)
self.verticalLayout.setSizeConstraint(QtWidgets.QLayout.SetDefaultConstraint)
@@ -99,6 +100,15 @@ class Ui_Form(object):
def writeIntoConsole(self, consoleLog):
self.simulationConsole.insertPlainText(consoleLog)
+
+ def writeSimulationStatusToConsole(self, isSuccess):
+ failedFormat = '<span style="color:red;">{}</span>'
+ successFormat = '<span style="color:green;">{}</span>'
+
+ if isSuccess:
+ self.simulationConsole.append(successFormat.format("Simulation Completed Successfully!"))
+ else:
+ self.simulationConsole.append(failedFormat.format("Simulation Failed!"))
def showProgressCompleted(self):
self.progressBar.setMaximum(100)
diff --git a/src/progressBar/progressBar.ui b/src/progressBar/progressBar.ui
index 142decea..c85c0788 100644
--- a/src/progressBar/progressBar.ui
+++ b/src/progressBar/progressBar.ui
@@ -19,7 +19,7 @@
<x>10</x>
<y>10</y>
<width>1131</width>
- <height>481</height>
+ <height>471</height>
</rect>
</property>
<layout class="QVBoxLayout" name="verticalLayout">