Yeah it is. Sorry the way I said that did make it sound like a function. Basically you can use bg='yellow' to set the background of the text to be yellow. I just used this today, so here is a picture of what is looks like when used in a Tkinter box. [IMG]http://img3.imageshack.us/img3/1492/highlightedtext.png[/IMG]
By scott454 at 2012-02-18
import Tkinter as tk
root = tk.Tk()
text = tk.Text(root, font=("Helvetica", 50))
text.insert(tk.END, "Hello, World")
#Designate what letters to highlight
#in this case Hello and W is highlighted
text.tag_add("Hello", "1.0", "1.5")
text.tag_add("W", "1.7", "1.8")
text.tag_config("Hello", background="yellow", foreground="blue")
text.tag_config("W", background="black", foreground="green")
Help! I want to create a java program that finds the highest even integer among the values entered by the user. Stop asking values when a value less than 1 have been entered. If no even integer is entered, display "No Even Integer"
Hi, as I was told that my code doesn’t scale well at all, I thought perhaps I’d try to get a better understanding of interfaces/abstract classes and classes and the relationship between them.
I don’t want at this stage work on a big separate project as I've already got plenty ...