summaryrefslogtreecommitdiff
path: root/src/projManagement
diff options
context:
space:
mode:
authorfahim2015-05-19 18:16:17 +0530
committerfahim2015-05-19 18:16:17 +0530
commit7e471c072b18c3969ed5573dbe24923c2f678b5f (patch)
treec94a4e57b769140ea841add43b32b04d8f5d573e /src/projManagement
parent07e43f9abbf5e369543f090ccf89f565038241cb (diff)
downloadeSim-7e471c072b18c3969ed5573dbe24923c2f678b5f.tar.gz
eSim-7e471c072b18c3969ed5573dbe24923c2f678b5f.tar.bz2
eSim-7e471c072b18c3969ed5573dbe24923c2f678b5f.zip
Subject: Added NgSpice window inside dock area.
Description: Added NgSpice window inside dock area.
Diffstat (limited to 'src/projManagement')
-rw-r--r--src/projManagement/Kicad.py46
-rw-r--r--src/projManagement/Kicad.pycbin5551 -> 4302 bytes
2 files changed, 3 insertions, 43 deletions
diff --git a/src/projManagement/Kicad.py b/src/projManagement/Kicad.py
index a1873555..f5acf515 100644
--- a/src/projManagement/Kicad.py
+++ b/src/projManagement/Kicad.py
@@ -20,10 +20,7 @@ import os
import Validation
from configuration.Appconfig import Appconfig
import Worker
-from PyQt4 import QtGui, QtCore
-import shutil
-from gevent.hub import sleep
-import subprocess
+from PyQt4 import QtGui
class Kicad:
"""
@@ -134,42 +131,5 @@ class Kicad:
self.msg = QtGui.QErrorMessage(None)
self.msg.showMessage('Please select the project first. You can either create new project or open existing project')
self.msg.setWindowTitle("Error Message")
-
- def openNgspice(self):
- """
- This function call ngspice simulator
- """
- self.projDir = self.obj_appconfig.current_project["ProjectName"]
- #Validating if current project is available or not
- if self.obj_validation.validateKicad(self.projDir):
- self.projName = os.path.basename(self.projDir)
- self.project = os.path.join(self.projDir,self.projName)
- #Creating ngspice command
- self.cmd = "xterm -e ngspice "+self.project+".cir.out"
-
- proc = subprocess.Popen(self.cmd.split())
- self.obj_appconfig.procThread_list.append(proc)
-
- sleep(2) #Need permanent solution
-
- try:
- #Moving plot_data_i.txt and plot_data_v.txt to project directory
- shutil.copy2("plot_data_i.txt", self.projDir)
- shutil.copy2("plot_data_v.txt", self.projDir)
- #Deleting this file from current directory
- os.remove("plot_data_i.txt")
- os.remove("plot_data_v.txt")
- except Exception as e:
- self.msg = QtGui.QErrorMessage(None)
- self.msg.showMessage('Unable to copy plot data file to project directory.')
- print "Exception:",str(e)
- self.msg.setWindowTitle("Error Message")
- return False
-
- return True
-
- else:
- self.msg = QtGui.QErrorMessage(None)
- self.msg.showMessage('Please select the project first. You can either create new project or open existing project')
- self.msg.setWindowTitle("Error Message")
- #return False \ No newline at end of file
+
+ \ No newline at end of file
diff --git a/src/projManagement/Kicad.pyc b/src/projManagement/Kicad.pyc
index bf6ccb75..ea2a9e78 100644
--- a/src/projManagement/Kicad.pyc
+++ b/src/projManagement/Kicad.pyc
Binary files differ