def update(self): Label.update(self) if pygame.mouse.get_pressed() == (1, 0, 0): if self.rect.collidepoint(pygame.mouse.get_pos()): self.active = True else: self.active = False
def __init__(self): Label.__init__(self) self.active = False