diff options
author | komalsheth236 | 2015-08-29 12:42:29 +0530 |
---|---|---|
committer | komalsheth236 | 2015-08-29 12:42:29 +0530 |
commit | b811557db8cf6f75fe8633aa5a0b09df032d61d4 (patch) | |
tree | 505ebd7772a96e2896600e637695570f1c387c39 /src/kicadtoNgspice/Source.py | |
parent | 5e81c99de1606d01c5d07fbe35005ad5a4298c7f (diff) | |
download | eSim-b811557db8cf6f75fe8633aa5a0b09df032d61d4.tar.gz eSim-b811557db8cf6f75fe8633aa5a0b09df032d61d4.tar.bz2 eSim-b811557db8cf6f75fe8633aa5a0b09df032d61d4.zip |
Changes in ac Source Details
Diffstat (limited to 'src/kicadtoNgspice/Source.py')
-rw-r--r-- | src/kicadtoNgspice/Source.py | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/src/kicadtoNgspice/Source.py b/src/kicadtoNgspice/Source.py index 4841ab07..c2750732 100644 --- a/src/kicadtoNgspice/Source.py +++ b/src/kicadtoNgspice/Source.py @@ -69,13 +69,18 @@ class Source(QtGui.QWidget): acbox.setTitle(line[3]) acgrid=QtGui.QGridLayout() self.start=self.count - label=QtGui.QLabel(line[4]) - acgrid.addWidget(label,self.row,0) + label1=QtGui.QLabel(line[4]) + label2 = QtGui.QLabel(line[5]) + acgrid.addWidget(label1,self.row,0) + acgrid.addWidget(label2, self.row+1, 0) self.entry_var[self.count]=QtGui.QLineEdit() self.entry_var[self.count].setMaximumWidth(150) acgrid.addWidget(self.entry_var[self.count],self.row,1) - #Value Need to check previuouse value + self.entry_var[self.count+1]=QtGui.QLineEdit() + self.entry_var[self.count+1].setMaximumWidth(150) + acgrid.addWidget(self.entry_var[self.count+1],self.row+1,1) self.entry_var[self.count].setText("") + self.entry_var[self.count+1].setText("") try: for child in root: templist1=line[1] @@ -83,12 +88,13 @@ class Source(QtGui.QWidget): if child.tag==templist2[0] and child.text==line[2]: self.entry_var[self.count].setText(child[0].text) + self.entry_var[self.count+1].setText(child[1].text) except: pass #Value Need to check previuouse value #self.entry_var[self.count].setText("") self.row=self.row+1 - self.end=self.count + self.end=self.count+1 self.count=self.count+1 acbox.setLayout(acgrid) @@ -100,7 +106,8 @@ class Source(QtGui.QWidget): self.grid.addWidget(acbox) sourcelisttrack.append([track_id,'ac',self.start,self.end]) - + + elif line[2]=='dc': dcbox=QtGui.QGroupBox() dcbox.setTitle(line[3]) |