CustomTkinter icon indicating copy to clipboard operation
CustomTkinter copied to clipboard

CTkTopLevel iconbitmap not working in windows

Open UserJoo9 opened this issue 1 year ago • 6 comments

image

UserJoo9 avatar Apr 26 '23 07:04 UserJoo9

image

i tried all this method and still icon not working and stucking in deault icon image

UserJoo9 avatar Apr 26 '23 07:04 UserJoo9

I deleated line 41 to 47 from ctk_toplevel.py and now it's working

Schnieker avatar May 09 '23 16:05 Schnieker

you could use iconbitmap() then insert the image as an .ico file

tanakanii avatar May 11 '23 08:05 tanakanii

No that's not working

Schnieker avatar May 11 '23 11:05 Schnieker

Just want to +1 this one as I have tried to use iconbitmap and I get the same issue. I can actually see the icon changing to my custom one and then changing back to the default very quickly after it opens. Most of the missing icons are coming from classes that are created using ctk.CTkTopLevel.

Standard message boxes are displaying the icon correctly.

I am able to change the icon using a method outside the init so the icon is working correctly.

I've set the icon to the default in the ctk.CTk class and then tired to run iconbitmap in all the classes init in various locations but still has the same effect.

atroposfate avatar Jul 04 '23 18:07 atroposfate

I managed to fix it here, I'll make a pull request

EduardoWS avatar Nov 19 '23 22:11 EduardoWS