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

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 parts that matter most for us application developers,
> there's a split between:
> - the model (the part that holds the data you want to show
>   on screen as a list or tree) and;
> - the view (the part that actually draws the data from the
>   model on screen).
> After working with the various objects involved for some time
> (ListStore, TreeView, CellRenderers, etc), you'll soon start
> to recognize which object (or widget) belongs to what category.
>> What do you mean: >>the "columns" (markup, foreground, background)<<
>> ?
> Sometimes it helps to think of the "columns" of the model
> more like "fields" in a record in some database. If you
> do that, model "fields" cannot be confused with
> view "columns".
> That might make it a bit easier to wrap your head around this.
>> Let's take an example:
>> May I ask for corresponding, modified set_property() ?
> Sure. Look at the attached example. It's a slightly modified
> version of the example you've linked to above.

Thanks a lot!
A thought of CellRendererText().set_property() rather than
Yes, it IS really simple. Thank you very much for the clarification!

Best regards!

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]