[Tutor] destroying a window once a movie has stoped playing

Nick.Treloar at education.nsw.gov.au Nick.Treloar at education.nsw.gov.au
Wed May 14 03:07:58 CEST 2008


def movieu(self):
        mov_name = "video.mpg"
        pygame.mixer.quit()
        screen = pygame.display.set_mode((320, 240))
        video = pygame.movie.Movie(mov_name)
        screen = pygame.display.set_mode(video.get_size())
        video.play()
        while video.get_busy():
            for event in pygame.event.get():
                if event.type == pygame.QUIT:
                    break

this is the peice of code i am using to run a movie in my scissors paper rock game so when rock beats scissors a movie will play. i can get the movie to play but i would like to no if i can make the window destroy once the movie has stoped

________________________________
This message is intended for the addressee named and may contain privileged information or confidential information or both. If you are not the intended recipient please delete it and notify the sender.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20080514/23de1a64/attachment.htm>


More information about the Tutor mailing list