Answers for "tkinter python change 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
1

how to set icon in tkinter

img = PhotoImage(file='compost_.jpg')
root.tk.call('wm', 'iconphoto', root._w, img)
Posted by: Guest on September-07-2021

Python Answers by Framework

Browse Popular Code Answers by Language