[...]
> 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?

-- 
+- David Given ---------------McQ-+ "Those who do not understand Unix are
|  Work: [EMAIL PROTECTED]         | forced to reinvent it, poorly." --- Henry
|  Play: [EMAIL PROTECTED]         | Spencer                                    
+- http://wired.st-and.ac.uk/~dg -+ 


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

Reply via email to