Hello! On Thu, Nov 11, 2010 at 10:54 AM, <[email protected]> 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)
Regards Henning _______________________________________________ PyQt mailing list [email protected] http://www.riverbankcomputing.com/mailman/listinfo/pyqt
