thp / pyotherside

Python Bindings for Qt 5 and Qt 6. Allows you to access a CPython 3 interpreter directly from your Qt QML user interface code.
https://thp.io/2011/pyotherside/
Other
364 stars 49 forks source link

Async await? #92

Open pauldotknopf opened 6 years ago

pauldotknopf commented 6 years ago

Instead of having a single synchrounous background thread, what about having a single event loop that we can pass commands to and send the results back to Qt the way things are done currently with Python.call?

I'd be willing to do this if you can guide my on what you think the best approach would be.

alex-eri commented 4 years ago

I think best would be sending js callback function to python. so possible add_done_callback for async tasks and call multiple time for generators.