icône tkinter
import tkinter as tk
root = tk.Tk()
root.iconbitmap("myIcon.ico")
George_agg
import tkinter as tk
root = tk.Tk()
root.iconbitmap("myIcon.ico")
import tkinter as tk
root = tk.Tk()
root.title('Tkinter Window Demo')
root.geometry('300x200+50+50')
root.resizable(False, False)
root.iconbitmap('./assets/pythontutorial.ico')
root.mainloop()
Code language: PHP (php)
root.iconbitmap(r'C:\Users\Userid\ICON.ico')
import tkinter as tk
root = tk.Tk()
root.tk.call('wm', 'iconphoto', root._w, tk.PhotoImage(file='/path/to/ico/icon.png')
root.mainloop()