[pygtk] Enabling markup for a TreeViewColumn

Kurt Symanzik kurt at kbsymanzik.org
Wed Mar 7 11:43:03 WST 2007


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.
> 
> Here are the relevant excerpts from my code, simplified slightly: > <snip>
> What am I doing incorrectly? I've tried this on Fedora Core 3 and 4
> with the same results.

In your add_results_column method, you have markup=0 where it should be 
markup=column_id.  That threw me for quite a while too.  I think that if 
you make that change, it should work as you expect.

Kurt

-- 
Kurt Symanzik
kurt at kbsymanzik.org
Skype id: ksymanzik
http://kbsymanzik.org


More information about the pygtk mailing list