+ 1

HELP PLEASE, Syntax Error

I keep getting this syntax error, what does it mean and how do I fix it? SyntaxError: (Unicode error) ‘unicodeescape’ codec can’t decode bytes in position 2-3: truncated \UXXXXXXXX excape Code filename = PhotoImage(file = “image path”) Code is for Tkinter image and obviously image path is not apart of it.

20th Nov 2021, 5:02 PM
BeetJuice101
BeetJuice101 - avatar
1 ответ
+ 2
Repaired Code: filename = PhotoImage(file="path to image.png")
22nd Nov 2021, 8:22 AM
Sancho Godinho
Sancho Godinho - avatar