summaryrefslogtreecommitdiff
path: root/src/ngspiceSimulation/NgspiceWidget.py
diff options
context:
space:
mode:
authorPranav P2023-05-25 17:32:05 +0530
committerPranav P2023-05-25 17:32:05 +0530
commit111e990dbfce47c53eba5cbe85fc1fbcbe5fe76d (patch)
tree4f75b75bb5a29552fa47510c443a949440a74da5 /src/ngspiceSimulation/NgspiceWidget.py
parent1129cf1035c1ac520d84c04b384f758e090be0c3 (diff)
downloadeSim-111e990dbfce47c53eba5cbe85fc1fbcbe5fe76d.tar.gz
eSim-111e990dbfce47c53eba5cbe85fc1fbcbe5fe76d.tar.bz2
eSim-111e990dbfce47c53eba5cbe85fc1fbcbe5fe76d.zip
Now loads TerminalUi from ui file
Diffstat (limited to 'src/ngspiceSimulation/NgspiceWidget.py')
-rw-r--r--src/ngspiceSimulation/NgspiceWidget.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/ngspiceSimulation/NgspiceWidget.py b/src/ngspiceSimulation/NgspiceWidget.py
index 3e6882b5..e828493e 100644
--- a/src/ngspiceSimulation/NgspiceWidget.py
+++ b/src/ngspiceSimulation/NgspiceWidget.py
@@ -18,15 +18,15 @@ class NgspiceWidget(QtWidgets.QWidget):
QtWidgets.QWidget.__init__(self)
self.obj_appconfig = Appconfig()
self.process = QtCore.QProcess(self)
- self.terminal = QtWidgets.QWidget(self)
+ #self.terminal = QtWidgets.QWidget(self)
self.projDir = self.obj_appconfig.current_project["ProjectName"]
self.checkChangeInPlotFile = simulationEssentials['checkChangeInPlotFile']
self.enableButtons = simulationEssentials['enableButtons']
self.args = ['-b', '-r', command.replace(".cir.out", ".raw"), command]
- self.terminalUi = TerminalUi.Ui_Form(self.process, self.args)
- self.terminalUi.setupUi(self.terminal)
+ self.terminalUi = TerminalUi.TerminalUi(self.process, self.args)
+ #self.terminalUi.setupUi(self.terminal)
self.layout = QtWidgets.QVBoxLayout(self)
- self.layout.addWidget(self.terminal)
+ self.layout.addWidget(self.terminalUi)
print("Argument to ngspice command : ", command)
@@ -90,7 +90,7 @@ class NgspiceWidget(QtWidgets.QWidget):
def writeSimulationStatus(self):
"""This function writes status of the simulation (Success or Failure) to the
- :class:`TerminalUi.Ui_Form` console.
+ :class:`TerminalUi.TerminalUi` console.
"""
if self.readyToPrintSimulationStatus is False:
return
@@ -108,7 +108,7 @@ class NgspiceWidget(QtWidgets.QWidget):
@QtCore.pyqtSlot()
def readyReadAll(self):
- """Outputs the ngspice process standard output and standard error to :class:`TerminalUi.Ui_Form` console
+ """Outputs the ngspice process standard output and standard error to :class:`TerminalUi.TerminalUi` console
"""
self.terminalUi.simulationConsole.insertPlainText(
str(self.process.readAllStandardOutput().data(), encoding='utf-8')