Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(1)  |  Call(1)  |  Derive(0)  |  Import(0)
remove the Sprite from all Groups
Sprite.kill(): return None

The Sprite is removed from all the Groups that contain it. This won't
change anything about the state of the Sprite. It is possible to continue
to use the Sprite after this method has been called, including adding it
to Groups.

src/h/a/HackathonF2011-HEAD/src/Magic.py   HackathonF2011(Download)
            #Kill magic object if it reaches the windows bounds.
            if self.rect.top > HEIGHT or self.rect.top < 0 or self.rect.right < 64 or self.rect.right > WIDTH-64:
                self.kill()