[pygtk] Adding a bg image to a button
Sandro Dentella
sandro at e-den.it
Sun May 14 18:19:33 WST 2006
Hi all,
I want to add an bg image to a button. The example I found on pygtk FAQ
for gtk.Window works (almost) but I can't modify it for a button. (I think
I really fail a thourought understanding of the mechanism of
drawing/window/realize... )
I tried with b1.window.set_back_pixmap(pixmap, False) and alternatively
w/
gc = b1.window.new_gc()
b1.window.set_back_pixmap(pixmap, False)
gc.set_tile(pixmap)
But I see nothing... am I on the wrong way Or I just missed something?
Thanks for any possible hints or pointers
sandro
*:-)
--
Sandro Dentella *:-)
e-mail: sandro a e-den.it
http://www.tksql.org TkSQL Home page - My GPL work
More information about the pygtk
mailing list