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

why my app icon display white background? but the other icon is work well #1501

Open
brightAI2021 opened this issue May 26, 2022 · 1 comment
Labels

Comments

@brightAI2021
Copy link

brightAI2021 commented May 26, 2022

I set up two icos file in setup.py file, Detail as below code fragment

executables = [Executable("schedule_job.py",icon="pdf.ico", base=base, target_name="to-pdf"),
Executable("start.py",icon="app.ico", base=base, target_name="e-signature") ]

setup(
name="e-signature",
version="0.2",
description="e-signautre v0.2",
options={
"build_exe": build_exe_options,
},
executables=executables,
)

my question is why the icon display white background? After I finishend the build job on my windows PC, One ico displays normal with schedule_job.py,But the other one dispaly white background,when I run the application the icon is still white background,so I replace the icon with the normal icon,but it still not work well .

@marcelotduarte
Copy link
Owner

I think the problem may have to do with transparency.
Every icon in the executable follows the windows standards, so read this document:
https://docs.microsoft.com/en-us/windows/win32/uxguide/vis-icons

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants