summaryrefslogtreecommitdiff
path: root/src/kicadtoNgspice/KicadtoNgspice.py
diff options
context:
space:
mode:
authorfahim2015-03-18 17:25:08 +0530
committerfahim2015-03-18 17:25:08 +0530
commit1eb70cebaa7c2bb2d351af9c7dddf7f7f670f5f5 (patch)
tree8fbb0536650afebaac36d0431188839520a8286e /src/kicadtoNgspice/KicadtoNgspice.py
parent9bb902d33900622bdd3082e74765a52300bd7e9d (diff)
downloadeSim-1eb70cebaa7c2bb2d351af9c7dddf7f7f670f5f5.tar.gz
eSim-1eb70cebaa7c2bb2d351af9c7dddf7f7f670f5f5.tar.bz2
eSim-1eb70cebaa7c2bb2d351af9c7dddf7f7f670f5f5.zip
Subject: Added checkbox in Analysis Tab
Description: Added Checkbox in Analysis Tab
Diffstat (limited to 'src/kicadtoNgspice/KicadtoNgspice.py')
-rw-r--r--src/kicadtoNgspice/KicadtoNgspice.py32
1 files changed, 22 insertions, 10 deletions
diff --git a/src/kicadtoNgspice/KicadtoNgspice.py b/src/kicadtoNgspice/KicadtoNgspice.py
index aeae1210..935f5bb2 100644
--- a/src/kicadtoNgspice/KicadtoNgspice.py
+++ b/src/kicadtoNgspice/KicadtoNgspice.py
@@ -20,20 +20,27 @@ from PyQt4 import QtGui
import Analysis
class MainWindow(QtGui.QWidget):
+ netList = []
def __init__(self):
QtGui.QWidget.__init__(self)
print "Init Kicad to Ngspice"
+ #Creating Objects for Analysis,Source and model
+
+ #self.obj_analysis = Analysis.Analysis()
+
+ #Creating GUI for kicadtoNgspice window
self.grid = QtGui.QGridLayout(self)
self.convertbtn = QtGui.QPushButton("Convert")
self.cancelbtn = QtGui.QPushButton("Cancel")
+ self.cancelbtn.clicked.connect(self.close)
self.grid.addWidget(self.createcreateConvertWidget(),0,0)
self.grid.addWidget(self.convertbtn,1,1)
self.grid.addWidget(self.cancelbtn,1,2)
self.setGeometry(500, 500, 600, 600)
self.setLayout(self.grid)
self.show()
-
+
def createcreateConvertWidget(self):
self.convertWindow = QtGui.QWidget()
@@ -66,24 +73,29 @@ class MainWindow(QtGui.QWidget):
return self.convertWindow
+
+
-def main():
+def main(args):
print "=================================="
print "Kicad to Ngspice netlist converter "
print "=================================="
- #kicadNetlist = sys.argv[1]
-
-
+ #print "The passed netlist file is ",sys.argv[1]
-if __name__ == '__main__':
app = QtGui.QApplication(sys.argv)
- app.setApplicationName("KicadToNgspice")
- app.setQuitOnLastWindowClosed(True)
- window = MainWindow()
- main()
+ #app.setApplicationName("KicadToNgspice")
+ #app.setQuitOnLastWindowClosed(True)
+ kingWindow = MainWindow()
+ kingWindow.show()
sys.exit(app.exec_())
+if __name__ == '__main__':
+ main(sys.argv)
+
+
+
+
\ No newline at end of file