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

Re: [pygame] need help with chop function



On Tue, 2006-01-10 at 08:27 -0800, Peter Shinners wrote:
> def crop2(surface, rect):
>     return pygame.Subsurface(surface, rect)

Oops, I mangled the this. Take 2:

def crop2(surface, rect):
    return surface.subsurface(rect)