new with pygame. My button doesnt work. why? [duplicate]
问题 This question already has answers here : How do I detect if the mouse is hovering over a button? PyGame button class is not displaying the text or changing colour on hover (1 answer) How to detect when a rectangular object, image or sprite is clicked (1 answer) Closed 2 months ago . Ignore AmountOfPlayers() function. Im new with pygame and my button doesn't do anything. why? How can I improve my code with pygame? while True: pygame.init() size=(1440,810) screen = pygame.display.set_mode(size)