I am trying to implement an event driven process with a system call or subprocess. Basically I want to run a non-blocking system command, and after completing this system call, I want to call a function. This means that I can start the GUI progress bar, run the system command and continue the progress bar, and when the system call ends, stop the progress bar.
What I want absolutely NOT to do is create a process, get its process ID and continue checking for the completion of this process in the while loop.
Below is an example of how I think this should work (they are all inside the class)
def launchTool(self): self.progressbar.config(mode = 'indeterminate') self.progressbar.start(20) self.launchButton.config(state = 'disabled') self.configCombobox.config(state = 'disabled')
python subprocess progress-bar event-driven
nima_santur May 6 '15 at 9:05 PM 2015-05-06 21:05
source share