'setEolMode' bug?

Matic Kukovec kukovecmatic at hotmail.com
Wed Mar 22 10:29:22 GMT 2023


________________________________
From: Phil Thompson <phil at riverbankcomputing.com>
Sent: Monday, March 20, 2023 3:40 PM
To: Matic Kukovec <kukovecmatic at hotmail.com>
Cc: QScintilla <qscintilla at riverbankcomputing.com>
Subject: Re: 'setEolMode' bug?

On 10/03/2023 11:56, Matic Kukovec wrote:
> Hi,
>
> My specs:
>
>   *   Windows 10 x64
>   *   Python 3.9.13 x64
>   *   PyQt6 6.4.2
>   *   PyQt6-QScintilla 2.13.4
>
> When using the 'setEolMode' function with an integer value, in my case
> 2 (SC_EOL_LF), the function accepts it but behaves weird, the cursor
> disappears when pressing ENTER at the end of a line, but only once the
> new line is added! If you add any other characters or space and then
> delete back to the start of the line the cursor reappears.
> Example of this call:
>       self.setEolMode(2)
>
> But, if the integer is wrapped in the EolMode enum, then it works:
>       self.setEolMode(QsciScintilla.EolMode(2))
>
> I doing something wrong or is this a bug?

For me setEolMode(2) raises a TypeError (as it should).

Please send a short, complete script that demonstrates the problem.

Phil

Hi Phil,

After trying to reproduce this, I found that you are right, it correctly throws a TypeError.
I guess I probably mixed up Python and PyQt versions to something older when doing the tests or something similar.

Sorry for the noise.

Matic
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/qscintilla/attachments/20230322/4d6058f9/attachment.htm>


More information about the QScintilla mailing list