Giter Club home page Giter Club logo

triqt's Introduction

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)

triqt's People

Contributors

henry232323 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

jab

triqt's Issues

Why is this desperation-ware?

Do you have an explanation of what makes this only appropriate for use in desperate situations? Does it end up being more or less a full CPU usage busy loop with the while True:?

Trio now has guest mode

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.