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:
@@ -115,7 +115,7 @@ class ColumnSorterMixin:
|
|||||||
def __OnColClick(self, evt):
|
def __OnColClick(self, evt):
|
||||||
oldCol = self._col
|
oldCol = self._col
|
||||||
self._col = col = evt.GetColumn()
|
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.GetListCtrl().SortItems(self.GetColumnSorter())
|
||||||
self.__updateImages(oldCol)
|
self.__updateImages(oldCol)
|
||||||
evt.Skip()
|
evt.Skip()
|
||||||
|
Reference in New Issue
Block a user