[PyQt] One question about CodeAide

Henning Schröder henning.schroeder at gmail.com
Mon Nov 15 12:16:49 GMT 2010


On Thu, Nov 11, 2010 at 10:54 AM,  <projetmbc at club-internet.fr> wrote:
> Hello,
> I know that the author of this project
> http://www.henning-schroeder.de/codeaide/ is on this list.
> I would like to know the method used for implementing FOLDING in a
> QPlainTextEdit. I'm just interested with the way to hide-show some special
> lines, and not with the way to find the line to hide-show.
A QPlainTextEdit has a document() method which returns a QTextDocument instance.
This object contains QTextBlock instances (normally each row is a QTextBlock).
To hide a row for folding you call the method setVisible(False)


More information about the PyQt mailing list