[ create a new paste ] login | about

Link: http://codepad.org/1GeLwpvP    [ raw code | fork ]

Python, pasted on Jun 29:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
class WaitForEvent(WaitInterval,DirectObject):
    def __init__(self, events):
        WaitInterval.__init__(self, 9999)
        for e in events:
            self.acceptOnce(e, self.test)
        
    def test(self):
        print self.getState(),self.isStopped (),self.isPlaying ()
        self.finish()
        print self.getState(),self.isStopped (),self.isPlaying ()


Sequence(Func(video.play),Func(sound.play),WaitForEvent(["mouse1", video.getFinishedEvent()]),Func(self.openAP)).start()
        


Create a new paste based on this one


Comments: