summaryrefslogtreecommitdiff
path: root/src/projManagement
diff options
context:
space:
mode:
Diffstat (limited to 'src/projManagement')
-rw-r--r--src/projManagement/Kicad.py3
-rw-r--r--src/projManagement/Kicad.pycbin4085 -> 4108 bytes
-rw-r--r--src/projManagement/Worker.py10
-rw-r--r--src/projManagement/Worker.pycbin1257 -> 1173 bytes
-rw-r--r--src/projManagement/newProject.py1
-rw-r--r--src/projManagement/newProject.pycbin3836 -> 3816 bytes
6 files changed, 10 insertions, 4 deletions
diff --git a/src/projManagement/Kicad.py b/src/projManagement/Kicad.py
index cbee89e9..a575af21 100644
--- a/src/projManagement/Kicad.py
+++ b/src/projManagement/Kicad.py
@@ -21,7 +21,7 @@ import Validation
from configuration.Appconfig import Appconfig
import Worker
from PyQt4 import QtGui
-
+import time
class Kicad:
"""
Class Kicad open Schematic,PCB and Layout
@@ -109,6 +109,7 @@ class Kicad:
self.cmd = "python ../kicadtoNgspice/KicadtoNgspice.py "+self.project+".cir "
self.obj_workThread = Worker.WorkerThread(self.cmd)
self.obj_workThread.start()
+
else:
self.msg = QtGui.QErrorMessage(None)
diff --git a/src/projManagement/Kicad.pyc b/src/projManagement/Kicad.pyc
index 9d783b32..4011f875 100644
--- a/src/projManagement/Kicad.pyc
+++ b/src/projManagement/Kicad.pyc
Binary files differ
diff --git a/src/projManagement/Worker.py b/src/projManagement/Worker.py
index 00cad6a4..58078b86 100644
--- a/src/projManagement/Worker.py
+++ b/src/projManagement/Worker.py
@@ -23,16 +23,22 @@ class WorkerThread(QtCore.QThread):
def __init__(self,args):
QtCore.QThread.__init__(self)
self.args = args
-
+ '''
+ #Not Required
def __del__(self):
self.wait()
+ '''
def run(self):
print "Calling :",self.args
self.call_system(self.args)
def call_system(self,command):
print "System called"
- os.system(command)
+ try:
+ os.system(command)
+ print "PID",os.getpid()
+ except:
+ print "Unable to run the command"
\ No newline at end of file
diff --git a/src/projManagement/Worker.pyc b/src/projManagement/Worker.pyc
index c8e30b8f..237fe279 100644
--- a/src/projManagement/Worker.pyc
+++ b/src/projManagement/Worker.pyc
Binary files differ
diff --git a/src/projManagement/newProject.py b/src/projManagement/newProject.py
index c76acdc1..10251d1b 100644
--- a/src/projManagement/newProject.py
+++ b/src/projManagement/newProject.py
@@ -41,7 +41,6 @@ class NewProjectInfo(QtGui.QWidget):
self.okbtn.clicked.connect(self.createProject)
self.cancelbtn = QtGui.QPushButton("Cancel")
- self.cancelbtn = QtGui.QPushButton('Cancel')
self.cancelbtn.clicked.connect(self.cancelProject)
diff --git a/src/projManagement/newProject.pyc b/src/projManagement/newProject.pyc
index 16e965d3..b97b85c2 100644
--- a/src/projManagement/newProject.pyc
+++ b/src/projManagement/newProject.pyc
Binary files differ