[wxPython-users] Reloading a ListCtrl with ColumnSorterMixin

Werner F. Bruhin werner.bruhin at free.fr
Fri Jun 29 00:24:57 PDT 2007


Hi Don,

Don Dwiggins wrote:
> I'm using ColumnSorterMixin to allow users to sort by column in a 
> ListCtrl.  In this app, users can reload the control by a button.  The 
> problem is that the mixin doesn't notice the reload -- the up/down 
> arrow stays on the column that was last sorted, and clicking the 
> column again causes it to reverse the sort direction.
>
> It doesn't look as though there's any method to "tell" 
> ColumnSorterMixin  that the reload has happened, and that it should 
> return to a "neutral state".  I'll probably add that capability, but I 
> first wanted to check whether anyone else has encountered this, or 
> whether I've missed something.
There is a SortListItems Method in the mixin, but you need to call it 
after you reloaded the list.

Werner





More information about the wxpython-users mailing list