Skip to content

AttributeError: 'QTextCursor' object has no attribute 'KeepAnchor' #2004

@yoshiakionishi

Description

@yoshiakionishi

This error happens when I click the following three "Breathing Signs" buttons from the "Quick Insert":

  • Straight Breathing Sign
  • Curved Caesura
  • Straight Caesura

Clicking "Default Breathing Sign" does not reproduce this error.

After clicking the error window, I can continue to edit my files within Frescobaldi. So it does not appear to be a fatal error.

Traceback (most recent call last):
File "/Applications/Frescobaldi.app/Contents/Resources/app/frescobaldi/quickinsert/buttongroup.py", line 96, in
function = (lambda name: lambda: self.actionTriggered(name))(name)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Applications/Frescobaldi.app/Contents/Resources/app/frescobaldi/quickinsert/barlines.py", line 127, in actionTriggered
self.insertText(text, blankline=True)
File "/Applications/Frescobaldi.app/Contents/Resources/app/frescobaldi/quickinsert/buttongroup.py", line 148, in insertText
cursor.setPosition(pos, cursor.KeepAnchor)
^^^^^^^^^^^^^^^^^
AttributeError: 'QTextCursor' object has no attribute 'KeepAnchor'

Optionally describe below what you were doing:

Frescobaldi: 4.0.3
Extension API: 0.9.0
Python: 3.12.8
python-ly: 0.9.9
Qt: 6.9.0
PyQt: 6.9.0
qpageview: 1.0.0
OS: macOS-14.7.6-arm64-arm-64bit
installation kind: standalone .app bundle

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