From: Kevin A. <ka...@us...> - 2004-08-08 17:44:06
|
Update of /cvsroot/pythoncard/PythonCard/samples/mp3player In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21645/samples/mp3player Modified Files: mp3player.py Log Message: replaced CR with LF Index: mp3player.py =================================================================== RCS file: /cvsroot/pythoncard/PythonCard/samples/mp3player/mp3player.py,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** mp3player.py 3 Aug 2004 17:09:19 -0000 1.1 --- mp3player.py 8 Aug 2004 17:43:56 -0000 1.2 *************** *** 36,42 **** filename = self.components.filename.text ! ## NOTE WE DON'T IMPORT PYGAME UNTIL NOW. Don't put "import pygame" at the top of the file. import pygame self.movie = pygame.movie.Movie(filename) self.movie.play() ! # it was a good idea at first, but mixer simply doesn't work, at least on the Mac ## assert os.path.exists(filename) ## from pygame import mixer ## mixer.init(44100, 2) --- 36,46 ---- filename = self.components.filename.text ! ## NOTE WE DON'T IMPORT PYGAME UNTIL NOW. Don't put "import pygame" at the top of the file. ! import pygame ! self.movie = pygame.movie.Movie(filename) ! self.movie.play() ! # it was a good idea at first, but mixer simply doesn't work, at least on the Mac ! ## assert os.path.exists(filename) ## from pygame import mixer ## mixer.init(44100, 2) |