On Mon, 17 Nov 2003 12:14:28 -0200 Christian Robottom Reis <[EMAIL PROTECTED]> wrote:
> On Fri, Nov 14, 2003 at 02:45:28PM +0100, Chris Rouch wrote: > > Thanks - that works well with a gtk.Window, but not it seems with > > other widgets. For example if I change your code to that below, I > > don't get the pixmap shown. Similarly for tables and buttons. What > > am I missing? > > A Label is a bad choice and won't work; I'd suggest a DrawingArea or > an Eventbox. The reason is discussed in > > http://www.async.com.br/faq/pygtk/index.py?req=show&file=faq03.003.htp > > -- the Label has no X window of its own. > Bingo! Using an event box as a wrapper I can set the background of labels and tables. But this doesn't seem to work for a TreeView. Is it possible to set the background pixmap of a TreeView or ListView? I was surprised to need the EventBox for a table - I thought it would have a window associated with it. But without the EventBox, the background pixmap will display and then immediately revert to grey. With the EventBox it remains visible. BTW I have no practical use for this, I'm just curious. Regards, Chris _______________________________________________ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
