Merge pull request #2247 from CarstenGrohmann/listctrl_format_doc

Fix docstring layout for ColumnSorterMixin.GetSortState()
This commit is contained in:
Robin Dunn
2022-08-30 18:49:19 -07:00
committed by GitHub

View File

@@ -144,10 +144,12 @@ class ColumnSorterMixin:
"""
Return a tuple containing the index of the column that was last sorted
and the sort direction of that column.
Usage:
col, ascending = self.GetSortState()
# Make changes to list items... then resort
self.SortListItems(col, ascending)
Usage::
col, ascending = self.GetSortState()
# Make changes to list items... then resort
self.SortListItems(col, ascending)
"""
return (self._col, self._colSortFlag[self._col])