[PyQt] SCN_MODIFIED parameters

Phil Thompson phil at riverbankcomputing.com
Wed Jan 4 17:44:43 GMT 2012


On Wed, 4 Jan 2012 11:26:03 -0600, "Bryan A. Jones"
<bjones at ece.msstate.edu> wrote:
> All,
> 
> I'm trying to better understand the SCN_MODIFIED signal in QScintilla
v2.6,
> since the documentation doesn't provide many details. Digging a bit in
the
> source code:
> 
> In Qt4\ScintillaQt.cpp(357), I see what I believe is a signal sent to
> Python as:
>             emit qsb->SCN_MODIFIED(scn.position, scn.modificationType,
>             text,
>                     scn.length, scn.linesAdded, scn.line,
scn.foldLevelNow,
>                     scn.foldLevelPrev, scn.token,
>                     scn.annotationLinesAdded);

This is how the signal is emitted - nothing to do with Python.

> Then, in Python\sip\qsciscintillabase4.sip(1219), the statement
>     void SCN_MODIFIED(int, int, const char *, int, int, int, int, int,
int,
> int);
> then exposes this signal as QsciScintillaBase.SCN_MODIFIED, correct?

This is just the description of the C++ signal to be wrapped.

If you want information on the arguments then look at the Scintilla
documentation.

Phil


More information about the PyQt mailing list