pygtk: transparent pixmaps
- From: Jachym Cepicky <jachym cepicky centrum cz>
- To: gtk-app-devel-list gnome org
- Subject: pygtk: transparent pixmaps
- Date: Wed, 7 Jun 2006 11:36:35 +0200
Hallo,
I try to script some app. using pygtk. One of the tasks is to draw some
data on the image background. I would like to use approach like follows:
pixbuf = gtk.gdk.pixbuf_new_from_file("tmp.ppm")
pixmap = gtk.gdk.Pixmap(widget.window, width, height)
for line in lines:
pixmap.draw_line(line[x], line[y]...)
drawingarea.window.draw_pixbuf(...,pixbuf,0,0,0,0,.....)
drawingarea.window.draw_drawable(..., pixmap, ....)
Result is, the background image (pixbuf) appears, but only shortly, than
it is overlaid by *black* (non-transparent) pixmap.
So my question: How to perform task like this with python?
Thank you very much for hints
Jachym
P.S.: yes, I read the archive, however I did not found satisfying answare,
which would be clear for me :-(
--
Jachym Cepicky
e-mail: jachym cepicky centrum cz
URL: http://les-ejk.cz
GPG: http://les-ejk.cz/gnupg_public_key/jachym_cepicky-gpg_public_key.asc
-----------------------------------------
OFFICE:
GDF-Hannover
Mengendamm 16d
30177 Hannover
Germany
e-mail: cepicky gdf-hannover de
URL: http://gdf-hannover.de
Tel.: +49 511-39088507
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]