[QScintilla] Setting insert point to start of selection

Edward K. Ream edreamleo at gmail.com
Thu Oct 9 13:54:08 BST 2008


Hello all,

I am moving the Leo editor from Tk to PyQt.  In most respects PyQt
appears much better than tkinter.

However, a seemingly small hole in QScintilla interface could cause
big problems: there seems to be no way to select text with the
insertion point at the *start* of the selection range.

Indeed, the setSelection always puts the insert point at the end of
the selection.  A prior call to setCursorPosition has no effect, and a
later call to setCursorPosition clears the selection :-(

I have tried reversing the arguments to setSelection with no joy.  I
see nothing akin to exchange-point-and-mark.

This is a deal breaker for Leo.  Can you suggest something?  Thanks.

Edward
--------------------------------------------------------------------
Edward K. Ream email: edreamleo at gmail.com
Leo: http://webpages.charter.net/edreamleo/front.html
--------------------------------------------------------------------


More information about the QScintilla mailing list