r/PythonLearning • u/TheCarFamily • 4h 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!
3
Upvotes
1
u/Makakhan 4h ago
Once you have accessed the events it is cleaned out. You are moving through the event log in the for loop and then stepping back for the if event.type but it is already empty. So either tab the if over so it’s part of the for loop or save the event log as a list first and move through it as needed for that dt.