How to replace the icon in a Tkinter app?

To change the icon you should use iconbitmap or wm_iconbitmap I’m under the impression that the file you wish to change it to must be an ico file.

import tkinter as tk

root = tk.Tk()
root.iconbitmap("myIcon.ico")

Leave a Comment