Without understanding anything about your code, I can only direct you to this Tk-TextANSIColor-0.15 module. This may well get you on the right track to accomplishing your goal. From the looks of it you would have to parse the contents of the file and insert the ANSI color codes around the words of interest....I don't know for sure, just throwing out an idea from what I read. Also, it says that the module is mainly used in conjuction w/ a tied filehandle
Hope some of that helps,In reply to Re: Coloring text using TK?
by Grygonos
in thread Coloring text using TK?
by Elijah
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |