Hi, I've come across a bug with GtkColorButton (with 'use-alpha' turned on):
Say I click on the button and select a color on the color wheel and hit OK,
then print out the color components with:

  coltmp=self.colorbutton1.get_color()
  print coltmp.red, coltmp.green, coltmp.blue, self.colorbutton1.get_alpha()

I get (eg),

45168 4512 4512 65535

This is NOT the color selected!

if I now click on the button again, and click in the 'Colour Name' field 
(without changing
the value, just placing focus there) now I get 

45232 4626 4626 65535

which was the color selected.

The correct color is also chosen if that filed gets the focus momentarily via 
the keyboard.

Any ideas?

cheers,

Alexei



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

Reply via email to