Python Tkinter Program To Set An Window Icon 4 February 2023 by zeroones.org 01. Example: import tkinter as tk root = tk.Tk() root.title('ZEROONES') root.geometry('640x480+200+200') root.iconbitmap('zeroones.ico') root.mainloop() Output: Simple ouput window.