diff options
author | fahim | 2015-06-09 15:20:37 +0530 |
---|---|---|
committer | fahim | 2015-06-09 15:20:37 +0530 |
commit | fa480619f5a5d3035a922607f293d1daa5a01dc8 (patch) | |
tree | 7d3dabe713a679362032b0ee590fb9c41bf12ea5 /src/kicadtoNgspice/Analysis.py | |
parent | fc483566526a7022b1b2a61e4f3e001914e2b7c5 (diff) | |
download | eSim-fa480619f5a5d3035a922607f293d1daa5a01dc8.tar.gz eSim-fa480619f5a5d3035a922607f293d1daa5a01dc8.tar.bz2 eSim-fa480619f5a5d3035a922607f293d1daa5a01dc8.zip |
Subject: Adding functionality of .op analysis
Description: Adding functionality of .op analysis
Diffstat (limited to 'src/kicadtoNgspice/Analysis.py')
-rw-r--r-- | src/kicadtoNgspice/Analysis.py | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/src/kicadtoNgspice/Analysis.py b/src/kicadtoNgspice/Analysis.py index b679188d..22383c5b 100644 --- a/src/kicadtoNgspice/Analysis.py +++ b/src/kicadtoNgspice/Analysis.py @@ -322,11 +322,11 @@ class Analysis(QtGui.QWidget): self.parameter_cnt= self.parameter_cnt+1 self.check=QtGui.QCheckBox('Operating Point Analysis',self) - if(self.check.isChecked()): - self.flagcheck = 1 - - else: - self.flagcheck= 2 + self.track_obj.op_check.append(0) + #QtCore.QObject.connect(check,SIGNAL("stateChanged()"),check,SLOT("checkedSlot")) + self.check.stateChanged.connect(self.setflag) + #self.flagcheck = 1 + #self.flagcheck= 2 self.dcgrid.addWidget(self.check,5,1,5,2) self.track_obj.DC_entry_var["ITEMS"]=self.dc_entry_var self.track_obj.DC_Parameter["ITEMS"]=self.dc_parameter @@ -365,7 +365,13 @@ class Analysis(QtGui.QWidget): def stop_changecombo(self,text): self.dc_parameter[2]=str(text) - + + def setflag(self): + if self.check.isChecked(): + self.track_obj.op_check.append(1) + else: + self.track_obj.op_check.append(0) + def createTRANgroup(self): kicadFile = sys.argv[1] (projpath,filename)=os.path.split(kicadFile) |