[wxPython] Something strange with the first item in a wxListCtrl in wxGTK

Hello

I have noticed a strange behaviour with the wxListCtrl in wxGTK.

It seems like the method GetNextItem(-1,wxLIST_NEXT_ALL, wxLIST_STATE_SELECTED)
always returns the value -1 whenever the first element in the list is
selected. In order to not break the symmetry it should return the value 0.

For all the other elements it reports their order in the list, so it is only
the first element that breaks the rules.

I have found this bug in Solaris (SunOS 5.6), wxPython 2.1.13 and GTK 1.2.3,
Python 1.5.2.

Please note that this is a GTK only bug as far as I can see, since I tested
the same code in wxPython 2.1.13 for Win32 and the bug does not appear on that
platform.

Kind regards
    //Jan Persson

ยทยทยท

=====
------------------------------------------------------------

Jan Persson (Consultant). Syren Software Engineering |
jpersson1@yahoo.com http://www.syrensoftware.se/ |

------------------------------------------------------------

__________________________________________________
Do You Yahoo!?
Send online invitations with Yahoo! Invites.
http://invites.yahoo.com