[PyQt] How to call SCI_GETSELTEXT from Python

Baz Walter bazwal at ftml.net
Sat Jun 18 17:31:23 BST 2016


On 18/06/16 15:12, Barry Scott wrote:
> What is the correct way to call SendScintilla for SCI_GETSELTEXT?
>
> I see that the first arg is unused (use 0) but what do I use for the
> char * pointer?


Pass in 0 to get the length, and then use a bytearray for the char*.

-- 
Regards
Baz Walter


More information about the PyQt mailing list