X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e90db86e7e059fc6c6052228238a44b15410782c..8728cae3bfe0410ddc17d8bb1fb1ce66b77a3ae9:/wxPython/wx/lib/mixins/listctrl.py diff --git a/wxPython/wx/lib/mixins/listctrl.py b/wxPython/wx/lib/mixins/listctrl.py index cac86a0927..a28a164f79 100644 --- a/wxPython/wx/lib/mixins/listctrl.py +++ b/wxPython/wx/lib/mixins/listctrl.py @@ -117,8 +117,18 @@ class ColumnSorterMixin: self._col = col = evt.GetColumn() self._colSortFlag[col] = int(not self._colSortFlag[col]) self.GetListCtrl().SortItems(self.GetColumnSorter()) - self.__updateImages(oldCol) + if wx.Platform != "__WXMAC__" or wx.SystemOptions.GetOptionInt("mac.listctrl.always_use_generic") == 1: + self.__updateImages(oldCol) evt.Skip() + self.OnSortOrderChanged() + + + def OnSortOrderChanged(self): + """ + Callback called after sort order has changed (whenever user + clicked column header). + """ + pass def __ColumnSorter(self, key1, key2):