how to set tkinter window icon code example
Example 1: how to add icon to tkinter window
root.iconbitmap('icon.ico')
Example 2: how to change windows icon tkinter
from tkinter import *
root = Tk()
photo = PhotoImage(file = "image.png")
root.iconphoto(False, photo)