[PyQt] QFuture replacement for PyQt?

Arve Knudsen arve.knudsen at gmail.com
Tue Sep 2 17:22:00 BST 2014


That's too bad. Though it might be possible to port Quamash to Python 2,
via the Python 2 port of asyncio, Trollius (
https://pypi.python.org/pypi/trollius). If all else fails, you could look
into this route :)

Arve

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

> Arve and Wolfgang,
>
> Thanks for the response. Unfortunately, I'm currently still using Python
> 2, though a port to Python 3 is in progress. I'll either cobble something
> together based on the links you've provided, or wait for the port to finish
> before proceeding.
>
> Bryan
>
>
> On Tue, Sep 2, 2014 at 1:41 AM, Arve Knudsen <arve.knudsen at gmail.com>
> wrote:
>
>>  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
>>>
>>
>>
>
>
> --
> 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)
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20140902/f8951a98/attachment-0001.html>


More information about the PyQt mailing list