[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Gnumed-devel] gmRichardSpace still crashing on the icon stuff
From: |
Ian Haywood |
Subject: |
Re: [Gnumed-devel] gmRichardSpace still crashing on the icon stuff |
Date: |
Mon, 21 Mar 2005 22:18:52 +1100 |
User-agent: |
Mozilla Thunderbird 0.8 (X11/20041012) |
Ian Haywood wrote:
It should be possible to scale the icon to fit, I need to study the docs
some more.
Yep, wx.Image.Rescale (x, y) forces an image to be a certain size
So the code becomes:
img = wx.Image
('/home/richard/gnumed/gnumed/client/bitmaps/home_path3232.png',
wx.BITMAP_TYPE_ANY)
img.Rescale (32, 32)
bmp = wx.BitmapFromImage (img)
imagelist.Add (bmp)
self.nb.AssignImageList (imagelist)
Richard, can you try this.
Ian
signature.asc
Description: OpenPGP digital signature