James Henstridge <[EMAIL PROTECTED]> writes:
> You can now modify the attributes of style objects in pygtk (well you will
> once I commit my changes to CVS and make a release). For the arrays like
> GtkStyle.fg, I decided to make a helper object class to handle setting of
> these attributes. This object is not quite as functional as the tuples I
> was using before. It only supports length, getitem and setitem sequence
> behaviour. If you use more sequence methods than these in your programs
> please tell me so I can add those features to the helper type.
>
> There is also a GtkStyle.copy() method that can be used to clone a style
> object. This is useful if you only want to change the style for one
> widget and not all (style = wid.get_style().copy(); do_something(style);
> wid.set_style(style))
great :-)
> Once again, I would like to say that I think using RC files is a better
> solution in just about every situation.
is there a way to get a style directly from the rc-file, e.g. for
using it with GtkCList.set_cell_style() ? Of course, an indirect way is
to create a widget, set a name, add it to a window, then retrieve it's
style and remove it again (I've done it like this, but it's not an
elegant solution).
cheers
Andreas
To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]