summaryrefslogtreecommitdiff
path: root/src/ngspiceSimulation/pythonPlotting.py
diff options
context:
space:
mode:
authorfahim2015-05-20 15:49:06 +0530
committerfahim2015-05-20 15:49:06 +0530
commita062393843db4033f11837a3c7800136c00fef36 (patch)
tree84e870fb08b3a9a7e8d4ceb9e40a871b02b4e57e /src/ngspiceSimulation/pythonPlotting.py
parent73e306db40503eba8f80a3a3508aebe76081ea2b (diff)
downloadeSim-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/pythonPlotting.py')
-rw-r--r--src/ngspiceSimulation/pythonPlotting.py16
1 files changed, 4 insertions, 12 deletions
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"