[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[pygame] instance has no attribute '_Sprite__g'



What am I doing wrong here?

I've got:

import pygame
all = pygame.sprite.Group()

class Ship(pygame.sprite.Sprite):
    def __init__(self):
        self.add(all)

ship = Ship()

I get the errors:
in add
    has = self.__g.has_key
AtrributeError: Ship instance has no attribute '_Sprite__g'.


Any ideas?
Thx
David

____________________________________
pygame mailing list
pygame-users@seul.org
http://pygame.seul.org