Hi,

I have a TextView and a corresponding TextBuffer and I want to highlight 
a line of text (by changing its background color). I have tried to use 
tags:

iter1 = self.textbuffer.get_iter_at_line(3)
iter2 = self.textbuffer.get_iter_at_line(4)
self.textbuffer.create_tag("highlighted",  background = "red")
self.textbuffer.apply_tag_by_name("highlighted", iter1, iter2)

This only highlights the characters in the line, but not everything 
until the end of the line.

Any ideas to get this work to highlight everything to the end of line?

- Patrick
_______________________________________________
pygtk mailing list   [email protected]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/

Reply via email to