[wxPython-users] Notebook image bug on win32, working on GNU/Linux and Mac OSX

Frank Aune Frank.Aune at broadpark.no
Fri Sep 21 12:00:06 PDT 2007


On Friday 21 September 2007 20:46:59 Robin Dunn wrote:
> Frank Aune wrote:
> > Since it works perfectly fine for GNU/Linux and Mac OSX 10.4, but not on
> > Win32 (tested on more than 1 box), I dare say that the index in the
> > ImageList is working as expected.
>
> Not necessarily.  On Linux and Mac the generic version of the
> wxImageList is used, on Windows it is a wrapper around the native
> ImageList.  So you may just be accidentally exploiting a bug in the
> generic image list.

Since wx is a cross-plattform widget toolkit, shouldnt the behaviour ideally 
be the same on each plattform? 

Whats the reason you think the Win32 wrapper is behaving correctly, while the 
GNU/Linux and Mac OSX version is the wrong one?


> > The order in the ImageList is the same as the tab order, because each tab
> > inserts and remove its own image upon activation/deactivation.
>
> You should try comparing the return value from ImageList.Add with with
> the index you are using to check for sure.

Good idea, up until now I just inserted and removed the image in the ImageList 
depending on the tab order, but I might just as well use the returnvalue of 
Add() since its available in the class anyway.

Best regards,
Frank




More information about the wxpython-users mailing list