How to change icon #1099
Replies: 6 comments 17 replies
-
Hello, I had the same issue, I had this "fix" for it:
I hope someone will provide a better solution |
Beta Was this translation helpful? Give feedback.
-
If you use the latest version there should be no problem. |
Beta Was this translation helpful? Give feedback.
-
@IAminos Thanks a lot, that was the only method that worked! |
Beta Was this translation helpful? Give feedback.
-
This issue still effects CTkToplevel, using the suggestion from IAminos solved my issue. thanks! |
Beta Was this translation helpful? Give feedback.
-
Has anyone gotten this to cooperate on macOS? I made sure the latest version of CustomTkinter is running. Using the regular |
Beta Was this translation helpful? Give feedback.
-
Try this method:
import os
from PIL import ImageTk
...
self.iconpath = ImageTk.PhotoImage(file=os.path.join("assets","logo.png"))
self.wm_iconbitmap()
self.iconphoto(False, self.iconpath)
self.wm_iconbitmap()
self.after(300, lambda: self.iconphoto(False, self.iconpath)) |
Beta Was this translation helpful? Give feedback.
-
Hey Tom, hello. How can i change the default window icon? I tried a lot of regular tkinter methods
unsuccessfully. Thanks!
Beta Was this translation helpful? Give feedback.
All reactions