Problem with pygnome, Canvas and images

Juha Syrjälä jsyrjala at cc.hut.fi
Tue Aug 8 14:12:16 EDT 2000


Eric Jacobs <none at none> wrote:
> In article <8mespr$r2q6$1 at midnight.cs.hut.fi>, Juha Syrjälä
> <jsyrjala at cc.hut.fi> wrote:
>> Hello,
>> 
>> I'am having trouble with GnomeCanvas and images. I have been trying
>> following code:
>> 
>> gdkimage=GdkImlib.Image("dog.jpg")
>> w=canvas.root().add('image',image=gdkimage,x=10,y=10 ) w.show()
>> 
>> But nothing happens.
> You need width and height parameters.

Thaks, that worked.

But I have also another problem with rotating images. When I try to
rotate image with for example:

image.affine_absolute(rotate(degrees=40)) 

I get scaled image, but rotations work for example with polygons.

Am I missing something?

-- 
Juha Syrjälä



More information about the Python-list mailing list