PyQt5 + Cython : does this combination work?

582 views
Skip to first unread message

Enjoys Math

unread,
Sep 29, 2016, 8:26:27 PM9/29/16
to cython-users
Hi,

I am mainly a PyQt5 app developer.  I am super intrigued with Cython use.  Was wondering if this combination works or if it is somewhere in the dev pipeline.

Regards,
-EM

Robert Bradshaw

unread,
Sep 29, 2016, 9:30:46 PM9/29/16
to cython...@googlegroups.com
If it works in CPython (the standard Python) it works in Cython. Cython just creates compiled modules that you can load alongside the rest. 

I don't think PyQt5 provides pxd files, so you have to interact with it via its Python API. 

--

---
You received this message because you are subscribed to the Google Groups "cython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cython-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Enjoys Math

unread,
Oct 1, 2016, 4:36:24 AM10/1/16
to cython-users
Thank you for the answer!  

Last question: 
What are the critical parts of the cython documentation (or developer docs) that would go into how to make this combination even more friendly?   

Or would that be in the pure python docs somewhere?

Regards,
EM

On Thursday, September 29, 2016 at 6:30:46 PM UTC-7, Robert Bradshaw wrote:
If it works in CPython (the standard Python) it works in Cython. Cython just creates compiled modules that you can load alongside the rest. 

I don't think PyQt5 provides pxd files, so you have to interact with it via its Python API. 
On Thu, Sep 29, 2016 at 4:23 PM, Enjoys Math <enjoy...@gmail.com> wrote:
Hi,

I am mainly a PyQt5 app developer.  I am super intrigued with Cython use.  Was wondering if this combination works or if it is somewhere in the dev pipeline.

Regards,
-EM

--

---
You received this message because you are subscribed to the Google Groups "cython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cython-users...@googlegroups.com.

Robert Bradshaw

unread,
Oct 1, 2016, 5:34:23 AM10/1/16
to cython...@googlegroups.com
You use it exactly as you would from Python, e.g.

http://zetcode.com/gui/pyqt5/firstprograms/

should work verbatim (though there's no need to use Cython here). Or
maybe I'm just not understanding what you're trying to do...
Reply all
Reply to author
Forward
0 new messages