whats the best(=most performant) way to sort a wxListCtrl.
i cant use .SortItem(…CompareCallback) -
( this would sort on the ITEMDATA. )
or whats the best way to swap two rows in a wxListCtrl.
whats the best(=most performant) way to sort a wxListCtrl.
i cant use .SortItem(…CompareCallback) -
( this would sort on the ITEMDATA. )
or whats the best way to swap two rows in a wxListCtrl.
whats the best(=most performant) way to sort a wxListCtrl.
i cant use .SortItem(...CompareCallback) -
( this would sort on the ITEMDATA. )
See wxPython/lib/mixins/listctrl.py for one way to do it. You can either
borrow code from this class, or just mix it in with your own class to get a
list control that sorts columns when the header is clicked on.
--
Robin Dunn
Software Craftsman
robin@AllDunn.com Java give you jitters?
http://wxPython.org Relax with wxPython!