def __init__(self): """Initialize a new button. The mode is set to 'normal'. """ GuiSprite.__init__(self) self._draw_function = None self.setMode('normal')
def __init__(self): """Initialize a new TextSprite.""" GuiSprite.__init__(self) self.font = None self.text = ''
def __init__(self): GuiSprite.__init__(self) self._sprites_group = pygame.sprite.LayeredUpdates()