on
laravel
- Get link
- Other Apps
window.iconbitmap()
now we will see how to write code for change the tkinter
icon.
firstly you can see my icon file location where are stored
my icon file.
my icon file name is vi.ico as you can see in the above image
now we will see full code of change icon of window.
from tkinter import *
window = Tk()
window.title("Window icon")
window.geometry("350x200")
iconPath="D:/icon/vi.ico"
window.iconbitmap(iconPath)
window.mainloop()OUTPUT
Comments
Post a Comment
If you any doubt of any topic then you can comment me.