SCN_MODIFIED signal error?

Phil Thompson phil at riverbankcomputing.com
Sun Jun 5 13:24:19 BST 2022


On 04/06/2022 17:42, Matic Kukovec wrote:
> 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

Should be fixed in the next PyQt6 snapshot.

Thanks,
Phil


More information about the QScintilla mailing list