[PyKDE] eric3, qscintilla and code folding

Mario Beauchamp starged at videotron.ca
Thu Oct 13 19:21:14 BST 2005


Hi all,

Brad Ralph wrote:
> 
> When I create classes, I often want to fold all of the methods of the class 
> (if there are a lot of them, to make it easier to navigate.  No problem i 
> think ... just select 'toggle all folds' in the menu and then expand the 
> class fold.  but I'd be wrong.  It seems that if a fold is collapsed then the 
> toggle function does not look inside that block and since the class fold is 
> the first in the file 'toggle all folds' only colapses the class.  when I 
> open it again, all of the methods are still expanded.
> 
> I had a peek around the eric3 code, but all the magic seems to be done in 
> QScintilla.

I've been using eric3 for a few months now and I like it very much but I must admit this problem
has been bugging me from the start. Now, I don't know a lot about QScintilla and/or Scintilla
itself but I was using the Pythonwin IDE (also based on Scintilla) under Windows before and it
has a code folding feature that collapses everything. So it may not be that difficult to
implement that in eric3.

Just a thought...
--
Mario B.




More information about the PyQt mailing list