James Henstridge wrote:
> For this sort of thing, first we would need a copy() method for GtkStyle
> objects, so you can copy the style before modifying it. It is quite easy
> to let the python programmer alter most of the attributes, except the ones
> that are stored as arrays in the style structure. These ones are
> currently exported as tuples of colours/pixmaps/whatever. You can't
> assign to a tuple, and changing over to lists doesn't solve the problem
> either since you can't set callbacks for when the list contents changes.
> Does anyone else have any good ideas for this (would a
> GtkStyle.set_fg(state, colour) method be acceptable?)
I have to agree that accessor functions are the way to go here.
The other option I see is to implement a new python type that acts like
a sequence or dictionary, but does the appropriate callbacks when an
item is changed. But I think this is probably more than we need.
--
Richard Fish Enhanced Software Technologies, Inc.
Software Developer 4014 E Broadway Rd Suite 405
[EMAIL PROTECTED] Phoenix, AZ 85040
(602) 470-1115 http://www.estinc.com
To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]