diff options
author | xoher | 2015-07-28 02:36:59 +0530 |
---|---|---|
committer | xoher | 2015-07-28 02:36:59 +0530 |
commit | 034bc2734d017f3bdc94a309102b3141cb623ce9 (patch) | |
tree | 8d0143881ede180b69775bcfb19f095b2875a9b0 /src/subcircuit | |
parent | 6d0631e034026b958437456ae461f21ba8429813 (diff) | |
download | eSim-034bc2734d017f3bdc94a309102b3141cb623ce9.tar.gz eSim-034bc2734d017f3bdc94a309102b3141cb623ce9.tar.bz2 eSim-034bc2734d017f3bdc94a309102b3141cb623ce9.zip |
Kicad to NgSpice conversion opens in dock area
Diffstat (limited to 'src/subcircuit')
-rw-r--r-- | src/subcircuit/Subcircuit.py | 4 | ||||
-rw-r--r-- | src/subcircuit/convertSub.py | 11 |
2 files changed, 10 insertions, 5 deletions
diff --git a/src/subcircuit/Subcircuit.py b/src/subcircuit/Subcircuit.py index 94ca37e4..e161d6f3 100644 --- a/src/subcircuit/Subcircuit.py +++ b/src/subcircuit/Subcircuit.py @@ -14,7 +14,7 @@ class Subcircuit(QtGui.QWidget): QtGui.QWidget.__init__(self) self.obj_appconfig=Appconfig() self.obj_validation=Validation() - + self.obj_dockarea=parent self.layout = QtGui.QVBoxLayout() self.splitter= QtGui.QSplitter() self.splitter.setOrientation(QtCore.Qt.Vertical) @@ -58,5 +58,5 @@ class Subcircuit(QtGui.QWidget): self.obj_opensubcircuit.body() def convertsch(self): - self.obj_convertsubcircuit = convertSub() + self.obj_convertsubcircuit = convertSub(self.obj_dockarea) self.obj_convertsubcircuit.createSub()
\ No newline at end of file diff --git a/src/subcircuit/convertSub.py b/src/subcircuit/convertSub.py index bb045e3b..6744b35d 100644 --- a/src/subcircuit/convertSub.py +++ b/src/subcircuit/convertSub.py @@ -9,10 +9,11 @@ class convertSub(QtGui.QWidget): This class is called when User create new Project. """ - def __init__(self): + def __init__(self,dockarea): super(convertSub, self).__init__() self.obj_validation = Validation() self.obj_appconfig=Appconfig() + self.obj_dockarea=dockarea def createSub(self): """ @@ -30,8 +31,12 @@ class convertSub(QtGui.QWidget): self.project = os.path.join(self.projDir,self.projName) #Creating a command to run - self.cmd = "python ../kicadtoNgspice/KicadtoNgspice.py "+self.project+".cir "+"sub" - os.system(self.cmd) + #self.cmd = "python ../kicadtoNgspice/KicadtoNgspice.py "+self.project+".cir "+"sub" + #os.system(self.cmd) + + var1=self.project+".cir" + var2="sub" + self.obj_dockarea.kicadToNgspiceEditor(var1,var2) # self.obj_workThread = Worker.WorkerThread(self.cmd) # self.obj_workThread.start() else: |