예제 #1
0
    def __init__(self):
        """Initialize a new button.

        The mode is set to 'normal'.

        """
        GuiSprite.__init__(self)
        self._draw_function = None
        self.setMode('normal')
예제 #2
0
 def __init__(self):
     """Initialize a new TextSprite."""
     GuiSprite.__init__(self)
     self.font = None
     self.text = ''
예제 #3
0
 def __init__(self):
     GuiSprite.__init__(self)
     self._sprites_group = pygame.sprite.LayeredUpdates()