Morning-
With python 2.7.5, pygtk 2.24, gtk 2.24:
The following snippet successfully sets the line_width but not the foreground 
color, and I can't figure-out why. The color human-name and the result returned 
by gtk.gdk.color_parse are correct. Clues? Thanks.

self.gc.set_line_attributes(myclass.board_line_width, gtk.gdk.LINE_SOLID,
                                      gtk.gdk.CAP_ROUND, gtk.gdk.JOIN_BEVEL)
fg = gtk.gdk.color_parse(myclass.board_foreground)
self.gc.set_foreground(fg)
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to