PyClutter 1.0.0

The Python bindings for the Clutter core and integration libraries have been released. this release of the Python bindings map the Clutter 1.0 API cycle.

Download is available at:

  http://www.clutter-project.org/sources/pyclutter/1.0/

MD5 checksums:

  1cfbb64eceef6828e47e9a64689ffa41  pyclutter-1.0.0.tar.bz2
  2e99aaf6100d609b2c0da1655d7c8693  pyclutter-1.0.0.tar.gz

Requirements

  • GLib 2.16.0 or higher
  • GTK+ 2.10.0 or higher
  • Clutter 1.0.0 or higher
  • PyCairo 1.0.2 or higher
  • PyGObject 2.12.1 or higher
  • PyGTK
  • Python 2.5.0 or higher

Documentation

an incomplete API reference is available at:

  http://www.clutter-project.org/docs/pyclutter/stable/

Python developers are encouraged to submit patches to increase the quality and coverage of the documentation.

Release notes

  • This is the first stable release of the 1.* cycle
  • Requires Clutter core >= 1.0.0
  • The bindings for Clutter-GStreamer and Clutter-GTK have been dropped from the PyClutter module, and they will be shipped separately as PyClutter-GStreamer (pyclutter-gst) and PyClutter-GTK (pyclutter-gtk). The new modules are already available as separate repositories.

Changes from 0.8

  • Require Clutter core >= 1.0.0
  • Provide better bindings for the Cogl API
  • Add more examples ported from the clutter core interactive tests
  • Dropped the in-tree bindings of clutter-gtk and clutter-gst: you will have to install pyclutter-gtk and pyclutter-gst respectively to be able to import cluttergtk and cluttergst.
  • Allow accessing child properties for clutter.Container
  • Allow iterating over the children of a clutter.Container using the native Python iterator support
  • Allow creating custom ChildMeta classes from Python
  • Mark the classes removed from upstream Clutter as “deprecated”; trying to instantiate one of the deprecated classes will result in the equivalent class in Clutter 1.0 to be created and a warning printed out on the console
  • Override the __repr__ and __str__ methods for clutter.Color: the former will print out a wtring that can be used through eval() to create a copy of the color; the latter will print out the hexadecimal representation of the color.
  • Override the __str__ method of clutter.Event: it will now print more information on the event (type, time, source actor) and per-event type fields (button, key, related actor, etc.).
  • Deprecated clutter.stage_get_default() in favour of an optional argument to clutter.Stage(); calling:
        >>> clutter.Stage(default=True)
    

    will return the default Stage singleton; the default argument is optional and it defaults to False.

  • Allow passing the following values to methods accepting a clutter.Color:
    • a clutter.Color (e.g.: clutter.Color(255, 0, 0, 255))
    • a 4-tuple of RGBA values (e.g.: (255, 0, 0, 255))
    • a hexadecimal representation of the color (e.g.: ‘#ff0000ff’)

Many thanks to

  Bastian Winkler (new maintainer of PyClutter)
  Young-Ho Cha
  Chideok Hwang

8 Responses to “PyClutter 1.0.0”

  1. mike Says:

    Awesome, been waiting for this.

    Building some stuff now :)

  2. charclo Says:

    Hello, has anyone tried to get pyclutter running on mac os x yet? Is it very difficult? I’m new to mac os x (coming from ubuntu) and have no idea how to start.
    thanks

  3. Emmanuele Says:

    @charclo: getting pyclutter to build on OS X should not be any different than getting it to build on your Ubuntu; you should get pygobject, pygtk and pycairo to build first (you can probably install them from MacPorts), then build clutter 1.0 on OS X using the right flavour, then build pyclutter.

  4. Jim Says:

    Hi I’m trying to get pyclutter to run on amd64 but I keep getting the message :
    Cogl-GL-WARNING **: failed to bind GLXGetProcAddress or GLXGetProcAddressARB
    when I try to import clutter. I am using Kubuntu Jaunty and have got the same result whether I build from source or install a binary. Any idea how this can be fixed or where would be a better place to ask this question? Thanks a lot.
    Jim

  5. Kaur Says:

    Hi

    I was wondering if anyone has tried to compile PyClutter 1.0.0 with MSYS/MinGW on windows.

    I managed to get it to compile but it doesn’t seem to to create the pyd file for the extension. In python the error message I get is:
    File “C:\Python26\lib\site-packages\clutter\__init__.py”, line 43, in
    from clutter import _clutter
    ImportError: cannot import name _clutter

  6. Seb Says:

    Hi
    Where do I find pyclutter-gst and pyclutter-gtk? I don’t find them in the download area. Can they also be in the ubuntu repo?
    Thanks

  7. Rob Says:

    Where is the source for pyclutter-gtk and pyclutter-gst?

    I’ve looked for both packages and sources, and I can’t find either. Am I missing something?

    thanks

  8. Emmanuele Says:

    @Seb, @Rob: there haven’t been releases of pyclutter-gtk and pyclutter-gtk; you’ll have to clone the Git repositories for them.

Leave a Reply