Oct-18-2019, 11:00 AM
You can use this code to check if your .ico file is valid.
This will run a file selector so you can manually choose
any .ico file from anywhere and it will use that icon.
This will run a file selector so you can manually choose
any .ico file from anywhere and it will use that icon.
from tkinter import filedialog, Tk root = Tk() #Open file dialog file_selected = filedialog.askopenfilename(filetypes=[('ico files','*.ico')]) root.minsize(300, 200) root.title("My Window") root.iconbitmap(file_selected) root.mainloop()