Пример #1
0
    def display(cls) -> None:
        """Affichage du menu"""

        hand_cursor = False

        for i in range(len(cls.buttons)):
            hand_cursor = cls.buttons[i].display(cls.mouse_pos) or hand_cursor

        if hand_cursor:
            # Change le curseur selon le bouton sur lequel il est
            Display.setCursorHand()
        else:
            Display.setCursorArrow()