Update of /cvsroot/pythoncard/PythonCard/samples/mp3player
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19204/mp3player
Modified Files:
mp3player.py
Log Message:
Removed all of the plain except: clauses I could
Index: mp3player.py
===================================================================
RCS file: /cvsroot/pythoncard/PythonCard/samples/mp3player/mp3player.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** mp3player.py 12 Aug 2004 19:18:54 -0000 1.3
--- mp3player.py 13 Dec 2005 11:13:23 -0000 1.4
***************
*** 2,8 ****
"""
__version__ = "$Revision$"
__date__ = "$Date$"
- """
from PythonCard import dialog, model
--- 2,9 ----
"""
+ We should try and make this work on platforms other than the Mac.
+ """
__version__ = "$Revision$"
__date__ = "$Date$"
from PythonCard import dialog, model
***************
*** 15,23 ****
# this is only going to work on the Mac
# so it will need to be generalized later
! try:
! home = os.environ['HOME']
! self.buildList(os.path.join(home, 'Music/iTunes/iTunes Music'))
! except:
! pass
# http://www.pygame.org/docs/ref/Movie.html
--- 16,21 ----
# this is only going to work on the Mac
# so it will need to be generalized later
! home = os.environ['HOME']
! self.buildList(os.path.join(home, 'Music/iTunes/iTunes Music'))
# http://www.pygame.org/docs/ref/Movie.html
***************
*** 31,39 ****
path = result.paths[0]
self.components.filename.text = path
-
def on_play_mouseClick(self, event):
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
--- 29,35 ----
|