[wxPython-users] Sorting a ListCtrl
Josh English
joshua.r.english at gmail.com
Mon Oct 1 20:22:08 PDT 2007
Look in the mixins for ListCtrl. They have one that will sort by
column on a column click. I had to refactor a small bit of code to add
the required sorting procedure, but it's well worth the effort and
makes the application much more usable.
I think its the mixins.ListCtrl.ColumnSorter mixin.
Josh
On 10/1/07, Robert Dailey <rcdailey at gmail.com> wrote:
> Hi,
>
> Is there an example python script demonstrating how to sort rows in a list
> control? Suppose I have a list control with 4 columns and I want each to be
> sortable descending / ascending. From the documentation I've read this seems
> to be a fairly complex procedure. Example code would probably get me on my
> way.
>
> Thanks.
>
--
Josh English
Joshua.R.English at gmail.com
http://joshenglish.livejournal.com
More information about the wxpython-users
mailing list