On Thu, 3 May 2001, mallum wrote:

> I've been having this problem as well with a clist. Unfortunatly the solution given 
>here
> wont work for me as I only want to change individual row colors rather than
> all of them. Would it be possiblke to reverse individual row foreground and
> background colors - this would do for me ?


I'm sorry I missed the beginning of the thread, so this message might be
completely unrelated. If so please excuse me.
I don't know how to specifically reverse the colors of a row, but this is
how I change the background color a an individual row in a GtkCList

After the widget is realized, I allocate a new color: 

my_col=window.get_colormap().alloc(65535,51400,51400)

and then I use list.ser_background(row,my_col), with row being the row
number of the list. Since a GtkCTree is a GtkCList, this should work too?

Alexandre Fayolle
-- 
http://www.logilab.com 
Narval is the first software agent available as free software (GPL).
LOGILAB, Paris (France).

_______________________________________________
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk

Reply via email to