#๐ homework coding project
39 messages ยท Page 1 of 1 (latest)
@desert oracle
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.
I don't use tkinter very much, but it seems like you have your images in a images folder, and your code is running outside of that folder
yeah I'm not sure where to put that folder
thus your code is looking for the images outside of the images folder, not inside of it
or how to redirect it to the images folder
try file="images/player.png"
without giving it folder name it'd look at the same folder your .py is
wait a minute... I don't see a player.png in there
yeah I haven't added it yet
I tried with different images earlier
but it was not reading them
that's why I have those images already there
looks like this in the files
I think the folder is in the same directory no?
your code is still looking for the images directly inside of the .venv folder, not in the .venv/images subfolder
I think it's looking at folder outside that. The base directory here would be javaproject/
thats one way you couldgo about it
you don't usually put your code inside .venv
it is lol
yea when you do "player.png" it would by default looking at current working directory, which is javaproject/player.png in this case
!close
This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, 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.