On Tue, 2003-11-04 at 07:12, Ivan Hernandez wrote: > Hello. is there some way to make a pixmap grow and strech? > I have this code > pixmap, mask = gtk.gdk.pixmap_create_from_xpm(window.window, > None, "pepe.png") > image = gtk.Image() > image.set_from_pixmap(pixmap, mask) > image.show() > and i need the image to grow in front of the user (as vual effect like > MacOsX bar) > > someone know where to read about this? i have searched in the tutorial > and reference manuals (gtk, and gdk) without results
Do you have to do this with pixmaps? I would be tempted to use gdk-pixbuf to do the work, since you can also create pixbufs from xpms. Then the scale() and scale_simple() functions will create new pixbufs that are scaled appropriately. One concern: I am not sure how good the performance will be in this case. Anyway, have a look at the gdk-pixbuf documentation for details. Cheers, Malcolm _______________________________________________ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
