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

All Samples(0)  |  Call(0)  |  Derive(0)  |  Import(0)

src/p/y/pyzza-0.2.15/lib/game.py   pyzza(Download)
    def start(self, sprite, show_fps=False):
        self.sprite = sprite
        self.lastframe = getTimer()
        self.handlers = []
        sprite.addEventListener(Event.ENTER_FRAME, self.frame)
    def stop(self):
        if self.fps:
            self.spite.delChild(self.fps)
        self.sprite.removeEventListener(Event.ENTER_FRAME, self.frame)
        self.sprite = None