No can load a image with gnome-python and canvas
Victor Roig
victor.roig at gmail.com
Sat Apr 14 17:41:48 EDT 2007
Code --> http://pastebin.ca/439954 <--
resume:
import gtk
import gnomecanvas
...
im = GdkImlib.Image("5b.png")
w = self.acanvas.root().add('GnomeCanvasImage', image=im, width=70,
height=105)
...
at execurion time:
NameError: global name 'GdkImlib' is not defined
and if I probe:
...
im = gnomecanvas.GdkImlib.Image("5b.png")
w = self.acanvas.root().add('GnomeCanvasImage', image=im, width=70,
height=105)
...
at execution time:
AttributeError: 'module' object has no attribute 'GdkImlib'
Perhaps the problem is that I use the 'python-gdk-imlib-1.2' and GdkImlib
is not defined at python2.4-gnome2 ????
thks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20070414/6e06773c/attachment.html>
More information about the Python-list
mailing list