On Mon, 22 Jan 2001 [EMAIL PROTECTED] wrote:
> [...]
> > Colour values on X are 16 bit values. So your colours would probably all
> > have been rounded to values very close to 0, which would explain the
> > black.
>
> I tried that. No change.
>
> Incidentally, when changing the colours in the style, I wasn't getting black;
> it was just ignoring the colour settings and I was getting the default. I can
> change the colour using node_set_fg/bg --- but only when not using a style. If
> I use any style, it overrides the manual colours (with the defaults). So I can
> set the font, or the colour, but not both.
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)
James.
_______________________________________________
pygtk mailing list [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk