[wxPython-users] ColumnSorterMixin doesn't remember sorting order
Robin Dunn
robin at alldunn.com
Wed May 2 13:56:01 PDT 2007
Igor Jese wrote:
> Hi all,
>
> I use ListCtrl with ColumnSorterMixin and it works fine untill I
> repopulate the list - when I do, the sorting is gone. One can reproduce
> it in ListCtrl demo: sort the list by "Genre" and then right click and
> choose "ClearAll and Repopulate".
>
> How can I make the ColumnSorterMixin (or derived class to be precise) to
> keep the sorting order or at least how can I remember it and set it
> later manually?
I think you just need to call SortListItems() after you repopulate.
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!
More information about the wxpython-users
mailing list