I know everyone has gone over this before but I cannot get it to work.
I'm using glade to layout most of the GUI and am trying to set the
background color of a button after the ui is displayed. I have this
code:
color = wid.get_colormap().alloc('green')
s = wid.get_style().copy()
for i in range(5):
s.fg[i] = color
s.bg[i] = color
s.base[i] = color
wid.set_style(s)
If the widget is the label child of the button the the text color will
change, if the widget is the button itself, nothing happens.
If I hide() and show() the widget then I see the color flash quickly
but it returns to the previous color.
Any help would be greatly appreciated.
--
Steve McClure 430 10th St NW
Racemi Suite N-210
http://www.racemi.com Atlanta, GA 30318
[EMAIL PROTECTED] voice/fax: 404-892-5850
_______________________________________________
pygtk mailing list [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk