def __init__(self, highlight, image, rect): super().__init__(rect, image) self.highlight = highlight self.normal_image = image self.messages.append(pygame.MOUSEMOTION) self.inside = False