#๐ can anyone help me change the icon to my exe
44 messages ยท Page 1 of 1 (latest)
@wispy brook
Remember to:
- Ask your Python question, not if you can ask or if there's an expert who can help.
- Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
- Explain what you expect to happen and what actually happens.
:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.
Isn't that just a generic Python file? The file icon is controlled by the program that will execute it.
(You can change it locally; but nobody will see the changes you make.)
Right-- that's just a .py file right?
ye
Ive done it before but I cant remember how
You cannot do this for other people.
It's a bit convoluted and requires registry modification.
In HKCR there is a list of filetypes, e.g., .py.
This points to a PROGID as the (DEFAULT) value.
That PROGID can be referenced in HKEY_CLASSES_ROOT\{PROGID}\DefaultIcon
The value of DefaultIcon's (Default) key is a path to the icon file. You can modify this to the path of your file and restart Explorer.
that looks like alot of work im ngl
If you want to package it as an executable instead, sure.
You have a .py file.
It may or may not be compatible as a PyInstaller executable however.
What's your program do? I might be able to tell you if it'll work.
like pycharm?
Nah, what does kb.py do?
GUI's tend to have some issues with PyInstaller.
It has to do with asset bundling, which transparently, I don't know enough about to assist you with.
Could always just open source it. If it's useful, people can download and run it that way. If you include good instructions, people tend to figure it out.
This help channel has been closed. Feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.