<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<blockquote style="border-color: rgb(200, 200, 200); border-left: 3px solid rgb(200, 200, 200); padding-left: 1ex; margin-left: 0.8ex; color: rgb(102, 102, 102);" itemscope="" itemtype="https://schemas.microsoft.com/QuotedText">
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="">
<br>
</div>
<div id="appendonsend"></div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" face="Calibri, sans-serif" color="#000000"><b>From:</b> Phil Thompson <phil@riverbankcomputing.com><br>
<b>Sent:</b> Monday, March 20, 2023 3:40 PM<br>
<b>To:</b> Matic Kukovec <kukovecmatic@hotmail.com><br>
<b>Cc:</b> QScintilla <qscintilla@riverbankcomputing.com><br>
<b>Subject:</b> Re: 'setEolMode' bug?</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt">
<div class="PlainText">On 10/03/2023 11:56, Matic Kukovec wrote:<br>
> Hi,<br>
> <br>
> My specs:<br>
> <br>
> * Windows 10 x64<br>
> * Python 3.9.13 x64<br>
> * PyQt6 6.4.2<br>
> * PyQt6-QScintilla 2.13.4<br>
> <br>
> When using the 'setEolMode' function with an integer value, in my case<br>
> 2 (SC_EOL_LF), the function accepts it but behaves weird, the cursor<br>
> disappears when pressing ENTER at the end of a line, but only once the<br>
> new line is added! If you add any other characters or space and then<br>
> delete back to the start of the line the cursor reappears.<br>
> Example of this call:<br>
> self.setEolMode(2)<br>
> <br>
> But, if the integer is wrapped in the EolMode enum, then it works:<br>
> self.setEolMode(QsciScintilla.EolMode(2))<br>
> <br>
> I doing something wrong or is this a bug?<br>
<br>
For me setEolMode(2) raises a TypeError (as it should).<br>
<br>
Please send a short, complete script that demonstrates the problem.<br>
<br>
</div>
<div class="PlainText">Phil</div>
</span></font></div>
</blockquote>
<div class="elementToProof" style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
<br>
</div>
<div class="elementToProof" style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
Hi Phil,</div>
<div class="elementToProof" style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
<br>
</div>
<div class="elementToProof" style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
After trying to reproduce this, I found that you are right, it correctly throws a TypeError.<br>
</div>
<div class="elementToProof" style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
I guess I probably mixed up Python and PyQt versions to something older when doing the tests or something similar.</div>
<div class="elementToProof" style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
<br>
</div>
<div class="elementToProof" style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
Sorry for the noise.</div>
<div class="elementToProof" style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
<br>
</div>
<div class="elementToProof" style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
Matic<br>
</div>
</body>
</html>