Mar-20-2020, 02:16 AM
Hi,
I've been trying to develop a game w/ Pygame.
One of the items in my game is a "Goodbye" button.
This is a png file.
The Goodbye image will be placed at a certain location.
Let's call it (x1, y1).
How do I make it into a button which will call "quit()"
if the user clicks on the goodbye image/button?
Thanks.
I've been trying to develop a game w/ Pygame.
One of the items in my game is a "Goodbye" button.
This is a png file.
The Goodbye image will be placed at a certain location.
Let's call it (x1, y1).
How do I make it into a button which will call "quit()"
if the user clicks on the goodbye image/button?
Thanks.