diff options
author | fahim | 2015-03-13 12:23:07 +0530 |
---|---|---|
committer | fahim | 2015-03-13 12:23:07 +0530 |
commit | cd66af95b8a1e5cfcbe5e44211ac5edac0fcc49b (patch) | |
tree | d2b89d47c05313efe2ffac4ac604df749f6b9477 /src/kicadtoNgspice/Analysis.py | |
parent | c0e70c79a6d651cf8b3b397f866ae38485fa5ca0 (diff) | |
download | eSim-cd66af95b8a1e5cfcbe5e44211ac5edac0fcc49b.tar.gz eSim-cd66af95b8a1e5cfcbe5e44211ac5edac0fcc49b.tar.bz2 eSim-cd66af95b8a1e5cfcbe5e44211ac5edac0fcc49b.zip |
Subject: Modified Analysis Tab
Description: Modified Analysis Tab
Diffstat (limited to 'src/kicadtoNgspice/Analysis.py')
-rw-r--r-- | src/kicadtoNgspice/Analysis.py | 41 |
1 files changed, 36 insertions, 5 deletions
diff --git a/src/kicadtoNgspice/Analysis.py b/src/kicadtoNgspice/Analysis.py index 2faedf1d..e1a71a2e 100644 --- a/src/kicadtoNgspice/Analysis.py +++ b/src/kicadtoNgspice/Analysis.py @@ -6,32 +6,63 @@ class Analysis(QtGui.QWidget): def __init__(self): QtGui.QWidget.__init__(self) - self.grid = QtGui.QGridLayout(self) + #elf.scrollArea = QtGui.QScrollArea() + #self.scrollArea.setWidgetResizable(True) + #self.scrollAreaWidgetContents = QtGui.QWidget() + #self.scrollAreaWidgetContents.setGeometry(QtCore.QRect(0, 0, 100, 100)) + #self.hlayout = QtGui.QHBoxLayout(self.scrollAreaWidgetContents) + + self.grid = QtGui.QGridLayout() self.grid.addWidget(self.createACgroup(),0,0) self.grid.addWidget(self.createDCgroup(),1,0) self.grid.addWidget(self.createTRANgroup(),2,0) + ''' + self.grid.addWidget(self.createTRANgroup(),3,0) + self.grid.addWidget(self.createTRANgroup(),4,0) + self.grid.addWidget(self.createTRANgroup(),5,0) + self.grid.addWidget(self.createTRANgroup(),6,0) + self.grid.addWidget(self.createTRANgroup(),7,0) + self.grid.addWidget(self.createTRANgroup(),8,0) + self.grid.addWidget(self.createTRANgroup(),9,0) + self.grid.addWidget(self.createTRANgroup(),10,0) + self.grid.addWidget(self.createTRANgroup(),11,0) + self.grid.addWidget(self.createTRANgroup(),12,0) + self.grid.addWidget(self.createTRANgroup(),13,0) + self.grid.addWidget(self.createTRANgroup(),14,0) + self.grid.addWidget(self.createTRANgroup(),15,0) + self.grid.addWidget(self.createTRANgroup(),16,0) + self.grid.addWidget(self.createTRANgroup(),17,0) + self.grid.addWidget(self.createTRANgroup(),18,0) + self.grid.addWidget(self.createTRANgroup(),19,0) + self.grid.addWidget(self.createTRANgroup(),20,0) + ''' + self.setLayout(self.grid) + + + self.show() def createACgroup(self): self.acbox = QtGui.QGroupBox() - self.acbox.setTitle("AC") - + self.acbox.setTitle("AC Analysis") self.acgrid = QtGui.QGridLayout() self.btn1 = QtGui.QRadioButton("Radio button 1") self.btn2 = QtGui.QRadioButton("Radio button 2") self.acgrid.addWidget(self.btn1,0,0) self.acgrid.addWidget(self.btn2,0,1) + self.acbox.setStyleSheet(" \ QGroupBox { border: 1px solid gray; border-radius: 9px; margin-top: 0.5em; } \ QGroupBox::title { subcontrol-origin: margin; left: 10px; padding: 0 3px 0 3px; } \ ") + self.acbox.setLayout(self.acgrid) @@ -39,7 +70,7 @@ class Analysis(QtGui.QWidget): def createDCgroup(self): self.dcbox = QtGui.QGroupBox() - self.dcbox.setTitle("DC") + self.dcbox.setTitle("DC Analysis") self.dcgrid = QtGui.QGridLayout() self.btn3 = QtGui.QRadioButton("Radio button 3") @@ -58,7 +89,7 @@ class Analysis(QtGui.QWidget): def createTRANgroup(self): self.trbox = QtGui.QGroupBox() - self.trbox.setTitle("DC") + self.trbox.setTitle("Transient Analysis") self.trgrid = QtGui.QGridLayout() self.btn5 = QtGui.QRadioButton("Radio button 5") |