Sep-01-2017, 12:03 PM
(May-15-2017, 12:25 PM)metulburr Wrote: What is the source for when the button is clicked?
Since the error is referring to resources....Does the button have an image in it and how are you handling the resources with your setup.py script? Have you tried the other methods as well pyinstaller/py2exe?
Here is my source code:
https://github.com/ppcmdgames/NilapatriRacer
The main file containing the code is 'NilapatriRacer.py'.
I found a tutorial here and did it as in the tutorial:
https://pythonprogramming.net/pygame-pyt...t-1-intro/
I did try py2exe and pyinstaller, but I couldn't make a working setup file. I found out this error is caused due to python not recognising the program as a package and it can be fixed by adding a file called '_init_.py', but I don't know where to add it.