Are there Python 3 bindings for Clutter? If so, how can I get them and use them?
Can one use Clutter with Python 3?
1.6k Views Asked by argentpepper At
2
There are 2 best solutions below
1

From what I gather, the answer is to use GObject rather than direct bindings, and PyGObject appears to have a Python 3 branch that apparently works - not that I have used it personally.
You might also want to see this question on using PyGObject with python 3.
As stated by Lattyware, the way to use Clutter in Python 3 is by installing "GObject introspection" data and allowing GObject to dynamically generate the bindings to the original C library.
On Ubuntu 11.10, install both Python 3 GObject and the GObject introspection data for clutter:
On Ubuntu 12.04 and later, the
python3-gobject
package has been renamed topython3-gi
:If you want to install the GTK+ Clutter library:
If using a
virtualenv
virtual Python environment, use the following command, which allows Python to find the GObject introspection libraries:To use Clutter or GtkClutter in Python 3:
The package
gi.repository
is a special package which dynamically generates these Python classes.