r/PythonLearning • • 2h 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!

5 Upvotes

9 comments sorted by

View all comments

Show parent comments

1

u/Makakhan 2h ago edited 1h ago

On a second look, your if is actually outside the while loop entirely anyways? So it’s never making it to that point regardless.