summaryrefslogtreecommitdiff
path: root/src/projManagement/Worker.py
diff options
context:
space:
mode:
authorfahim2015-03-13 11:47:05 +0530
committerfahim2015-03-13 11:47:05 +0530
commited8eee97618542efea1b3fa439f2b10b6c5bd07d (patch)
tree1a60c9e47b61afa5cf62939ade5a26a5ef8fd5e6 /src/projManagement/Worker.py
parent4f46af3248e4516df492f76cf789f80ec7c7e54a (diff)
downloadeSim-ed8eee97618542efea1b3fa439f2b10b6c5bd07d.tar.gz
eSim-ed8eee97618542efea1b3fa439f2b10b6c5bd07d.tar.bz2
eSim-ed8eee97618542efea1b3fa439f2b10b6c5bd07d.zip
Subject: Move Repository to FOSSEE
Description: Move Repository to FOSSEE
Diffstat (limited to 'src/projManagement/Worker.py')
-rw-r--r--src/projManagement/Worker.py38
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..00cad6a4
--- /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: eSim 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