Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/henry232323/triqt
Run the Qt event loop from within the Trio event loop
https://github.com/henry232323/triqt
async pyqt pyqt4 pyqt5 pyside python python-trio python36 python37 qt trio
Last synced: 25 days ago
JSON representation
Run the Qt event loop from within the Trio event loop
- Host: GitHub
- URL: https://github.com/henry232323/triqt
- Owner: henry232323
- License: bsd-2-clause
- Created: 2018-07-18T23:17:49.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-07-08T06:13:39.000Z (over 4 years ago)
- Last Synced: 2024-09-30T18:18:37.869Z (about 1 month ago)
- Topics: async, pyqt, pyqt4, pyqt5, pyside, python, python-trio, python36, python37, qt, trio
- Language: Python
- Homepage:
- Size: 21.5 KB
- Stars: 6
- Watchers: 3
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# triqt
Run the Qt event loop from within the [Trio](https://github.com/python-trio/trio) event loop. With inspiration and code borrowed from [Quamash](https://github.com/harvimt/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](https://github.com/altendky/qtrio)**
A simple way to use trio with your Python Qt application.
To begin running the app
```py
>>> app = App()
>>> trio.run(task, instruments=[triqt.Instrument(app)])
```
To invoke an async function from Qt using a Signal
```py
>>> triqt.async_signal(func, args)
```