diff --git a/guidata/widgets/dataframeeditor.py b/guidata/widgets/dataframeeditor.py index f21be7c..830e88c 100644 --- a/guidata/widgets/dataframeeditor.py +++ b/guidata/widgets/dataframeeditor.py @@ -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: