From fa480619f5a5d3035a922607f293d1daa5a01dc8 Mon Sep 17 00:00:00 2001 From: fahim Date: Tue, 9 Jun 2015 15:20:37 +0530 Subject: Subject: Adding functionality of .op analysis Description: Adding functionality of .op analysis --- src/kicadtoNgspice/Analysis.py | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) (limited to 'src/kicadtoNgspice/Analysis.py') 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) -- cgit