[pygtk] Cloning a cairo.Matrix

Dominique Würtz housirer at gmx.de
Sun Apr 9 00:25:31 WST 2006


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?

Dominique



More information about the pygtk mailing list