From d8a2de2ef6126654184a1924cd21d242bea1be18 Mon Sep 17 00:00:00 2001 From: Pranav P Date: Thu, 1 Jun 2023 17:38:18 +0530 Subject: PR fixes --- src/frontEnd/TerminalUi.py | 25 +------------------------ 1 file changed, 1 insertion(+), 24 deletions(-) (limited to 'src/frontEnd/TerminalUi.py') 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 = ' \ - {} \ - ' - successFormat = ' \ - {} \ - ' - - 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 = '{}' + cancelFormat = '{}' self.qProcess.kill() # To show progressBar completed -- cgit