[pygtk] Cloning a cairo.Matrix

Lawrence Oluyede l.oluyede at gmail.com
Sun Apr 9 02:21:10 WST 2006


On 4/8/06, Dominique Würtz <housirer at gmx.de> wrote:
> Hi,
>
> I need to make a copy of a cairo.Matrix. This does not work correctly:
>
> import copy
> matrix2  =  copy.copy(matrix)
>
> while this does but seems like an ugly work-around to me:
>
> matrix2 = cairo.Matrix() * matrix
>
> Is there another (clean) way to do this? Or should I file a bug?

This is not really a pygtk question but it relates to cairo only. You
should better ask to cairo's mailing list.

Anyway for me copy.copy(matrix) works fine.

--
Lawrence
http://www.oluyede.org/blog


More information about the pygtk mailing list