Hello people,
I have been trying to use different colors in a GtkText widget.
First of all, I can not find a GdkColor class anywhere in the
bindings. Isn't it implemented, or am I simply blind?
I have also tried with an rc file like this:
style "text"
{
fg[NORMAL] = { 0.0, 0.0, 0.0 }
fg[PRELIGHT] = { 0.0, 0.0, 1.0 }
base[NORMAL] = { 0.8, 0.8, 0.8 }
font = "-adobe-couriergr-medium-r-normal--12-120-75-75-m-70-iso8859-7"
}
and then the following code:
output = new(GtkText, editable=FALSE)
style = output.get_style()
BLUE = style.fg[STATE_PRELIGHT]
output.insert(None, BLUE, None, buff)
(There are much more lines between, I'm just mentioning the ones that
seem to matter). Unfortunately that does not work either, the text
(buff) comes up black just like the text entered before with insert_defaults.
What's even more weird, is that if I use BLUE as the third value in
output.insert(), the buffer is shown up in _black_ background.
I could not find something related to this in the list archives either.
Any help would be greatly appreciated! I am just starting with PyGtk so
this might be something really trivial, bear with me if this is the case...
--
fsck your brains
-
To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]