On Thu, 25 Jan 2001 [EMAIL PROTECTED] wrote:

> [...]
> > You should be able to set the colour with a style without
> > problem.  Something like this:
> > 
> >   style = ctree.get_style().copy()
> >   style.fg[STATE_NORMAL] = ctree.get_colormap().alloc("red")
> >   ctree.node_set_style(node, style)
> 
> Aha. I was just doing:
> 
> style.fg[STATE_NORMAL] = gtk.GdkColor(255, 0, 0)
> 
> I can't find anywhere that the colourmap object is declared, so I can't find
> out what methods it supports --- is there a way of looking-up-and-allocating-if-
> not-found an RGB triplet?

Those objects are not defined in python files -- rather they are defined
in the C extension.

There is a description of the methods and attributes in the description.py
file.

James.


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

Reply via email to