Skip to content

Run the Qt event loop from within the Trio event loop

License

Notifications You must be signed in to change notification settings

henry232323/triqt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)