add an icon to tkinter code example
Example 1: how to add icon to tkinter window
root.iconbitmap('icon.ico')
Example 2: tkinter app icon
import tkinter as tk
root = tk.Tk()
root.iconbitmap("myIcon.ico")
root.iconbitmap('icon.ico')
import tkinter as tk
root = tk.Tk()
root.iconbitmap("myIcon.ico")