This works just great.
Thank you!
El sáb, 06-03-2004 a las 12:20, Walter Anger escribió:
> On Sat, 6 Mar 2004 08:21:00 +0100
> Walter Anger <[EMAIL PROTECTED]> wrote:
>
> > On Sat, 06 Mar 2004 00:38:53 -0300
> > Phillip <[EMAIL PROTECTED]> wrote:
> >
> > have a look at the appended code. it is a "translation to python" of
> > one of the examples in the treeview-tutorial of Tim-Philipp Müller.
> >
> > renderer.set_property("foreground","red")
> >
> > does the trick.
>
> got the information, that the code only changes the textcolor of a whole
> column. it is some months ago, that i made it. it was thoughtless,
> sorry.
>
> a supplement, a simple code, how one can achieve colorization for every
> cell(row) is in the first attachment. (change 'background' to
> 'foreground' to colorize text instead of the cell)
>
> the second attachment is a more complex one, using
> gtk.TreeViewColumn.set_cell_data_func, again a trancoding from one of
> the examples in the treeview-tutorial.
>
> hth
>
>
> walter
>
>
> ______________________________________________________________________
> _______________________________________________
> pygtk mailing list [EMAIL PROTECTED]
> http://www.daa.com.au/mailman/listinfo/pygtk
> Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
_______________________________________________
pygtk mailing list [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/