Are there Python 3 bindings for Clutter? If so, how can I get them and use them?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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-gobjectpackage has been renamed topython3-gi:If you want to install the GTK+ Clutter library:
If using a
virtualenvvirtual 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.repositoryis a special package which dynamically generates these Python classes.