[pygtk] Table colour

Gustavo J. A. M. Carneiro gjc at inescporto.pt
Sat Feb 21 11:18:34 WST 2004


A Sáb, 2004-02-21 às 05:55, Russell Shaw escreveu:
> Hi,
> How do you change a table background colour?
> In a class, i tried:
> 
>    self.table=gtk.Table(5,5)
>    color=gtk.gdk.color_parse('white')
>    self.table.modify_bg(gtk.STATE_NORMAL,color)

  Hi.  I think that gtk.Table is one of those window-less widgets.  Try
putting it inside a gtk.EventBox and changing the color of the eventbox
instead.  I think there's a FAQ item regarding this.
  Regards.

> _______________________________________________
> pygtk mailing list   pygtk at daa.com.au
> http://www.daa.com.au/mailman/listinfo/pygtk
> Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
-- 
Gustavo J. A. M. Carneiro
<gjc at inescporto.pt> <gustavo at users.sourceforge.net>



More information about the pygtk mailing list