3 ms·
This is a very interesting question (to which I don't know the answer), I'm curious how the coroutines will interact with the Qt events. Sidenote: It's also po
by pstch 10y ago
This is a very interesting question (to which I don't know the answer), I'm curious how the coroutines will interact with the Qt events.
Sidenote: It's also possible to build Qt applications in Python using AsyncIO (using quamash), by integrating the Qt event loop as an AsyncIO event loop. This can be helpful to avoid race conditions, as much more interactions can be handled without thread concurrency.
- icefo 10y agoThanks to quamash you can use the asyncio event loop to build a Qt app that call other async stuff at the same time ! I managed to use pyqt and autobahn|python (wamp protocol, RPC and pub/sub) in the same app thanks to quamash. I set up an example app here https://github.com/icefo/PyQt5-Wamp https://github.com/icefo/PyQt5-Wamp