diff options
author | fahim | 2015-02-25 12:28:36 +0530 |
---|---|---|
committer | fahim | 2015-02-25 12:28:36 +0530 |
commit | b8a87cdb785471005e96234782287528e3edc39c (patch) | |
tree | a4fb514bd17255b67514c3546ced9dce9e769197 /src/projManagement/Worker.py | |
parent | 22254c4024c72f71de4d4fc0b71bbb22fac8a747 (diff) | |
download | eSim-b8a87cdb785471005e96234782287528e3edc39c.tar.gz eSim-b8a87cdb785471005e96234782287528e3edc39c.tar.bz2 eSim-b8a87cdb785471005e96234782287528e3edc39c.zip |
Subject: Kicad Module modified along with some other minor changes
Description: Added openschematic,openlayout,openpcb in the kicad module.
Diffstat (limited to 'src/projManagement/Worker.py')
-rw-r--r-- | src/projManagement/Worker.py | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/src/projManagement/Worker.py b/src/projManagement/Worker.py new file mode 100644 index 00000000..be7f323e --- /dev/null +++ b/src/projManagement/Worker.py @@ -0,0 +1,38 @@ +#=============================================================================== +# +# FILE: WorkerThread.py +# +# USAGE: --- +# +# DESCRIPTION: This class open all third party application using QT Thread +# +# OPTIONS: --- +# REQUIREMENTS: --- +# BUGS: --- +# NOTES: --- +# AUTHOR: Fahim Khan, fahim.elex@gmail.com +# ORGANIZATION: ecSim team at FOSSEE, IIT Bombay. +# CREATED: Tuesday 24 Feb 2015 +# REVISION: --- +#=============================================================================== +from PyQt4 import QtCore +import os + + +class WorkerThread(QtCore.QThread): + def __init__(self,args): + QtCore.QThread.__init__(self) + self.args = args + + 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) + +
\ No newline at end of file |