Hi all I have a problem with adding a imagae as a GnomeCanvasItem I am not sure its possible, but from the docs a GnomeCanvasPixbuf should go. My CanvasRect below works perfect (the last arguments of the code is cut out for convenience).
http://developer.gnome.org/doc/API/2.0/libgnomecanvas/libgnomecanvas-gnomecanvaspixbuf.html The pixbuf2 seems to be alright and everything works except that this code doesnt add any image, I know that I should add a gpointer to the Group.add, but I cant do that. It complaints over to many arguments. Im new to gtk2 in general so Im not sure I am on the right path here. item=Group.add(gnome.canvas.CanvasRect,x1=10,x2=20,y1=30,y2=40...and so on) pixbuf2=gtk.gdk.pixbuf_new_from_file("business.png") item2 =Group.add(gnome.canvas.CanvasPixbuf) item.connect("event",item_event) item2.connect("event",item_event) //Peter ------------------------------------------------- bitrunner Peter Skogstr�m Andra L�nggatan 28 41327 Goteborg +46(0)708-460260 www.bitrunner.com _______________________________________________ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
