Reputation:
Is there presently any GUI library that can be used for development in PyPy?
Upvotes: 14
Views: 4307
Reputation: 1413
Qt for Python (PySide6) is about to become a Gui tool for PyPy. At least there is much activity on https://bugreports.qt.io/browse/PYSIDE-535 at the moment, and they are planning to get Qt for PyPy ready still in this year.
Upvotes: 2
Reputation: 545
Gtk+ can be used using the python package "pgi".
https://pypi.python.org/pypi/pgi
pgi is a pure-python library for talking to GObject libraries such as Gtk. It's therefore compatible with both C-Python and PyPy, and since it can use cffi it should be extremely efficient with PyPy.
I have tested this on Linux, it's likely to also work on OS X, I'm less sure about Windows.
If you substutite from gi.repository
with from pgi.repository
in the following tutorial, it should get you started: http://python-gtk-3-tutorial.readthedocs.org/en/latest/
Upvotes: 3