diff options
author | Fahim | 2015-07-28 10:04:11 +0530 |
---|---|---|
committer | Fahim | 2015-07-28 10:04:11 +0530 |
commit | 1c21a0ad49a75671a9fd775463ab6e6e6f3a8e36 (patch) | |
tree | fb80c62ab8d751631a7cde77c4fdbfe6c26ec02c /src/subcircuit/convertSub.py | |
parent | 87c8704e95e25ee5070d22b51ca50cca51b5e9f7 (diff) | |
parent | a0a17b4f1f11dfac201a6d660cbb94eac1cfc4a4 (diff) | |
download | eSim-1c21a0ad49a75671a9fd775463ab6e6e6f3a8e36.tar.gz eSim-1c21a0ad49a75671a9fd775463ab6e6e6f3a8e36.tar.bz2 eSim-1c21a0ad49a75671a9fd775463ab6e6e6f3a8e36.zip |
Merge pull request #43 from FOSSEE-Manipal/master
Kicad to NgSpice conversion window opens in Dock area and other changes
Diffstat (limited to 'src/subcircuit/convertSub.py')
-rw-r--r-- | src/subcircuit/convertSub.py | 11 |
1 files changed, 8 insertions, 3 deletions
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: |