pygame.quit() uninitializes every pygame module that was previously
initialized, which causes the window to destroy/quit/disappear. So if you
want the window to destroy when the movie has ended:

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
        pygame.quit() #uninitializes pygame modules.
        sys.exit() #you should usually call this after pygame.quit() so the
program quits. Otherwise errors can occur :O

HTH,

PS. you could also probably use pygame.display.quit() instead if you wanted.

On Mon, May 19, 2008 at 6:50 AM, bhaaluu <[EMAIL PROTECTED]> wrote:

> On Sun, May 18, 2008 at 11:36 PM, Ian Mallett <[EMAIL PROTECTED]>
> wrote:
> > pygame.quit()
> >
>
> Does that just stop the one movie, or does it stop the whole
> paper-scissors-rock game? For example, rock smashes scissors,
> the movie plays, pygame.quit() stops the movie, and the player
> can continue to play another game? And if scissors cut paper, that movie
> plays, pygame.quit() stops the movie, and the player can continue
> to play? Or does pygame.quit() stop the whole PSR game?
>
> Still learning....
> --
> b h a a l u u at g m a i l dot c o m
> Kid on Bus: What are you gonna do today, Napoleon?
> Napoleon Dynamite: Whatever I feel like I wanna do. Gosh!
>

-- 
- pymike (http://pymike.aftermatheffect.com/)

Reply via email to