summaryrefslogtreecommitdiff
path: root/src/frontEnd/TerminalUi.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/frontEnd/TerminalUi.py')
-rw-r--r--src/frontEnd/TerminalUi.py18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/frontEnd/TerminalUi.py b/src/frontEnd/TerminalUi.py
index 4c53548f..f838ae07 100644
--- a/src/frontEnd/TerminalUi.py
+++ b/src/frontEnd/TerminalUi.py
@@ -94,6 +94,7 @@ class TerminalUi(QtWidgets.QMainWindow):
def redoSimulation(self):
"""This function reruns the ngspice simulation
"""
+ self.Flag = "Flase"
self.cancelSimulationButton.setEnabled(True)
self.redoSimulationButton.setEnabled(False)
@@ -107,6 +108,23 @@ class TerminalUi(QtWidgets.QMainWindow):
self.simulationConsole.setText("")
self.simulationCancelled = False
+ msg_box = QtWidgets.QMessageBox(self)
+ msg_box.setWindowTitle("Ngspice Plots")
+ msg_box.setText("Do you want Ngspice plots?")
+
+ yes_button = msg_box.addButton("Yes", QtWidgets.QMessageBox.YesRole)
+ no_button = msg_box.addButton("No", QtWidgets.QMessageBox.NoRole)
+
+ msg_box.exec_()
+
+ if msg_box.clickedButton() == yes_button:
+ self.Flag = True
+ else:
+ self.Flag = False
+
+ # Emit a custom signal with name plotFlag2 depending upon the Flag
+ self.qProcess.setProperty("plotFlag2", self.Flag)
+
self.qProcess.start('ngspice', self.args)
def changeColor(self):