Tkinter syntax coloring
Laura Creighton
lac at strakt.com
Fri Dec 27 02:15:32 EST 2002
> Dagur Páll Ammendrup <dagurp at heimsnet.is> writes:
>
> > I want to do html syntax coloring in a Tkinter text widget but I'm
> > just a beginner using Tkinter. What I have so far takes a few seconds
> > to complete so it's obviously not good enough :D
> >
> > Does anyone have any pointers for me?
>
> You might want to look on how IDLE does Python syntax coloring, or
> perhaps you can find a copy of Grail, to see how it did rendering. I
> believe the trick is to allocate as few tags as possible, and reuse
> them whereever feasible.
>
> Regards,
> Martin
>
> --
> http://mail.python.org/mailman/listinfo/python-list
If all you want to do is display HTML, it might be easier just to wrap
this one: http://www.hwaci.com/sw/tkhtml/
Laura Creighton
More information about the Python-list
mailing list