[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[pygame] Newbie - trouble with inheritance in pygame



Sorry if it's been asked before, but why this doesn't work:

class my_font(pygame.font.Font):
    pass

while this does:

class my_sprite(pygame.sprite.Sprite):
    pass

the first gives a TypeError