Matt> I believe the 'class' part of the rc style refers to the GtkObject
Matt> name of the widget in question. Thus you have to call it a
Matt> GtkButton. Python class inheritance doesn't change the GtkObject
Matt> name of a widget.
Okay, I'm understanding this a little bit better. If I modify my code to
gtk.rc_parse_string('''
style "buttonbg"
{
bg[NORMAL] = { 0.85, 0.50, 0.50 }
}
widget "*.quit" style "buttonbg"
''')
...
close = Button("quit")
close.set_property("name", "quit")
I do get a reddish button. So the trick appears to be that the application
programmer must name widgets intelligently so users can refer to them.
--
Skip Montanaro ([EMAIL PROTECTED])
http://www.mojam.com/
http://www.musi-cal.com/
_______________________________________________
pygtk mailing list [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk