Skip to content

Deprecation warning from CodeWidget #1284

@siddhantwahal

Description

@siddhantwahal

CodeWidget emits the following deprecation warning:

/path/to/venv/pyface/ui/qt/code_editor/code_widget.py:91: UserWarning: 
The "+" operator is deprecated in Qt For Python 6.0 .
Please use "|" instead.
  QtCore.Qt.Modifier.SHIFT + QtCore.Qt.Key.Key_Backtab
/path/to/venv/pyface/ui/qt/code_editor/code_widget.py:94: UserWarning: 
The "+" operator is deprecated in Qt For Python 6.0 .
Please use "|" instead.
  QtCore.Qt.Modifier.CTRL + QtCore.Qt.Key.Key_Slash

The "+" operator is being used to hook up a key sequence here:

self.unindent_key = QtGui.QKeySequence(
QtCore.Qt.Modifier.SHIFT + QtCore.Qt.Key.Key_Backtab
)
self.comment_key = QtGui.QKeySequence(
QtCore.Qt.Modifier.CTRL + QtCore.Qt.Key.Key_Slash
)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions