[pygtk] drawing refresh?
Chris Cole
ccole2 at mix.wvu.edu
Mon Dec 10 02:57:55 WST 2007
Hey all,
I think I have a pretty simple question. I have a widget that has an
associated gtk.gdk.Window, and i would like to use the draw_pixbuf()
method on it to draw a permanent background. The problem is, my
background shows up for a split second using this code:
pxbuf = gtk.gdk.pixbuf_new_from_file('foo.bmp')
widget.window.draw_pixbuf(None, pxbuf, 0, 0, 100, 100)
but shortly after disappears...How do I get it to stick around?
Thanks,
Chris
More information about the pygtk
mailing list