From 2de5fa0604c35a1508bca8bab318724da823633a Mon Sep 17 00:00:00 2001
From: Pranav P
Date: Sun, 7 May 2023 17:01:26 +0530
Subject: Mentions whether simulation successful or not
---
src/progressBar/progressBar.py | 12 +++++++++++-
src/progressBar/progressBar.ui | 2 +-
2 files changed, 12 insertions(+), 2 deletions(-)
(limited to 'src/progressBar')
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 = '{}'
+ successFormat = '{}'
+
+ 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 @@
10
10
1131
- 481
+ 471
--
cgit