Hi David,
On Mon, Jul 10, 2000 at 06:17:03PM +0200, David N. Welton wrote:
> So, I am having some difficulties with styles.
Hmm, it seems that PyGTK in general has some problems with styles...
> What I want to do: change the color of a CList row.
Fine.
> >>> style.text = style.black
> Traceback (innermost last):
> File "<stdin>", line 1, in ?
> AttributeError: text
You can't do that because style.text is an array of the 5 different
colours for the 5 different widget states...
The example should work but I did not figure out how to generate a different
GdkColor object in python - GdkColor(r,g,b) does not seems to work, and while
gtk.py has this code:
# colour allocation
def colour_alloc(parent, red, green=None, blue=None):
print "colour_alloc deprecated. Use GdkColormap.alloc"
neither colour_allow nor GdkColormap.allow do work :(
Does this help?
Torsten
--
Torsten Landschoff Bluehorn@IRC <[EMAIL PROTECTED]>
Debian Developer and Quality Assurance Committee Member
PGP signature