Problem with Tkinter.PhotoImage

Kevin Walzer kw at codebykevin.com
Thu Jan 10 10:42:21 EST 2008


Cédric Lucantis wrote:
> Hi,
> 
> I can only load gif images with Tkinter.PhotoImage and none with BitmapImage. 
> I tried png, jpg, bmp and xpm and always got this errors :
> 

That's because Tk only supports the gif format natively. You need to 
install an additional photo library to support additional images (Tk has 
an Img extension, and Python Image Library is also very good).

-- 
Kevin Walzer
Code by Kevin
http://www.codebykevin.com



More information about the Python-list mailing list