summaryrefslogtreecommitdiff
path: root/src/frontEnd/TerminalUi.py
diff options
context:
space:
mode:
authorPranav P2023-06-01 17:38:18 +0530
committerPranav P2023-06-01 17:38:18 +0530
commitd8a2de2ef6126654184a1924cd21d242bea1be18 (patch)
treec2622c775565c892ad0cf42cb45f263bc63d9f6b /src/frontEnd/TerminalUi.py
parentfb53f8b67cb15802c1d5ddbe59cf880c1d98954f (diff)
downloadeSim-d8a2de2ef6126654184a1924cd21d242bea1be18.tar.gz
eSim-d8a2de2ef6126654184a1924cd21d242bea1be18.tar.bz2
eSim-d8a2de2ef6126654184a1924cd21d242bea1be18.zip
PR fixes
Diffstat (limited to 'src/frontEnd/TerminalUi.py')
-rw-r--r--src/frontEnd/TerminalUi.py25
1 files changed, 1 insertions, 24 deletions
diff --git a/src/frontEnd/TerminalUi.py b/src/frontEnd/TerminalUi.py
index 24ee4596..902b6f59 100644
--- a/src/frontEnd/TerminalUi.py
+++ b/src/frontEnd/TerminalUi.py
@@ -65,35 +65,12 @@ class TerminalUi(QtWidgets.QMainWindow):
# show app
self.show()
- def writeSimulationStatusToConsole(self, isSuccess):
- """Writes simulation status to the console with appropriate style
- to the :class:`Form_Ui` console.
-
- :param isSuccess: A boolean flag used to indicate whether the
- simulation was a success or not
- :type isSuccess: bool
- """
- failedFormat = '<span style="color:#ff3333; font-size:18px;"> \
- {} \
- </span>'
- successFormat = '<span style="color:#00ff00; font-size:18px;"> \
- {} \
- </span>'
-
- if self.qProcess.exitStatus() == QtCore.QProcess.NormalExit:
- if isSuccess:
- self.simulationConsole.append(
- successFormat.format("Simulation Completed Successfully!"))
- else:
- self.simulationConsole.append(
- failedFormat.format("Simulation Failed!"))
-
def cancelSimulation(self):
"""This function cancels the ongoing ngspice simulation.
"""
if (self.qProcess.state() == QtCore.QProcess.NotRunning):
return
- cancelFormat = '<span style="color:#3385ff; font-size:18px;">{}</span>'
+ cancelFormat = '<span style="color:#FF8624; font-size:26px;">{}</span>'
self.qProcess.kill()
# To show progressBar completed