henry232323 / triqt

Run the Qt event loop from within the Trio event loop

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Trio now has guest mode

altendky opened this issue · comments

FYI, Trio now has guest mode, albeit not yet released. There are a few proof of concept uses to integrate with Qt and hopefully a library to do that soon. Also planning to get pytest-qt working well with this new mechanism. As always, thanks to @njsmith for the great work.

Trio guest mode PR: python-trio/trio#1551
one exploration of Qt integration: altendky/alqtendpy#19

Indeed!

The gist here has worked marvelously for my purposes 😸

commented

Thanks for the update y'all

@henry232323 would you take a PR to use the new mode.

Despite the boilerplate being pretty minimal it might be good to have it codified prominently somewhere?

@goodboy I've got a repo grown out of the link above. I haven't made it 'public' yet but hope to this week. I do want it to be community developed, as much as the community chooses to be involved, but I also am trying to get a core project in place so that changes can be reasonably expected to cover tests and docs etc.

commented

@goodboy I would love to see a PR if you're interested.
If you're putting together something more professional @altendky that would also be a great option

It took a bit longer than planned, as usual, but I think I've got a nearly complete project, give or take. It is complete in the sense of working and having tests, documentation, and CI. I haven't done a 'real' program with it, just the examples, so the API is still certainly up in the air. The name too... :] Plenty of features to add, etc. Anyways, feedback and involvement is all welcome and appreciated.

https://qtrio.readthedocs.io/

commented

Very well put together, thank you for the update, I've linked to it in the readme