Python Forum

Full Version: code to retrieve an image gave me an error
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Code:
from graphics import *
win = GraphWin("Hydro Jar", 1000, 1000)
img = Image(Point(0, 0), "C:\\Users\\M Williams\\Downloads\\robotfree.zip\\png\\Idle (1).png")
Error:
return self.img.width() AttributeError: 'Image' object has no attribute 'img'
Is that module capable of extracting images from compressed archives?
Just to be safe, try extracting the zip file, and change the path to match the extracted file.