[wxPython-users] Sorted List Control - how?
Ed Leafe
ed at leafe.com
Mon Dec 11 10:49:47 PST 2006
On Dec 10, 2006, at 7:44 AM, Donn Ingle wrote:
> I have been sorting a list before putting its elements into a list-
> control,
> but is there a way to make the list-control itself maintain a sort-
> order?
>
> I need this because new items can be added to the list-control
> (later) and
> they appear out of order - at the top of the list.
>
> Even more importantly, can it do so based on the current locale?
This looks like a great feature, so I just added it to the Dabo. All
controls based on item lists now have a Sorted property to turn this
behavior off/on, and a SortFunction property to control sorting.
Even if you don't use Dabo, thanks for the idea!
-- Ed Leafe
-- http://leafe.com
-- http://dabodev.com
More information about the wxpython-users
mailing list