diff options
author | rahulp13 | 2023-06-07 16:26:35 +0530 |
---|---|---|
committer | rahulp13 | 2023-06-07 16:26:35 +0530 |
commit | c99a4951df139de96e80a51805a3b4d677336653 (patch) | |
tree | 300cbfead2409e522482d4179c447d611341cac1 /src/frontEnd/DockArea.py | |
parent | abc410aac656e840940b2227f4d94f0780a614be (diff) | |
download | eSim-c99a4951df139de96e80a51805a3b4d677336653.tar.gz eSim-c99a4951df139de96e80a51805a3b4d677336653.tar.bz2 eSim-c99a4951df139de96e80a51805a3b4d677336653.zip |
sim. process switched to qt slot-signal mech. & report errors
Diffstat (limited to 'src/frontEnd/DockArea.py')
-rwxr-xr-x | src/frontEnd/DockArea.py | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/src/frontEnd/DockArea.py b/src/frontEnd/DockArea.py index dbf43cf4..7037dcfd 100755 --- a/src/frontEnd/DockArea.py +++ b/src/frontEnd/DockArea.py @@ -121,28 +121,19 @@ class DockArea(QtWidgets.QMainWindow): ) count = count + 1 - def ngspiceEditor(self, projDir, startSimulation): + def ngspiceEditor(self, projName, netlist, simEndSignal): """ This function creates widget for Ngspice window.""" - self.projDir = projDir - self.projName = os.path.basename(self.projDir) - dockName = f'Simulation-{self.projName}-' - self.ngspiceNetlist = os.path.join( - self.projDir, self.projName + ".cir.out") - - # Edited by Sumanto Kar 25/08/2021 - if os.path.isfile(self.ngspiceNetlist) is False: - return False - global count self.ngspiceWidget = QtWidgets.QWidget() self.ngspiceLayout = QtWidgets.QVBoxLayout() self.ngspiceLayout.addWidget( - NgspiceWidget(self.ngspiceNetlist, startSimulation) + NgspiceWidget(netlist, simEndSignal) ) # Adding to main Layout self.ngspiceWidget.setLayout(self.ngspiceLayout) + dockName = f'Simulation-{projName}-' dock[dockName + str(count) ] = QtWidgets.QDockWidget(dockName + str(count)) |