Skip to content

Commit b2a43aa

Browse files
committed
Fix DataFrameView.moveCursor compat. with PyQt5
1 parent 28a4fbe commit b2a43aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

guidata/widgets/dataframeeditor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -608,7 +608,7 @@ def moveCursor(self, cursor_action, modifiers):
608608
) + self.frozen_table_view.columnWidth(1)
609609
topleft_x = self.visualRect(current).topLeft().x()
610610

611-
overflow = cursor_action.MoveLeft and current.column() > 1
611+
overflow = cursor_action == QAbstractItemView.MoveLeft and current.column() > 1
612612
overflow = overflow and topleft_x < col_width
613613

614614
if cursor_action == overflow:

0 commit comments

Comments
 (0)