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

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

2011-09-08 Thread Dieter Verfaillie
On 08/09/2011 23:03, Marek Kozlowski wrote: > Great. But there is no information howa can I sat it up for > CellRendererText -- what property and to what value shoul I set: > `"markup" Write Marked up text to render. Default: None' > > Some widgets, for example: Label allow interpreting the

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

2011-09-08 Thread Marek Kozlowski
On 09/08/2011 10:43 PM, Paul Davis wrote: > On Thu, Sep 8, 2011 at 4:15 PM, Marek Kozlowski > wrote: >> :-) >> I've been reading documentation several times and I cannot find it :-( >> I call: >> >>cell = gtk.CellRendererText () >>cell.set_property ('cell-background', '#ee') >

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

2011-09-08 Thread Paul Davis
On Thu, Sep 8, 2011 at 4:15 PM, Marek Kozlowski wrote: > :-) > I've been reading documentation several times and I cannot find it :-( > I call: > >        cell = gtk.CellRendererText () >        cell.set_property ('cell-background', '#ee') >        cell.set_property ( > > I'd like all text

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

2011-09-08 Thread Marek Kozlowski
:-) I've been reading documentation several times and I cannot find it :-( I call: cell = gtk.CellRendererText () cell.set_property ('cell-background', '#ee') cell.set_property ( I'd like all text rendered using this CellRendererText object to be interpreted as an