def playMovieInWindow(theWindow, theFile, movieBox):
 theMovie = loadMovie(theFile)
 theMovie.SetMovieBox(movieBox)
 theMovie.GoToBeginningOfMovie()
 theMovie.MoviesTask(0)
 theMovie.StartMovie()
 while ((not theMovie.IsMovieDone()) and (not Evt.Button())):
  theMovie.MoviesTask(0)

def playMovieInWindow ( theWindow , theFile , movieBox ) : theMovie = loadMovie ( theFile ) theMovie . SetMovieBox ( movieBox ) theMovie . GoToBeginningOfMovie ( ) theMovie . MoviesTask ( 0 ) theMovie . StartMovie ( ) while ( ( not theMovie . IsMovieDone ( ) ) and ( not Evt . Button ( ) ) ) : theMovie . MoviesTask ( 0 )
play a movie in a window .