summaryrefslogtreecommitdiff
path: root/src/kicadtoNgspice/Analysis.py
diff options
context:
space:
mode:
authorfahim2015-03-16 15:03:55 +0530
committerfahim2015-03-16 15:03:55 +0530
commit9bb902d33900622bdd3082e74765a52300bd7e9d (patch)
tree81cd08d2e051cb0a93e7a775e5939e0b3c39361e /src/kicadtoNgspice/Analysis.py
parente6181988279fcc75d494cd84b631956a29422805 (diff)
downloadeSim-9bb902d33900622bdd3082e74765a52300bd7e9d.tar.gz
eSim-9bb902d33900622bdd3082e74765a52300bd7e9d.tar.bz2
eSim-9bb902d33900622bdd3082e74765a52300bd7e9d.zip
Subject: Changes in kicadtongspice.py and analysis.py
Description: Added facility of scrollbar in kicadtongspice widget.
Diffstat (limited to 'src/kicadtoNgspice/Analysis.py')
-rw-r--r--src/kicadtoNgspice/Analysis.py26
1 files changed, 17 insertions, 9 deletions
diff --git a/src/kicadtoNgspice/Analysis.py b/src/kicadtoNgspice/Analysis.py
index e1a71a2e..84c279c6 100644
--- a/src/kicadtoNgspice/Analysis.py
+++ b/src/kicadtoNgspice/Analysis.py
@@ -6,12 +6,23 @@ class Analysis(QtGui.QWidget):
def __init__(self):
QtGui.QWidget.__init__(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.scrolllayout = QtGui.QVBoxLayout()
+ self.scrollwidget = QtGui.QWidget()
+ self.scrollwidget.setLayout(self.scrolllayout)
+
+ self.scroll = QtGui.QScrollArea()
+ self.scroll.setWidgetResizable(True) # Set to make the inner widget resize with scroll area
+ self.scroll.setWidget(self.scrollwidget)
+
+ self.hlayout = QtGui.QHBoxLayout()
+ self.hlayout.addWidget(self.scroll)
+ self.hlayout.addWidget(self.createACgroup())
+ self.hlayout.addWidget(self.createDCgroup())
+ self.hlayout.addWidget(self.createTRANgroup())
+ self.setLayout(self.hlayout)
+ '''
+
self.grid = QtGui.QGridLayout()
self.grid.addWidget(self.createACgroup(),0,0)
self.grid.addWidget(self.createDCgroup(),1,0)
@@ -39,9 +50,6 @@ class Analysis(QtGui.QWidget):
'''
self.setLayout(self.grid)
-
-
-
self.show()