code: def handleEvent(self, eventObj):
          
          if not self.visible:
              return
          if not self.isEnabled:
              return False
  
          if eventObj.type != MOUSEBUTTONDOWN:
              # The animation only cares about a mouse down event
              return False
  
          eventPointInAnimationRect = self.rect.collidepoint(eventObj.pos)
          if not eventPointInAnimationRect:  # clicked outside of animation
              return False
  
          if self.state == PygAnimation.PLAYING:  # if playing, ignore the click
              return False
  
          return True
docs: This method should be called every time through the main loop.
  
          Returns:
              False - if no event happens.
              True - if the user clicks the animation to start it playing.