On 3/4/07, SPE Stani's Python Editor <[EMAIL PROTECTED]> wrote:


On 3/5/07, Josiah Carlson <[EMAIL PROTECTED]> wrote:

 Then again, it would be much better if we could get a message from the
> underlying control when it finished lexing, and/or had the ability to
ask it
> to lex the whole file (and tell us when it was done).
Yes, I agree totally but I didn't find any reference how that could be
provoked.  Maybe a question for Neil.


Replace the line that reads...
   self.GotoLine(self.GetLineCount()) #make sure everything is lexed
with:
   self.Colourise(0, self.GetTextLength()) #make sure everything is lexed

...it seems to lex the full document on Windows and wxPython 2.6.3.2 and
2.8.0.1

For Windows users, you may want to consider passing the
wx.TR_LINES_AT_ROOTstyle to the Tree control constructor.  Without it,
the top-level nodes with
children aren't indented and don't have '+' next to them.

- Josiah

Reply via email to