[cairo] Qahirah: A High-Level Cairo API Binding For Python 3

Lawrence D'Oliveiro ldo at geek-central.gen.nz
Fri Mar 6 16:19:37 PST 2015

On Fri, 6 Mar 2015 16:03:50 -0800, Bryce Harrington wrote:

> Have you looked at cairocffi?
>     https://pypi.python.org/pypi/cairocffi/

I did have a brief look. I wanted something that went beyond toy fonts,
which it doesn’t seem to do. Also it sticks closely to the underlying
Cairo API calls and compatibility with Pycairo. Whereas Qahirah makes
heavy use of Python properties, so that instead of

   pat = ctx.get_source()



you can write

    pat = ctx.source


    ctx.source = pat

The set_xxx calls are available, for use with method-chaining, but I
don’t bother with the get_xxx calls.

More information about the cairo mailing list