Re: pygtk: gtk.CellRendererText().set_property(...) and pango markup (HTML)

2011-09-09 Thread Marek Kozlowski
On 09/09/2011 10:54 AM, dieterv wrote: > On Fri, 09 Sep 2011 09:50:42 +0200, Marek Kozlowski wrote: > >> I'm afraid I'm dumb cause I still don't understand :-( > > Don't despair just yet! It's just that the techniques used > in Gtk's TreeView might not seem obvious at first. Looking > at the part

Re: pygtk: gtk.CellRendererText().set_property(...) and pango markup (HTML)

2011-09-09 Thread dieterv
On Fri, 09 Sep 2011 09:50:42 +0200, Marek Kozlowski wrote: I'm afraid I'm dumb cause I still don't understand :-( Don't despair just yet! It's just that the techniques used in Gtk's TreeView might not seem obvious at first. Looking at the parts that matter most for us application developers, t

Re: pygtk: gtk.CellRendererText().set_property(...) and pango markup (HTML)

2011-09-09 Thread Marek Kozlowski
:-) > The value of the "markup" property should be set to the > index of the "column" of your model (TreeStore, ListStore > or custom subclass) that holds the actual PangoMarkup. > > So if you have a TreeModel(str, str, str), corresponding > to the "columns" (markup, foreground, background), you