diff options
author | Sunil Shetye | 2019-06-11 16:00:13 +0530 |
---|---|---|
committer | GitHub | 2019-06-11 16:00:13 +0530 |
commit | 19e57ec09fc6ddb8e1462ebc118841207497109b (patch) | |
tree | 85cc00b16004b7c64dc76ebdf4cc84d6b1a84499 /src/projManagement/Worker.py | |
parent | 8b986efb1c9216e284f6cc27a8f44d09e5c5cc59 (diff) | |
parent | 9e92a335fc364d391e9b524c226602a1677c2518 (diff) | |
download | eSim-19e57ec09fc6ddb8e1462ebc118841207497109b.tar.gz eSim-19e57ec09fc6ddb8e1462ebc118841207497109b.tar.bz2 eSim-19e57ec09fc6ddb8e1462ebc118841207497109b.zip |
Merge pull request #85 from nilshah98/pep8
Made pep8 compliant
Diffstat (limited to 'src/projManagement/Worker.py')
-rw-r--r-- | src/projManagement/Worker.py | 36 |
1 files changed, 17 insertions, 19 deletions
diff --git a/src/projManagement/Worker.py b/src/projManagement/Worker.py index 6befca65..65c67dde 100644 --- a/src/projManagement/Worker.py +++ b/src/projManagement/Worker.py @@ -1,46 +1,44 @@ -#=============================================================================== +# ========================================================================= # # FILE: WorkerThread.py -# -# USAGE: --- -# +# +# 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 +# CREATED: Tuesday 24 Feb 2015 # REVISION: --- -#=============================================================================== +# ========================================================================= from PyQt4 import QtCore import subprocess from configuration.Appconfig import Appconfig + class WorkerThread(QtCore.QThread): """ This is Thread class use to run the command """ - def __init__(self,args): + + def __init__(self, args): QtCore.QThread.__init__(self) self.args = args - - + def __del__(self): self.wait() - + def run(self): - print "Worker Thread Calling Command :",self.args + print("Worker Thread Calling Command :", self.args) self.call_system(self.args) - - def call_system(self,command): + + def call_system(self, command): procThread = Appconfig() proc = subprocess.Popen(command.split()) procThread.procThread_list.append(proc) - procThread.proc_dict[procThread.current_project['ProjectName']].append(proc.pid) - - - - + procThread.proc_dict[procThread.current_project['ProjectName']].append( + proc.pid) |