Uploaded image for project: 'Qt for Python'
  1. Qt for Python
  2. PYSIDE-185

QTextCursor.movePosition keyword args misnamed and bad keywords don't raise exception

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • P3: Somewhat important
    • None
    • 1.1.1
    • Documentation, PySide
    • None
    • Ubuntu

    Description

      result = cursor.movePosition(QTextCursor.PreviousCharacter, mode = QTextCursor.KeepAnchor)

      Fails to keep anchor and does not raise "unexpected keyword argument" exception.

      Workaround is don't use keyword, just pass 2nd arg positionally.

      The current PySide documentation shows the name of the argument as "arg_2", but I mistakenly assumed that the Qt C++ documentation (which shows keyword "mode") was correct for PySide. Not a big deal, I am just documenting it so it might not bite someone else.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            Unassigned Unassigned
            bootchk lloyd konneker
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes