mirror of
https://github.com/brentvollebregt/auto-py-to-exe.git
synced 2026-04-25 11:45:49 +03:00
[GH-ISSUE #409] Cannot add icon #329
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @akcoderr on GitHub (Jul 25, 2023).
Original GitHub issue: https://github.com/brentvollebregt/auto-py-to-exe/issues/409
Originally assigned to: @akcoderr on GitHub.
Traceback (most recent call last):
File "M.py", line 146, in
File "tkinter_init_.py", line 2136, in wm_iconbitmap
_tkinter.TclError: bitmap "matrix.ico" not defined
How to fix this issue?
@github-actions[bot] commented on GitHub (Jul 25, 2023):
👋 Hi, just a reminder that if you haven't read the help post yet, give it a read to see if your issue is covered in it and make sure to follow the debugging section.
Also please note, as stated in the README, if your issue is only associated with your application and not auto-py-to-exe itself, please do not create an issue in this repository - instead, comment on the help post, video or create a new discussion.
@brentvollebregt commented on GitHub (Jul 25, 2023):
Could you provide the full traceback? That doesn't look like something from auto-py-to-exe
@akcoderr commented on GitHub (Jul 25, 2023):
This is actual issue
M.py is that python file which i want to convert into exe
matrix.ico is that icon i want to add in my exe
please resolve this issue.
@brentvollebregt commented on GitHub (Jul 26, 2023):
Did you read the help post? Providing the stack trace from the result of following the debugging steps might offer more context.
Also can you please fill out the issue template you cleared - this will give me more info to help resolve your issue.
@akcoderr commented on GitHub (Jul 26, 2023):
Sir, thank you for asking and I am glad happy to tell you that the problem is fixed mentioned above.
I tell you the issue happened - The .ico file is not defined means the relative path of the .ico file is mentioned in the .py file.
We need to mention the absolute path of the .ico file in the .py file.
To fix the above issue, follow the steps :
ex - icon_path = r"C:\User\lenevo\Desktop\Project\smile.ico"
ex - root.iconbitmap(bitmap=icon_path)
That's all!
Use auto py to exe as usual and make sure use the icon option to add icon in the .py file and convert it.
It will definitely help.
Thank you.