Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CTkTopLevel iconbitmap not working in windows #1511

Open
UserJoo9 opened this issue Apr 26, 2023 · 6 comments · May be fixed by #2095
Open

CTkTopLevel iconbitmap not working in windows #1511

UserJoo9 opened this issue Apr 26, 2023 · 6 comments · May be fixed by #2095

Comments

@UserJoo9
Copy link

image

@UserJoo9
Copy link
Author

UserJoo9 commented Apr 26, 2023

image

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

@Schnieker
Copy link

Schnieker commented May 9, 2023

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

@tanakanii
Copy link

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

@Schnieker
Copy link

No that's not working

@atroposfate
Copy link

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.

@EduardoWS
Copy link

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

@EduardoWS EduardoWS linked a pull request Nov 19, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants