'Error import image PIL For a phyton tkinter program. How to display images
When I write this code it work
self.logo=ImageTk.PhotoImage(file=r"C:\images\logo.png")
but I want to write it like this
self.logo=ImageTk.PhotoImage(file="images/logo.png")
I have already done pip install pillow
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|