December 1st, 2003, 02:03 PM
Hi, I would like to know how can I Highlight words with specific colors in my Tkinter code? I guess I can use the tokenize module, Im making something like the below code. is that correct? or what can I do to Highlight words?
Thanks a lot.
Last edited by Gerardoj; December 1st, 2003 at 02:10 PM.
December 4th, 2003, 02:39 PM
Jurgen Hermann wrote a python colorizer using the tokenize module. His code outputs HTML file, but you could modify it to use tkinter.
Up the Irons
What Would Jimi Do? Smash amps. Burn guitar. Take the groupies home.
"Death Before Dishonour, my Friends!!" - Bruce D ickinson, Iron Maiden Aug 20, 2005 @ OzzFest
Down with Sharon Osbourne
"I wouldn't hire a butcher to fix my car. I also wouldn't hire a marketing firm to build my website." - Nilpo