So I'm trying to open an image using PIL, resize it, and put it on a tkinter canvas. I've tried importing TkImage:
import TkImage
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named 'TkImage'
from PIL import TkImage
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: cannot import name 'TkImage'
from PIL.Image import TkImage
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: cannot import name 'TkImage'
from PIL.Image import Image
i = Image.TkImage()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: type object 'Image' has no attribute 'TkImage'
All these raise exceptions. Could someone please help?