Search code examples
pythongtkclutter

Python binding for clutter-gtk and clutter-gsk


I'm using python and want to embed gtk3 widgets in clutter stage. However, it seems pyclutter-gtk and pyclutter-gsk has been stopped for a while. Is there any alternative binding that we can use in python? I tried google but with no luck. There's only one project(http://code.google.com/p/pyclutter-widgets/) seems interesting but it's inactive for a year...


Solution

  • All python bindings for gtk3 and clutter have been moved to the introspection-based pygobject; you should be able to use Clutter-Gtk and Clutter-Gst from pygobject >= 2.30 by simply doing:

    from gi.repository import GtkClutter

    You can follow the documentation on the Gnome wiki entry for IntrospectionPorting.