summaryrefslogtreecommitdiff
path: root/src/kicadtoNgspice/Analysis.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/kicadtoNgspice/Analysis.py')
-rw-r--r--src/kicadtoNgspice/Analysis.py107
1 files changed, 107 insertions, 0 deletions
diff --git a/src/kicadtoNgspice/Analysis.py b/src/kicadtoNgspice/Analysis.py
new file mode 100644
index 00000000..e1a71a2e
--- /dev/null
+++ b/src/kicadtoNgspice/Analysis.py
@@ -0,0 +1,107 @@
+
+from PyQt4 import QtGui,QtCore
+#import GroupBox
+
+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.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 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)
+
+ return self.acbox
+
+ def createDCgroup(self):
+ self.dcbox = QtGui.QGroupBox()
+ self.dcbox.setTitle("DC Analysis")
+ self.dcgrid = QtGui.QGridLayout()
+
+ self.btn3 = QtGui.QRadioButton("Radio button 3")
+ self.btn4 = QtGui.QRadioButton("Radio button 4")
+ self.dcgrid.addWidget(self.btn3,0,0)
+ self.dcgrid.addWidget(self.btn4,0,1)
+
+ self.dcbox.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.dcbox.setLayout(self.dcgrid)
+
+ return self.dcbox
+
+ def createTRANgroup(self):
+ self.trbox = QtGui.QGroupBox()
+ self.trbox.setTitle("Transient Analysis")
+ self.trgrid = QtGui.QGridLayout()
+
+ self.btn5 = QtGui.QRadioButton("Radio button 5")
+ self.btn6 = QtGui.QRadioButton("Radio button 6")
+ self.trgrid.addWidget(self.btn5,0,0)
+ self.trgrid.addWidget(self.btn6,0,1)
+
+ self.trbox.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.trbox.setLayout(self.trgrid)
+
+ return self.trbox \ No newline at end of file