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/KicadtoNgspice.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/KicadtoNgspice.py')
-rw-r--r-- | src/kicadtoNgspice/KicadtoNgspice.py | 61 |
1 files changed, 26 insertions, 35 deletions
diff --git a/src/kicadtoNgspice/KicadtoNgspice.py b/src/kicadtoNgspice/KicadtoNgspice.py index b3ee8886..00bba107 100644 --- a/src/kicadtoNgspice/KicadtoNgspice.py +++ b/src/kicadtoNgspice/KicadtoNgspice.py @@ -20,57 +20,48 @@ from PyQt4 import QtGui import TabbedWidget import Analysis -class MainWindow(QtGui.QMainWindow): +class MainWindow(QtGui.QWidget): def __init__(self): - QtGui.QMainWindow.__init__(self) + QtGui.QWidget.__init__(self) print "Init Kicad to Ngspice" + + self.grid = QtGui.QGridLayout(self) + self.grid.addWidget(self.createConvertWidget(),0,0) + self.setGeometry(500, 500, 600, 600) + self.setLayout(self.grid) + self.show() + + def createConvertWidget(self): + self.convertbox = QtGui.QGroupBox() + self.convertgrid = QtGui.QGridLayout() + + self.convertbtn = QtGui.QPushButton("Convert") + self.cancelbtn = QtGui.QPushButton("Cancel") - ''' - self.analysisTab = QtGui.QWidget() - self.sourceTab = QtGui.QWidget() - self.modelTab = QtGui.QWidget() - ''' self.analysisTab = Analysis.Analysis() self.sourceTab = QtGui.QWidget() self.modelTab = QtGui.QWidget() - self.td = TabbedWidget.TabbedWidget() self.td.addTab(self.analysisTab, 'Analysis Inserter') self.td.addTab(self.sourceTab, 'Source Detail') self.td.addTab(self.modelTab, 'Model Detail') - self.td.show() + - ''' - self.tabs = QtGui.QTabWidget() - self.testpushBTN = QtGui.QPushButton("QPushButton 1") - - self.vbox = QtGui.QVBoxLayout() - self.vbox.addWidget(self.testpushBTN) + #self.td.show() + + self.convertgrid.addWidget(self.td,0,0) + self.convertgrid.addWidget(self.convertbtn,1,1) + self.convertgrid.addWidget(self.cancelbtn,1,2) + + self.convertbox.setLayout(self.convertgrid) + + return self.convertbox + - - #Resize width and height - self.tabs.resize(600, 600) - - #Move QTabWidget to x:300,y:300 - self.tabs.move(300, 300) - - #Set Layout for Third Tab Page - self.modelTab.setLayout(self.vbox) - - self.tabs.addTab(self.analysisTab,"Analysis Inserter") - self.tabs.addTab(self.sourceTab,"Source Detail") - self.tabs.addTab(self.modelTab,"Model Details") - - self.tabs.setWindowTitle('Kicad to Ngspice Conversion') - self.tabs.show() - ''' - - - def main(): print "==================================" print "Kicad to Ngspice netlist converter " |