summaryrefslogtreecommitdiff
path: root/src/kicadtoNgspice/Analysis.py
diff options
context:
space:
mode:
authorFahim2015-06-26 15:18:38 +0530
committerFahim2015-06-26 15:18:38 +0530
commit1de6706596194718b45ea0209538e70811bc3f4b (patch)
treee43efe8a33b703c9a85647d29b7cd9331fd54803 /src/kicadtoNgspice/Analysis.py
parent3882051e95375c2c9883f0b23070a3e909324c22 (diff)
parent81aa4d2cc82f126320f27c881a87333d69cb608b (diff)
downloadeSim-1de6706596194718b45ea0209538e70811bc3f4b.tar.gz
eSim-1de6706596194718b45ea0209538e70811bc3f4b.tar.bz2
eSim-1de6706596194718b45ea0209538e70811bc3f4b.zip
Merge pull request #36 from FOSSEE-Manipal/master
Fixed combo-box bug in transient group of Analysis tab
Diffstat (limited to 'src/kicadtoNgspice/Analysis.py')
-rw-r--r--src/kicadtoNgspice/Analysis.py15
1 files changed, 12 insertions, 3 deletions
diff --git a/src/kicadtoNgspice/Analysis.py b/src/kicadtoNgspice/Analysis.py
index 7c237dde..27dc740f 100644
--- a/src/kicadtoNgspice/Analysis.py
+++ b/src/kicadtoNgspice/Analysis.py
@@ -422,7 +422,10 @@ class Analysis(QtGui.QWidget):
self.start_combobox.addItem("ns")
self.start_combobox.addItem("ps")
self.trgrid.addWidget(self.start_combobox,1,3)
- self.tran_parameter[self.parameter_cnt]= "Sec"
+ try:
+ self.tran_parameter[self.parameter_cnt]= str(root[2][3].text)
+ except:
+ self.tran_parameter[self.parameter_cnt]= "Sec"
self.start_combobox.activated[str].connect(self.start_combo_change)
self.parameter_cnt= self.parameter_cnt+1
@@ -433,7 +436,10 @@ class Analysis(QtGui.QWidget):
self.step_combobox.addItem("ns")
self.step_combobox.addItem("ps")
self.trgrid.addWidget(self.step_combobox,2,3)
- self.tran_parameter[self.parameter_cnt]= "Sec"
+ try:
+ self.tran_parameter[self.parameter_cnt]= str(root[2][4].text)
+ except:
+ self.tran_parameter[self.parameter_cnt]= "Sec"
self.step_combobox.activated[str].connect(self.step_combo_change)
self.parameter_cnt= self.parameter_cnt+1
@@ -444,7 +450,10 @@ class Analysis(QtGui.QWidget):
self.stop_combobox.addItem("ns")
self.stop_combobox.addItem("ps")
self.trgrid.addWidget(self.stop_combobox,3,3)
- self.tran_parameter[self.parameter_cnt]= "Sec"
+ try:
+ self.tran_parameter[self.parameter_cnt]= str(root[2][5].text)
+ except:
+ self.tran_parameter[self.parameter_cnt]= "Sec"
self.stop_combobox.activated[str].connect(self.stop_combo_change)
self.parameter_cnt= self.parameter_cnt+1