Skip to content
This repository has been archived by the owner on Feb 8, 2020. It is now read-only.

Only Runs from IDLE #1

Closed
matthew-e-brown opened this issue Nov 7, 2018 · 1 comment
Closed

Only Runs from IDLE #1

matthew-e-brown opened this issue Nov 7, 2018 · 1 comment

Comments

@matthew-e-brown
Copy link
Owner

I've just noticed this after not looking at this project for about two years... It seems that trying to trigger this program from the command line yields the error

Traceback (most recent call last):
  File "C:\Users\Matthew\[...]\pygame Keypress Game.py", line 151, in <module>
    imgBKGD = pygame.image.load("metal texture.png").convert()
pygame.error: Couldn't open metal texture.png

This should probably be fixed. It also gives me a chance to use GitHub's Issues page for the first time.

@matthew-e-brown
Copy link
Owner Author

It seems that using cd to navigate to the directory of pygame Keypress Game.py works properly after running the command in quotes:
python "pygame Keypress Game.py"
However, it still yields an error:
libpng warning: iCCP: known incorrect sRGB profile

Another interesting point is that it seems to automatically upscale. It was much larger than it normally is when run from IDLE. I could actually see it, despite being on a 4K screen.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant