pseudocode --- if event.type == pygame.MOUSEBUTTONDOWN: if mouseRect(imageRect.bottomleft): action1() if mouseRect(imageRect.bottomright): action2()