colSortFlag shoudl be an int, not a Boolean
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39524 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
bf158fe6c6
commit
069eeb1772
@ -115,7 +115,7 @@ class ColumnSorterMixin:
|
||||
def __OnColClick(self, evt):
|
||||
oldCol = self._col
|
||||
self._col = col = evt.GetColumn()
|
||||
self._colSortFlag[col] = not self._colSortFlag[col]
|
||||
self._colSortFlag[col] = int(not self._colSortFlag[col])
|
||||
self.GetListCtrl().SortItems(self.GetColumnSorter())
|
||||
self.__updateImages(oldCol)
|
||||
evt.Skip()
|
||||
|
Loading…
Reference in New Issue
Block a user