Hi, so in order to make my problem more clear, I shall just make a simple example of what I am trying to do. I will start with a little code:
from Tkinter import * master = Tk() msgbox = Text(master) msgbox.pack() mytext = raw_input("> ") msgbox.insert(END, mytext) master.mainloop()
Now, say I enter the string "foo just ran down the street and met his friend bar. foo was very happy" when I am prompted by "raw_input". What I would like to do is tag all occurrences of "foo" and color them red. How would I go about doing this?
Thanks in advance.