triqt

Run the Qt event loop from within the Trio event loop


Keywords
async, pyqt, pyqt4, pyqt5, pyside, python, python-trio, python36, python37, qt, trio
License
MIT
Install
pip install triqt==1.0.2

Documentation

triqt

Run the Qt event loop from within the Trio event loop. With inspiration and code borrowed from Quamash

This is a simple single-file answer to a difficult problem. It doesn't have any tests and isn't anything close to professionally maintained. If you're looking for a well made and well documented library that runs Trio within the Qt loop, I recommend qtrio

A simple way to use trio with your Python Qt application. To begin running the app

>>> app = App()
>>> trio.run(task, instruments=[triqt.Instrument(app)])

To invoke an async function from Qt using a Signal

>>> triqt.async_signal(func, args)