Answers for "tkinter change window icon"

2

how to change windows icon tkinter

from tkinter import *

root = Tk()
photo = PhotoImage(file = "image.png")
root.iconphoto(False, photo)
Posted by: Guest on April-27-2021
0

root.iconbitmap

import tkinter as tk
root = tk.Tk()

root.tk.call('wm', 'iconphoto', root._w, tk.PhotoImage(file='/path/to/ico/icon.png')

root.mainloop()
Posted by: Guest on September-25-2020

Python Answers by Framework

Browse Popular Code Answers by Language