SCN_MODIFIED signal error?

Matic Kukovec kukovecmatic at hotmail.com
Sun Jun 5 14:05:31 BST 2022



________________________________
From: Phil Thompson <phil at riverbankcomputing.com>
Sent: Sunday, June 5, 2022 2:24 PM
To: Matic Kukovec <kukovecmatic at hotmail.com>
Cc: QScintilla <qscintilla at riverbankcomputing.com>
Subject: Re: SCN_MODIFIED signal error?

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
Thanks 👍

Matic
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/qscintilla/attachments/20220605/45f73aba/attachment.htm>


More information about the QScintilla mailing list