How to resize button after resizing pygame window?
问题 I have a menu (main_menu), that has a Button and I want this button to stay in the middle after I resize the window. The program does draw a new button in the middle of the window but the old button is still visible and I cant figure out why. I tried to fill the screen with the background color again and then draw a new button, but the old one was still visible... Any Ideas ? WINDOW_W , WINDOW_H = 1200, 800 SCREEN = pg.display.set_mode((WINDOW_W,WINDOW_H),pg.RESIZABLE) main_menu = Main_Menu