Skip to content

Commit

Permalink
GUI: fix ColumnSorterMixin regression (#4310)
Browse files Browse the repository at this point in the history
* fixing TypeError ColumnSorterMixin #4277

* #4277 fix ColumnSorterMixin error
  • Loading branch information
rohannallamadge authored Sep 12, 2024
1 parent 4d5184d commit 5de8682
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion gui/wxpython/gcp/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -1272,7 +1272,7 @@ def InitMapDisplay(self):
# initialize column sorter
self.itemDataMap = self.mapcoordlist
ncols = self.list.GetColumnCount()
ColumnSorterMixin(self, ncols)
ColumnSorterMixin.__init__(self, ncols) # noqa: PLC2801, C2801
# init to ascending sort on first click
self._colSortFlag = [1] * ncols

Expand Down
2 changes: 1 addition & 1 deletion gui/wxpython/image2target/ii2t_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -1257,7 +1257,7 @@ def InitMapDisplay(self):
# initialize column sorter
self.itemDataMap = self.mapcoordlist
ncols = self.list.GetColumnCount()
ColumnSorterMixin(self, ncols)
ColumnSorterMixin.__init__(self, ncols) # noqa: PLC2801, C2801
# init to ascending sort on first click
self._colSortFlag = [1] * ncols

Expand Down
2 changes: 1 addition & 1 deletion gui/wxpython/photo2image/ip2i_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -625,7 +625,7 @@ def InitMapDisplay(self):
# initialize column sorter
self.itemDataMap = self.mapcoordlist
ncols = self.list.GetColumnCount()
ColumnSorterMixin(self, ncols)
ColumnSorterMixin.__init__(self, ncols) # noqa: PLC2801, C2801
# init to ascending sort on first click
self._colSortFlag = [1] * ncols

Expand Down
2 changes: 1 addition & 1 deletion gui/wxpython/vnet/widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ def __init__(
# initialize column sorter
self.itemDataMap = []
ncols = self.GetColumnCount()
ColumnSorterMixin.__init__(self, ncols)
ColumnSorterMixin.__init__(self, ncols) # noqa: PLC2801, C2801

# init to ascending sort on first click
self._colSortFlag = [1] * ncols
Expand Down

0 comments on commit 5de8682

Please sign in to comment.