im trying to design some sort of system of making it so a character slides across a screen when you hold a key.the problem i am having is i cannot get the pg.key.set_repeat() to work at all, i have googled everywhere and there is nothing useful in two full pages of google links. butts.my code is

This can be done with key.set_repeat, but it isn't usually the right tool for the job. The main problem with your code is that you are trying to put all the processing inside the event loop. The only things that should be in your event loop are things that pertain to processing events.

Thank you, and the way i write code at this point is to write it in simple complete innefficent way than to convert it to respectable oop format after i know what i am doing. This code worked thank you

I wasn't referring to OOP vs non-OOP in this case. set_repeat() just isn't appropriate for a lot of circumstances unless you want every key in your game to behave that way. Better to use pygame.key.get_pressed() usually coupled with a dictionary to get the effect in a more generalizable way.