ColumnSorterMixin class
I’ve been experimenting with the lib.mixins.listctrl.ColumnSorterMixin class to be able to sort the ListCtrl contents by clicking on the column headings. This works fine - except that, for my particular case, I would like to disable the functionality for the last column.
The obvious step would be to override __OnColClick() in my derived class and only do the sort for the appropriate columns.
However, __OnColClick() is a ‘private’ method so I don’t believe I can override it.
Could __OnColClick() be made a ‘public’ method in the next release? Or is there another way to do what I want?
Try binding the EVT_LIST_COL_CLICK event to your own handler, and if it is any column but the last one call event.Skip so the default handler will still be called.
···
Richard.Townsend@edl.uk.eds.com wrote:
I've been experimenting with the lib.mixins.listctrl.ColumnSorterMixin class to be able to sort the ListCtrl contents by clicking on the column headings. This works fine - except that, for my particular case, I would like to disable the functionality for the last column.
The obvious step would be to override __OnColClick() in my derived class and only do the sort for the appropriate columns.
However, __OnColClick() is a 'private' method so I don't believe I can override it.
Could __OnColClick() be made a 'public' method in the next release? Or is there another way to do what I want?
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!