Hi Kurt,

THANK YOU!!!! Yes, that did it. I did try setting only markup=column_id, but
didn't know to take the text=column_id out. I think I get it now -- you set
either text if you want plain text or markup if you want Pango markup, and
you give it the column ID you want it to apply to. That's what I get for
copying and pasting without understanding what it was doing!

Thanks,
Bryant

On 3/6/07, Kurt Symanzik <[EMAIL PROTECTED]> wrote:

Bryant Huang wrote:
> Hello,
>
> I've spent the last 3 hours trying to figure out how to highlight text
> in a TreeView cell. I found the example at
>
http://www.pygtk.org/pygtk2tutorial/sec-CellRenderers.html#sec-CellRendererTextMarkup
> but have been unable to replicate the same behavior in my own project.
>

I may have spoken too soon.  You may also need to not use the text
field.  For example, change:

column = gtk.TreeViewColumn(title, renderer, text=column_id, markup=0)

to this:

column = gtk.TreeViewColumn(title, renderer, markup=column_id)

Hope that solves it.

Kurt

--
Kurt Symanzik
[EMAIL PROTECTED]
Skype id: ksymanzik
http://kbsymanzik.org

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

Reply via email to