wxPython 2.9.5.0 wx.ArtProvider.GetBitmap and DefaultSize problem

On windows vista, testing out 2.9.5.0, I get different bitmap sizes when calling artprovider.getbitmap without passing size parameter.
The "find" bitmap is always bigger (not depending on position), see attached sample.
Is there a way to fix ?

Thanks, apart from this 2.9.5.0 really is a huge step forward in the 2.9 series :slight_smile:

Test_ArtProvider_DefaultSize.py (1.46 KB)

Test_ArtProvider_DefaultSize.jpg

Marco De Felice wrote:

On windows vista, testing out 2.9.5.0, I get different bitmap sizes when
calling artprovider.getbitmap without passing size parameter.
The "find" bitmap is always bigger (not depending on position), see
attached sample.
Is there a way to fix ?

Why not pass a size to GetBitmap?

I expect that it is simply an issue related to the size of the source image. Also, some of the images are coming from the platform, and others are stock images that wxWidgets includes in its build, so there could be different sizes from different sources that way too.

ยทยทยท

--
Robin Dunn
Software Craftsman

Robin Dunn wrote:.

Marco De Felice wrote:

On windows vista, testing out 2.9.5.0, I get different bitmap sizes when
calling artprovider.getbitmap without passing size parameter.
The "find" bitmap is always bigger (not depending on position), see
attached sample.
Is there a way to fix ?

Why not pass a size to GetBitmap?

I expect that it is simply an issue related to the size of the source image. Also, some of the images are coming from the platform, and others are stock images that wxWidgets includes in its build, so there could be different sizes from different sources that way too.

Thanks, I forgot to mention that I'm migrating from wxPython 2.8 where the bitmaps are rendered of the same size (16x16), but if it's a normal behaviour I'll go on with the pass a size solution.