14

Is there presently any GUI library that can be used for development in PyPy?

TryPyPy
  • 6,214
  • 5
  • 35
  • 63
  • PyPy is just a Python implementation. Is there a reason that you're asking specifically about PyPy? – Matt Ball Feb 18 '11 at 15:48
  • I am starting to use it just for the fun of exploring it and am wondering if there is a gui library I can use. –  Feb 18 '11 at 15:51

3 Answers3

4

There is no GUI working with PyPy as of now, except wxPython (blog post). I use web-based UIs for stuff that I do anyway, but that's probably irrelevant.

fijal
  • 3,190
  • 18
  • 21
  • Since then, Tkinter became an option: http://morepypy.blogspot.com/2011/04/using-tkinter-and-idle-with-pypy.html – TryPyPy Aug 07 '11 at 22:00
3

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/

Paul Harrison
  • 455
  • 3
  • 6
2

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.

Christian Tismer
  • 1,305
  • 14
  • 16