Re: pygtk: gtk.CellRendererText().set_property(...) and pango markup (HTML)
- To: Paul Davis <paul@xxxxxxxxxxxxxxxxxxxxx>
- Subject: Re: pygtk: gtk.CellRendererText().set_property(...) and pango markup (HTML)
- From: Marek Kozlowski <kozlowsm@xxxxxxxxxxxxxx>
- Date: Thu, 08 Sep 2011 23:03:50 +0200
- Cc: gtk-list@xxxxxxxxx
- In-reply-to: <CAFa_cKk+QscBEHTv57TOSdxkmdez43w1mnHfkn=QRxLAApjWew@mail.gmail.com>
- References: <4E69224B.4000907@mini.pw.edu.pl> <CAFa_cKk+QscBEHTv57TOSdxkmdez43w1mnHfkn=QRxLAApjWew@mail.gmail.com>
- User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:6.0.2) Gecko/20110906 Thunderbird/6.0.2
On 09/08/2011 10:43 PM, Paul Davis wrote:
> On Thu, Sep 8, 2011 at 4:15 PM, Marek Kozlowski <kozlowsm@xxxxxxxxxxxxxx> wrote:
>> :-)
>> I've been reading documentation several times and I cannot find it :-(
>> I call:
>>
>> cell = gtk.CellRendererText ()
>> cell.set_property ('cell-background', '#eeeeee')
>> cell.set_property (....
>>
>> I'd like all text rendered using this CellRendererText object to be
>> interpreted as an HTML, that is all <b>, <i> etc to change style of the
>> text between such tags. What property does it? 'markup' is described
>> quite misteruoisly :-(
>
> not at all.
>
> http://www.pygtk.org/docs/pygtk/pango-markup-language.html
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 text do display
as a HTML via gtk.Label.set_markup (). I mean: there are HTML tags in
the _content_.
I expect some cell content to contain <b>, <i> etc tags. I can't force
CellRendererText to interpret them :-(
Best regards,
Marek
_______________________________________________
gtk-list mailing list
gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list
[GIMP Users]
[Yosemite News]
[Yosemite Photos]
[Gimp's Home]
[Steve's Art]