How To Load A Png Image With Python 2.7.8 |anaconda 2.1.0 (32-bit)?
I download my Python 2.7 with Anaconda. I'm using windows 7. I tried following: from Tkinter import Tk, Frame, Canvas import ImageTk t = Tk() t.title('Transparency') frame = Fram
Solution 1:
ImageTk
is defined in the package PIL
which you should install with:
pip install Pillow
Pillow
is a port of PIL
that is accessible through pip
. Now import PIL
like so:
fromPILimportImageTk
Post a Comment for "How To Load A Png Image With Python 2.7.8 |anaconda 2.1.0 (32-bit)?"