Tkinter & Text object

Adonis deltapigz at
Wed Jun 20 12:14:17 EDT 2001

anyone know how to set color to a line after it was added to a Text

for example; im writting a small IRC client in Python and want to be
able to encode my text with color in the case an irc client sends color
codes my way.

<bob> hey chr(2)!chr(2) (chr(2) bold code or \x02)
this is what i would receive from he server thus i display
<bob hey !! (double !! symbolizing bold)

ive looked into the Tkinter documents and found text.mark_set("string",

but have no idea how to use it. a teeny example is all im looking for
afterwards i can pick up from that point.

any help would be greatly appreciated.



More information about the Python-list mailing list