tkinter.iconbitmap

Why isn't .ico file defined when setting window's icon?

Why isn't .ico file defined when setting window's icon? Question: When I tried to change the window icon in the top left corner from the ugly red “TK” to my own favicon using the code below, Python threw an error: from tkinter import * root = Tk() #some buttons, widgets, a lot of stuff root.iconbitmap(‘favicon.ico’) …

Total answers: 14