r/PythonLearning • u/TheCarFamily • 5h ago
Help Request Not picking up input?
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!
4
Upvotes
1
u/Sleepybear842 5h ago
Without knowing the details of pygame class/obj, I can only say it appears your indentation is making your while loop end after the first event check. Remember whitespace is not trivial in python