I believe that it's the case if you put da in a Window and show() it.
John
Art Haas wrote:
On Thu, Jun 19, 2003 at 05:50:45PM -0700, John Finlay wrote:
Hi Art,
I don't think you should get the same gtk.gdk.Color object returned from:
da.get_style().bg[gtk.STATE_NORMAL]
even twice in a row. A new gtk.gdk.Color object is created each time. I assume that the rgb values are the same though.
That does not seem to be the case ...
$ python
65535import gtk
da = gtk.DrawingArea()
color = gtk.gdk.color_parse('#ffffff')
color.red
65535color.green
65535color.blue
56540da.modify_bg(gtk.STATE_NORMAL, color)
stcol = da.get_style().bg[gtk.STATE_NORMAL]
stcol.red
56026stcol.green
54741stcol.blue
(1, 99, 16)gtk.pygtk_version
Art
_______________________________________________ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
