SCN_MODIFIED signal error?

Matic Kukovec kukovecmatic at hotmail.com
Sat Jun 4 17:42:34 BST 2022


Hi,

My specifications:

  *   Lubuntu x64 (same problem on Windows 10)
  *   PyQt 6.3.0
  *   QScintilla 2.13.3

On executing the code below, every text change on PyQt6.3.0 / QScintilla 2.13.3 throws a:
TypeError: unable to convert a QVariant back to a Python object

Is there something I'm doing wrong or is it a QScintilla problem?

The code:
import PyQt6.QtWidgets
import PyQt6.Qsci
import sys

application = PyQt6.QtWidgets.QApplication(sys.argv)

def __text_modified(*args):
    print("HERE")
editor = PyQt6.Qsci.QsciScintilla()
editor.SCN_MODIFIED.connect(__text_modified)
editor.show()
editor.setText("Hello World")

application.exec()

Thanks,
Matic

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/qscintilla/attachments/20220604/b1050d20/attachment.htm>


More information about the QScintilla mailing list