How to run parallel process along with QProcess thread

Heads up! You've already completed this tutorial.

Ayushi_Yadav | 2021-03-12 19:08:10 UTC | #1

I have started a backend script using self.p.start.....! I am also printing the 4 types of logs status on a runtime on the GUI. Now I want to run a function on the front end which waits for a file to be available at a given path, post which the file needs to be loaded on the GUI. When I run the function along with the backend, the runtime logs do not get printed but get dumped all at once when the file is available. start_process() : function which starts the backend script. searchforJsonfile(): function which waits and then loads the file on GUI. I want to run both the above functions on a click of a button. When I do the same, the above explained phenomena happens. How can I accomplish both the needs in pyqt?


Create GUI Applications with Python & Qt5 by Martin Fitzpatrick — (PyQt5 Edition) The hands-on guide to making apps with Python — Over 10,000 copies sold!

More info Get the book

Well done, you've finished this tutorial! Mark As Complete
[[ user.completed.length ]] completed [[ user.streak+1 ]] day streak

How to run parallel process along with QProcess thread was written by Martin Fitzpatrick .

Martin Fitzpatrick has been developing Python/Qt apps for 8 years. Building desktop applications to make data-analysis tools more user-friendly, Python was the obvious choice. Starting with Tk, later moving to wxWidgets and finally adopting PyQt.