> I use the text's configuration to define tags that I apply to > sections of the text. For example: > > txtBox = Text(self, width=80, height=20) > # configuration for red > txtBox.insert(END,"I am red ", "r")
I don't know if it's the absolute best way but I didn't know you could do that and I think its pretty neat! Pesonally I'd have been manually changing the foreground colour before each insert! Thanks for sharing. Alan G. _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor