Skip to content

Set application icon issue - Blurry using iconbitmap #2790

@popest

Description

@popest

Hi, I have following issue:

I set app icon using this:

self.iconbitmap(icon_path)

It works fine except the icon in the taskbar is blurry. Icon file has multiple icons (16,24,32,48 and 256px). It looks like this issue is only on Windows 11. Running the app in Windows 10 looks ok.

For some reason using this does not work in combination with customTkinter.:

small_icon_path = "icon_16px.png"
large_icon_path = "icon_32px.png"
self.small_icon = tk.PhotoImage(file=small_icon_path)
self.large_icon = tk.PhotoImage(file=large_icon_path)
self.iconphoto(True, self.large_icon, self.small_icon)

icon remains still the same (original customtkinter icon).

In simple Tkinter app, iconphoto works fine and nothing is blurry.

Thank you

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions