Can I set application icon using clean Python 3?
I have .ico file in same directory and want to add into application.
(Without tkinter)
Can I set application icon using clean Python 3? I have .ico file in
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Short answer: No, you can not. The application icon is set in completely different ways in different environments. Usually it is a setting on the shortcut.
Longer answer: It also depends on what you mean with “Application Icon”.
If you mean the icon for the menu entry in the Applcartions/Start/Whatever menu, then you can probably set it with Python, when you are creating the shortcut in whatever menu system you are using, but it will be specific for your system and not portable.
There may be some library out there to help you create installers for different systems that can help you, but it’s definitely no longer “clean Python 3” in any meaningful sense. 🙂