Helper Worker Function
Note
Source : /src/projManagement/Worker.py
- class projManagement.Worker.WorkerThread(*args: Any, **kwargs: Any)
Initialise a QThread with the passed arguments WorkerThread uses QThread to support threading operations for other PyQT windows This is a helper functions, used to create threads for various commands
- @params
- :args => takes a space separated string of comamnds to be execute
in different child processes (see subproces.Popen())
- @return
None
- call_system(command)
call_system is used to create childprocess for the passed arguments (self.args) and also pass the process created and its id to config file Apponfig() object contains procThread and proc_dist used to track processes called
- @params
- :command => (self.args) takes space separated string of comamnds to be executed in different child processes
(see subprocess.Popen())
- get_proc_threads()
This function is a getter for the list of project’s workers, and is called to check if project’s schematic is open or not.
@params
- @return
:self.my_workers
- run()
run is the function that is called, when we start the thread as thisThread.start() Here, it makes system calls for all args passed (self.args)
@params
- @return
None