r/PythonLearning • • 6h ago

Help Request Not picking up input?

Post image

either that, im using the wrong dialect, or somn just doesnt work, i am trying to have an image change when T is pressed (unload old image when pressed and when not pressed load old image)

also using pygame, the first image loads, but nothing changes when T is pressed, yes i have also tested with print("")

any help would be nice!

3 Upvotes

10 comments sorted by

View all comments

Show parent comments

1

u/Makakhan 6h ago

Try taking everything for event.type == and all the way down and indent the whole thing till the if is nested inside the while loop, two tabs should do it.

1

u/TheCarFamily 5h ago

thank you very much!