skip to Main Content

Visual Studio Code – I keep getting the "couldn't recognize data in image file" error in my python project

I am attepmting to add an icon to my TK window but i keep getting an error message that says: Traceback (most recent call last): File "C:UsersrogersourcereposPythonApplicationPythonApplication.py", line 7, in <module> windowIcon = tk.PhotoImage(file="C:/Users/roger/Downloads/a.png"); File "C:UsersrogerAppDataLocalProgramsPythonPython39libtkinter__init__.py", line 4064, in __init__…

VIEW QUESTION
Back To Top
Search