John Finlay wrote:

Looks OK to me except last line should be:

           start = matchEnd

And I would create the tag in an initialization method.

Thanks, I'll adjust accordingly.



Are you sure that searchStr is in buffer?


No it wasn't. In fact, nothing was in the text buffer. Here was the code I had:

   buffer = gtk.TextBuffer()
   highlightText(buffer, searchStr)
   buffer.set_text(results)
   self.result_view.set_buffer(buffer)

A quick reordering of those lines fixed the problem.

M u s t   g e t   m o r e   s l e e p.
_______________________________________________
pygtk mailing list   pygtk@daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to