flet icon indicating copy to clipboard operation
flet copied to clipboard

Ability to set application icon in both titlebar and taskbar

Open theAbdoSabbagh opened this issue 1 year ago • 1 comments

Please Describe The Problem To Be Solved Right now, it is only possible to set the icon of the application (if its not web) during the building process. I feel like if we have the option to change it even before building it would be more efficient because wed be able to see how the icon looks even before building the application to exe

(Optional): Suggest A Solution so idk how to do implement that but I guess it could be smth like:

page.set_icon(icon_path: str)

theAbdoSabbagh avatar Jun 09 '24 15:06 theAbdoSabbagh

If you are a windows user, give page.window.icon ="path/to/image" a try.

ndonkoHenri avatar Jun 21 '24 01:06 ndonkoHenri

If you are a windows user, give page.window.icon ="path/to/image" a try.

doesnt work, with both png and jpg

theAbdoSabbagh avatar Jul 09 '24 18:07 theAbdoSabbagh

doesnt work, with both png and jpg

you have to use image with .ico extension

kacper-the-programmer avatar Jul 10 '24 09:07 kacper-the-programmer

@ndonkoHenri I found an bug with page.window.icon, absolute path to the icon has to be provide, e.g. instead of page.window.icon = "assets/icon.ico" you have to use page.window.icon = "C:/Users/<user>/<path to project folder>/assets/icon.ico"

kacper-the-programmer avatar Jul 14 '24 13:07 kacper-the-programmer

Ok. It will be addressed.

ndonkoHenri avatar Jul 14 '24 15:07 ndonkoHenri

@Kacper-OS, will you mind giving the latest prerelease a try?: https://pypi.org/project/flet/#history

ndonkoHenri avatar Aug 18 '24 18:08 ndonkoHenri

@Kacper-OS, will you mind giving the latest prerelease a try?: https://pypi.org/project/flet/#history

sorry but it looks like it still doesn't work

kacper-the-programmer avatar Aug 18 '24 18:08 kacper-the-programmer

I have the same issue, it still doens't work

Edwardd02 avatar May 30 '25 08:05 Edwardd02