-
Notifications
You must be signed in to change notification settings - Fork 707
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
symbols-images into pushbutton auto-py-to-exe #484
Comments
👋 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. |
I see you are referencing To fix this, you need to wrap file references with icon.addPixmap(QtGui.QPixmap(resource_path("enter.jpg")), QtGui.QIcon.Normal, QtGui.QIcon.Off) You can read more about this in the help post under "The one-file Resource Wrapper". |
Thank you very much for fast answer should i write this code into my code? i mentioned this in the class before setupUi def
and reference it in i receive an error - undefined name "resource_path" |
Yes, you need to add that function yourself. Nothing provides it for you and this tool doesn't add anything to your application. |
you the besttttt!!!!!!! |
Are you using the "The one-file Resource Wrapper" snippet that I provided? You haven't said anything about it? I believe those files are there but you're not looking for them in the right place. Simply running the exe and the images not appearing in the GUI is not enough proof to tell me they're not there.
What was your thorough testing?
In the help post I extensively link I state:
Lets do some checking where we actually look at the folder:
Step 6 should prove that your images are coming through. Just because we are bundling a different script doesn't mean that this will change which files are output (aside from Python script).
Originally posted by @brentvollebregt in #121 (comment)
Hi, i have the same problem.
i did the steps you mentioned above, the exe file not showing my images. but the images exist in the directory ("one directory" option)
if i run through Spyder it's work good
the python code written as following:
The text was updated successfully, but these errors were encountered: