Skip to content

Commit

Permalink
Fix DataFrameView.moveCursor compat. with PyQt5
Browse files Browse the repository at this point in the history
  • Loading branch information
PierreRaybaut committed Sep 10, 2024
1 parent 28a4fbe commit b2a43aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion guidata/widgets/dataframeeditor.py
Original file line number Diff line number Diff line change
Expand Up @@ -608,7 +608,7 @@ def moveCursor(self, cursor_action, modifiers):
) + self.frozen_table_view.columnWidth(1)
topleft_x = self.visualRect(current).topLeft().x()

overflow = cursor_action.MoveLeft and current.column() > 1
overflow = cursor_action == QAbstractItemView.MoveLeft and current.column() > 1
overflow = overflow and topleft_x < col_width

if cursor_action == overflow:
Expand Down

0 comments on commit b2a43aa

Please sign in to comment.