I am able to set the general Icon for the executable, however, I am having issues compiling the code correctly so that it displays the icon file when I call it for new windows with tkinter (like help, about, etc.).
My code looks like this:
Window.iconbitmap(r'snake.ico')
I appreciate the help! Thank you.
I'll give you an example of how to do it:
from tkinter import Tk win = Tk() photo = PhotoImage(file = "Any image file") win.iconphoto(True, photo)
Let me know if it works.
2.1m questions
2.1m answers
60 comments
57.0k users