[pygtk] gtk_image_new_from_file in pygtk?
Jorge Vargas
jorge.vargas at gmail.com
Sun Nov 5 21:57:01 WST 2006
hi I'm following
http://www.gnome.org/projects/ORBit2/appletstutorial.html#AEN72
since
http://www.pygtk.org/articles/applets_arturogf/index.html#AEN55
is a bit outdated and it's more oriented to the app in question then a
general howto
I'm trying to look for a way to translate this
image = gtk_image_new_from_file ("/usr/share/pixmaps/mypicture.png");
now on both api's for the GTKImage it says different.
http://developer.gimp.org/api/2.0/gtk/GtkImage.html
http://www.pygtk.org/docs/pygtk/class-gtkimage.html
according to the pygtk api there is no equivalent of the above method
and I have to do something like.
image = gtk.Image()
image.set_from_file('/usr/share/pixmaps/bug-buddy.png')
is this the correct approach?
More information about the pygtk
mailing list