Answers for "add icon to windows tkinter"

3

how to add icon to tkinter window

root.iconbitmap('icon.ico')
Posted by: Guest on November-05-2020
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