I am testing a gui built using PyQt, and I would like to be able to interact with gui using the python code that runs after the PyQt event loop (app.exec_ ()) is triggered. Another way of saying this, I would like the call to app.exec_ to return immediately, as if gui were not modal, and then further python code that interacts with gui.
I found this example of starting a PyQt loop in a stream, but I don't want to do something so unconventional. Is there a way to get the PyQt message loop to continue processing messages, as well as execute python code in the main thread after calling exec_?
source
share