<div dir="ltr">That's too bad. Though it might be possible to port Quamash to Python 2, via the Python 2 port of asyncio, Trollius (<a href="https://pypi.python.org/pypi/trollius">https://pypi.python.org/pypi/trollius</a>). If all else fails, you could look into this route :)<div>
<br></div><div>Arve<div class="gmail_extra"><br><div class="gmail_quote">On Tue, Sep 2, 2014 at 5:04 PM, Bryan A. Jones <span dir="ltr"><<a href="mailto:bjones@ece.msstate.edu" target="_blank">bjones@ece.msstate.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">Arve and Wolfgang,<div><br></div><div>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.</div>
<span class=""><font color="#888888">
<div><br></div><div>Bryan</div></font></span></div><div class="gmail_extra"><br><br><div class="gmail_quote"><div class="">On Tue, Sep 2, 2014 at 1:41 AM, Arve Knudsen <span dir="ltr"><<a href="mailto:arve.knudsen@gmail.com" target="_blank">arve.knudsen@gmail.com</a>></span> wrote:<br>
</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div><div class="">
<div dir="ltr">Bryan, if you're on Python 3 you might want to try Quamash (<a href="https://github.com/harvimt/quamash" target="_blank">https://github.com/harvimt/quamash</a>), 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.
<div><br>
</div>
<div>It seems to me that this would meet your requirements.<br>
<div><br>
</div>
<div>Hope this helps,</div>
<div>Arve</div>
</div>
</div>
</div><div class="gmail_extra"><br>
<br>
<div class="gmail_quote"><div class=""><div><div>On Tue, Sep 2, 2014 at 5:41 AM, Bryan A. Jones <span dir="ltr">
<<a href="mailto:bjones@ece.msstate.edu" target="_blank">bjones@ece.msstate.edu</a>></span> wrote:<br>
</div></div></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div><div class="h5"><div><div>
<div dir="ltr">All,
<div><br>
</div>
<div>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):</div>
<div><br>
</div>
<div># Pseudocode -- just the concept, but not syntacticly correct:</div>
<div>run_in_another_thread(result = f(a, b))</div>
<div># When f(a, b) finishes and returns result:</div>
<div>g(result)</div>
<div><br>
</div>
<div>invokable by something like:</div>
<div># Is there an implementation of this idea out there?</div>
<div>QPythonicFuture(g, f, a, b)</div>
<div><br>
</div>
<div>Thanks!</div>
<div><br>
</div>
<div>Bryan</div>
<div><br>
</div>
<div>[1] <a href="http://www.riverbankcomputing.com/pipermail/pyqt/2014-January/033611.html" target="_blank">http://www.riverbankcomputing.com/pipermail/pyqt/2014-January/033611.html</a></div>
<div>
<div><br>
</div>
-- <br>
Bryan A. Jones, Ph.D.<br>
Associate Professor<br>
Department of Electrical and Computer Engineering<br>
231 Simrall / PO Box 9571<br>
Mississippi State University<br>
Mississippi state, MS 39762<br>
<a href="http://www.ece.msstate.edu/~bjones" target="_blank">http://www.ece.msstate.edu/~bjones</a><br>
bjones AT ece DOT msstate DOT edu<br>
voice <a href="tel:662-325-3149" value="+16623253149" target="_blank">662-325-3149</a><br>
fax <a href="tel:662-325-2298" value="+16623252298" target="_blank">662-325-2298</a><br>
<br>
Our Master, Jesus Christ, is on his way. He'll show up right on<br>
time, his arrival guaranteed by the Blessed and Undisputed Ruler,<br>
High King, High God.<br>
- 1 Tim. 6:14b-15 (The Message)<br>
</div>
</div>
<br></div></div></div></div><div class="">
_______________________________________________<br>
PyQt mailing list <a href="mailto:PyQt@riverbankcomputing.com" target="_blank">PyQt@riverbankcomputing.com</a><br>
<a href="http://www.riverbankcomputing.com/mailman/listinfo/pyqt" target="_blank">http://www.riverbankcomputing.com/mailman/listinfo/pyqt</a><br>
</div></blockquote>
</div>
<br>
</div>
</div>
</blockquote></div><br><br clear="all"><div class=""><div><br></div>-- <br>Bryan A. Jones, Ph.D.<br>Associate Professor<br>Department of Electrical and Computer Engineering<br>231 Simrall / PO Box 9571<br>Mississippi State University<br>
Mississippi state, MS 39762<br><a href="http://www.ece.msstate.edu/~bjones" target="_blank">http://www.ece.msstate.edu/~bjones</a><br>bjones AT ece DOT msstate DOT edu<br>voice <a href="tel:662-325-3149" value="+16623253149" target="_blank">662-325-3149</a><br>
fax <a href="tel:662-325-2298" value="+16623252298" target="_blank">662-325-2298</a><br><br>Our Master, Jesus Christ, is on his way. He'll show up right on<br>
time, his arrival guaranteed by the Blessed and Undisputed Ruler,<br>High King, High God.<br>- 1 Tim. 6:14b-15 (The Message)<br>
</div></div>
</blockquote></div><br></div></div></div>