Closed adamtcdev closed 2 months ago
@adamtcdev Try this method:
For root window:
import os
from PIL import ImageTk
...
self.iconpath = ImageTk.PhotoImage(file='logo.png')
self.wm_iconbitmap()
self.iconphoto(False, self.iconpath)
For toplevels:
self.wm_iconbitmap()
self.after(300, lambda: self.iconphoto(False, self.iconpath))
Thanks.
I am gonna close this issue.
code:
output: