On 1 Jul 2002, Graham Ashton wrote:

> http://www.moeraki.com/pygtktutorial/ch-settingwidgetattributes.html#WIDGET_STYLES

Aaaa.. I have to apply it to the label! I must say this thing really 
sucks.

1. I have to add event_box

2. I have to change color in 3!!! places. Much too much coding for such
a simple thing.

No surprise the whole GNOME is so bloated and slow, much slower than good 
old fvwm2.

# Set background color to green
stylel = label.get_style().copy()
stylel.fg[gtk.STATE_NORMAL] = label.get_colormap().alloc(65000,0,0)
label.set_style(stylel)
label.show()

# Set background color to green
stylee = event_box.get_style().copy()
stylee.bg[gtk.STATE_NORMAL] = event_box.get_colormap().alloc(0,0,32000)
event_box.set_style(stylee)
frame.show()

# Set background color to green
stylef = frame.get_style().copy()
stylef.bg[gtk.STATE_NORMAL] = frame.get_colormap().alloc(0,0,32000)
frame.set_style(stylef)


Thanks a lot for help!

Best Regard,

Jacek


_______________________________________________
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to