Re: [Tutor] animations and movies

2008-05-09 Thread bhaaluu
http://pygame.org/news.html

On Thu, May 8, 2008 at 9:40 PM,  [EMAIL PROTECTED] wrote:
 hey just wondering if any one can point me in the right direction for coding
 animations and playing movies
 
 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.

 ___
 Tutor maillist  -  Tutor@python.org
 http://mail.python.org/mailman/listinfo/tutor



-- 
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!
___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] animations and movies

2008-05-09 Thread Vaibhav.bhawsar
pyglet
http://www.pyglet.org/

thats an option too

On Fri, May 9, 2008 at 7:34 AM, bhaaluu [EMAIL PROTECTED] wrote:

 http://pygame.org/news.html

 On Thu, May 8, 2008 at 9:40 PM,  [EMAIL PROTECTED]
 wrote:
  hey just wondering if any one can point me in the right direction for
 coding
  animations and playing movies
  
  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.
 
  ___
  Tutor maillist  -  Tutor@python.org
  http://mail.python.org/mailman/listinfo/tutor



 --
 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!
 ___
 Tutor maillist  -  Tutor@python.org
 http://mail.python.org/mailman/listinfo/tutor




-- 
Vaibhav Bhawsar
___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] animations and movies

2008-05-09 Thread bhaaluu
On Thu, May 8, 2008 at 9:40 PM,  [EMAIL PROTECTED] wrote:
 hey just wondering if any one can point me in the right direction for coding
 animations and playing movies
 
 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.

 ___
 Tutor maillist  -  Tutor@python.org
 http://mail.python.org/mailman/listinfo/tutor



Here's a short pygame example that plays a video.mpg (MPEG 1 file):

#!/usr/bin/python
# movie.py

import sys
import pygame
pygame.init()

mov_name = video.mpg
pygame.mouse.set_visible(False)
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


Of course, you'll need a file called video.mpg for the script to work.
-- 
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!
___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] animations and movies

2008-05-09 Thread bhaaluu
On Thu, May 8, 2008 at 9:40 PM,  [EMAIL PROTECTED] wrote:
 hey just wondering if any one can point me in the right direction for coding
 animations and playing movies
 
 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.

 ___
 Tutor maillist  -  Tutor@python.org
 http://mail.python.org/mailman/listinfo/tutor



Here's an example of a pygame animation:

http://www.cs.iupui.edu/~aharris/pygame/ch08/bounce.py

The site has all sorts of other pygame examples on it.
-- 
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!
___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor