-
Notifications
You must be signed in to change notification settings - Fork 445
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
Cannot override built-in flet icon in title bar when running application (Windows) -- no packaging #991
Comments
Desktop app icon can be customized on packaging phase only: https://flet.dev/docs/guides/python/packaging-desktop-app#customizing-package-icon |
@FeodorFitsner Can we turn this into a feature request? |
I also think that this would be valuable |
Hello there, I support this request as distributing through PyPI as wheel package isn't compatible with packaging using I need to look for workarounds for my app: sparkmicro/Ki-nTree#124 |
Moreover, the icon support appears to be only for Windows and MacOS? I get this in the PyInstaller output when running WARNING: Ignoring icon; supported only on Windows and macOS! |
To change the icon of your app without having to package, use |
@ndonkoHenri Awesome thanks for the update! |
Description
I haven't been able to find documentation or examples on how to override the built-in flet icon in the window title bar when running my python application. I've tried multiple methods from threads found online (1) and (2), including one where a maintainer described a method that seemed to work for them but no luck with either. I went thru the
flet
discussion boards as well and couldn't find any answers to this issue.To be clear, creating an
assets/icons
directory and adding my ownfavicon.png
did not work. I was still left with the default flet icon. Is there any easy way to override this for any time you run the application (without packaging)?Describe the results you received:
Describe the results you expected:
My own defined app icon located within my
assets
directory.Additional information you deem important (e.g. issue happens only occasionally):
Should work running app via command line or IDE.
Flet version (
pip show flet
):Operating system:
Windows 11 Home
Additional environment details:
The text was updated successfully, but these errors were encountered: