[wxPython-users] Notebook image bug on win32,
working on GNU/Linux and Mac OSX
Frank Aune
frank.aune at broadpark.no
Fri Sep 21 13:59:19 PDT 2007
Den 21. sep. 2007 kl. 21.00 skrev Frank Aune:
>>
>> 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.
Ok, I tried this but obviously I cant use the return value from Add()
as an ImageList index reference, because when a tab in the middle is
removed it will change the index order of the imagelist and I end up
trying to remove an image outside the list.
If I have the following ImageList:
index | img
0 a
1 b
2 c
3 d
And I run Remove(2), I will remove c and d will take its place in
index 2, correct? Because this is the behavior I'm experiencing on
GNU/Linux and Mac OSX. But clearly something else is happening on Win32.
Can it be possible that when running Remove(2) on Win32, image d
still resides in index 3? Does it matter that some of the images are
exactly the same?
I'm sorry for all these questions I could test for myself, but I
don't have access to a Win32 plattform, so I'm trying to understand
as much as I can before I can get access to one.
Best regards,
Frank
More information about the wxpython-users
mailing list