[wxPython-users] Re: Re: Sorted List Control - how?
Werner F. Bruhin
werner.bruhin at free.fr
Mon Dec 11 09:54:38 PST 2006
Donn,
Donn Ingle wrote:
> ...
> Yeah - that's the thing. I gotta go do hoops and loops after that point. So
> it seems the ListCtrl cannot keep itself sorted, which is just downright
> weird.
>
> (After all that work, it might simply be easier to delete all the items,
> sort a list and then re-insert them into the control!)
>
> Please someone, tell me I'm wrong!
>
Have you looked at the "wx\lib\mixins\listctrl.py" mixin? It is used in
the wxPython demo Core Windows/Controls ListCtrl. I don't know how it
reacts adding a new item to the list, in worst case you might just have
to call SortListItems.
Hope this helps
Werner
More information about the wxpython-users
mailing list