diff options
author | fahim | 2015-05-20 15:49:06 +0530 |
---|---|---|
committer | fahim | 2015-05-20 15:49:06 +0530 |
commit | a062393843db4033f11837a3c7800136c00fef36 (patch) | |
tree | 84e870fb08b3a9a7e8d4ceb9e40a871b02b4e57e /src/ngspiceSimulation | |
parent | 73e306db40503eba8f80a3a3508aebe76081ea2b (diff) | |
download | eSim-a062393843db4033f11837a3c7800136c00fef36.tar.gz eSim-a062393843db4033f11837a3c7800136c00fef36.tar.bz2 eSim-a062393843db4033f11837a3c7800136c00fef36.zip |
Subject: Added refresh button in Project explorer.
Description: Added refresh button in project explorer.
Diffstat (limited to 'src/ngspiceSimulation')
-rw-r--r-- | src/ngspiceSimulation/NgspiceWidget.py | 7 | ||||
-rw-r--r-- | src/ngspiceSimulation/pythonPlotting.py | 16 | ||||
-rw-r--r-- | src/ngspiceSimulation/pythonPlotting.pyc | bin | 16955 -> 16978 bytes |
3 files changed, 9 insertions, 14 deletions
diff --git a/src/ngspiceSimulation/NgspiceWidget.py b/src/ngspiceSimulation/NgspiceWidget.py index a70a9b48..e61c4a61 100644 --- a/src/ngspiceSimulation/NgspiceWidget.py +++ b/src/ngspiceSimulation/NgspiceWidget.py @@ -1,5 +1,5 @@ from PyQt4 import QtGui,QtCore - +from configuration.Appconfig import Appconfig class NgspiceWidget(QtGui.QWidget): """ @@ -7,6 +7,7 @@ class NgspiceWidget(QtGui.QWidget): """ def __init__(self,command): QtGui.QWidget.__init__(self) + self.obj_appconfig = Appconfig() self.command = "ngspice "+command self.process = QtCore.QProcess(self) @@ -17,7 +18,9 @@ class NgspiceWidget(QtGui.QWidget): #Creating argument for process self.args = ['-into', str(self.terminal.winId()),'-hold','-e', self.command] self.process.start('xterm', self.args) - + print "Children ",self.process + #Adding PID + #self.obj_appconfig.procThread_list.append(self.process.pid()) diff --git a/src/ngspiceSimulation/pythonPlotting.py b/src/ngspiceSimulation/pythonPlotting.py index 9e7761fe..fd98a0c8 100644 --- a/src/ngspiceSimulation/pythonPlotting.py +++ b/src/ngspiceSimulation/pythonPlotting.py @@ -46,6 +46,8 @@ class plotWindow(QtGui.QMainWindow): self.chkbox=[] self.a = self.fobj.numVals() + print "A :",self.a + ########### Generating list of colours : self.full_colors = ['r','b','g','y','c','m','k']#,(0.4,0.5,0.2),(0.1,0.4,0.9),(0.4,0.9,0.2),(0.9,0.4,0.9)] self.color = [] @@ -114,16 +116,6 @@ class plotWindow(QtGui.QMainWindow): right_grid.addWidget(self.Note2,4,1) right_vbox.addLayout(right_grid) - ''' - netlist = QtGui.QTextEdit() - with open (self.fpath+"/"+self.projName+'.cir.out') as f2: - fdata = f2.read() - netlist.setText(fdata) - netlist.setReadOnly(True) - - - left_vbox.addWidget(netlist) - ''' hbox = QtGui.QHBoxLayout() hbox.addLayout(left_vbox) hbox.addLayout(right_vbox) @@ -172,7 +164,7 @@ class plotWindow(QtGui.QMainWindow): else: self.setWindowTitle('DC Analysis') self.connect(self.btn,QtCore.SIGNAL('clicked()'), self.onPush_dc) - + self.setCentralWidget(self.main_frame) @@ -227,7 +219,7 @@ class plotWindow(QtGui.QMainWindow): if self.parts[1] == 'vs': if len(self.parts) > 3: self.Note.setText("Enter two operands only!!") - QtGui.QMessageBox.about(self, "Warning!!", "Recheck the expression syntax!") + QtGui.QMessageBox.about(self, "Warning!!", "Re-check the expression syntax!") else: self.axes.cla() #print "plotting wait" diff --git a/src/ngspiceSimulation/pythonPlotting.pyc b/src/ngspiceSimulation/pythonPlotting.pyc Binary files differindex cb7a4f00..f8304a0b 100644 --- a/src/ngspiceSimulation/pythonPlotting.pyc +++ b/src/ngspiceSimulation/pythonPlotting.pyc |