Ejemplo n.º 1
0
    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
Ejemplo n.º 2
0
 def __init__(self):
     Label.__init__(self)
     self.active = False