summaryrefslogtreecommitdiff
path: root/src/kicadtoNgspice/KicadtoNgspice.py
diff options
context:
space:
mode:
authorfahim2015-03-19 16:14:27 +0530
committerfahim2015-03-19 16:14:27 +0530
commit0e14e5c36023a4a12cfe7429b0be01dc534151b4 (patch)
treefb0cb92b57899166e8e1f4b0e97c142d3477a227 /src/kicadtoNgspice/KicadtoNgspice.py
parent1eb70cebaa7c2bb2d351af9c7dddf7f7f670f5f5 (diff)
downloadeSim-0e14e5c36023a4a12cfe7429b0be01dc534151b4.tar.gz
eSim-0e14e5c36023a4a12cfe7429b0be01dc534151b4.tar.bz2
eSim-0e14e5c36023a4a12cfe7429b0be01dc534151b4.zip
Subject: Added few module to start with source details
Description: Added few module to start with source details
Diffstat (limited to 'src/kicadtoNgspice/KicadtoNgspice.py')
-rw-r--r--src/kicadtoNgspice/KicadtoNgspice.py20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/kicadtoNgspice/KicadtoNgspice.py b/src/kicadtoNgspice/KicadtoNgspice.py
index 935f5bb2..01887ec5 100644
--- a/src/kicadtoNgspice/KicadtoNgspice.py
+++ b/src/kicadtoNgspice/KicadtoNgspice.py
@@ -16,19 +16,19 @@
# REVISION: ---
#===============================================================================
import sys
+import os
from PyQt4 import QtGui
import Analysis
+import Source
class MainWindow(QtGui.QWidget):
- netList = []
def __init__(self):
QtGui.QWidget.__init__(self)
+ #self.kicadfile = sys.argv[1]
+ self.kicadfile = "/home/fahim/eSim-Workspace/BJT_amplifier/BJT_amplifier.cir"
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")
@@ -51,7 +51,7 @@ class MainWindow(QtGui.QWidget):
self.analysisTab.setWidgetResizable(True)
self.sourceTab = QtGui.QScrollArea()
- self.sourceTab.setWidget(QtGui.QWidget())
+ self.sourceTab.setWidget(Source.Source(self.kicadfile))
self.sourceTabLayout = QtGui.QVBoxLayout(self.sourceTab.widget())
self.sourceTab.setWidgetResizable(True)
@@ -72,8 +72,7 @@ class MainWindow(QtGui.QWidget):
return self.convertWindow
-
-
+
def main(args):
@@ -83,7 +82,7 @@ def main(args):
#print "The passed netlist file is ",sys.argv[1]
- app = QtGui.QApplication(sys.argv)
+ app = QtGui.QApplication(args)
#app.setApplicationName("KicadToNgspice")
#app.setQuitOnLastWindowClosed(True)
kingWindow = MainWindow()
@@ -94,6 +93,7 @@ def main(args):
if __name__ == '__main__':
main(sys.argv)
+