Hi again :)

I have a slight problem with the code displayed there : it doesn't display my 
background :p The weird thig is that it recognizes it because the window is 
resized at the correct size. Here's my code, any ideas why it doesn't work ?

                window = gtk.Window()
                path = "./data/graphics/newBackground.png"
                backgroundPixbuf = gtk.gdk.pixbuf_new_from_file(path)
                backgroundPixmap = backgroundPixbuf.render_pixmap_and_mask()[0]
                width, height = backgroundPixmap.get_size()
                del backgroundPixbuf
                window.set_app_paintable(True)
                window.resize(width, height)
                window.realize()
                window.window.set_back_pixmap(backgroundPixmap, False)
                del backgroundPixmap

Thanks,

Firas

On Monday 30 April 2007 22:25:14 Firas Kraiem wrote:
> I think that's what I was looking for, I guess I misunderstoo how the Fixed
> container behaves. Thanks !
>
> On Monday 30 April 2007 21:44:30 Gian Mario Tagliaretti wrote:
> > 2007/4/30, Firas Kraiem <[EMAIL PROTECTED]>:
> > > Basically, what I want to achieve is something similar to a "Fixed"
> > > container but with an image as background instead of solid color.
> >
> > you can set an image as background:
> > http://www.async.com.br/faq/pygtk/index.py?req=show&file=faq08.013.htp
> >
> > or I misunderstood?
> >
> > cheers



-- 
()  ascii ribbon campaign - against html e-mail 
/\  www.asciiribbon.org   - against proprietary attachments

-- 
()  ascii ribbon campaign - against html e-mail 
/\  www.asciiribbon.org   - against proprietary attachments

Attachment: signature.asc
Description: This is a digitally signed message part.

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

Reply via email to