r/pythonhelp • • Mar 27 '19

Python problem with tkinter

I have a problem with my python code, i can't upload an image with the Tkinter module :full code

I try to put an image in the window (dice.ico) in the middle but i get error at line 3000+ when my code is only 18 line

Sorry for my bad English i'm Albanian and new to python

2 Upvotes

1 comment sorted by

View all comments

2

u/[deleted] Apr 01 '19

You must provide PhotoImage() with the name of an image, not the name of an .ico

Acceptable file types are .gif, .pgm, or .ppm