[PyQt] QFuture replacement for PyQt?

Arve Knudsen arve.knudsen at gmail.com
Tue Sep 2 07:41:50 BST 2014


Bryan, if you're on Python 3 you might want to try Quamash (
https://github.com/harvimt/quamash), which gives you a Python asyncio event
loop integrated with (Py)Qt. I've been integral to its development, so I
know it quite well, and am currently successfully using it in a PyQt
asynchronous application. Our application uses Quamash for network
communication and running subprocesses asynchronously.

It seems to me that this would meet your requirements.

Hope this helps,
Arve


On Tue, Sep 2, 2014 at 5:41 AM, Bryan A. Jones <bjones at ece.msstate.edu>
wrote:

> All,
>
> As I understand it, PyQt can't (and won't) support QtConcurrent, per [1].
> Is there a Pythonic replacement for the QFuture/QFutureWatcher classes?
> Something like (pardon the abuse of notation):
>
> # Pseudocode -- just the concept, but not syntacticly correct:
> run_in_another_thread(result = f(a, b))
> # When f(a, b) finishes and returns result:
> g(result)
>
> invokable by something like:
> # Is there an implementation of this idea out there?
> QPythonicFuture(g, f, a, b)
>
> Thanks!
>
> Bryan
>
> [1]
> http://www.riverbankcomputing.com/pipermail/pyqt/2014-January/033611.html
>
> --
> Bryan A. Jones, Ph.D.
> Associate Professor
> Department of Electrical and Computer Engineering
> 231 Simrall / PO Box 9571
> Mississippi State University
> Mississippi state, MS 39762
> http://www.ece.msstate.edu/~bjones
> bjones AT ece DOT msstate DOT edu
> voice 662-325-3149
> fax 662-325-2298
>
> Our Master, Jesus Christ, is on his way. He'll show up right on
> time, his arrival guaranteed by the Blessed and Undisputed Ruler,
> High King, High God.
> - 1 Tim. 6:14b-15 (The Message)
>
> _______________________________________________
> PyQt mailing list    PyQt at riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/pyqt
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20140902/b66a8433/attachment.html>


More information about the PyQt mailing list