[Python-checkins] python/dist/src/Mac/Demo/quicktime VerySimplePlayer.py,1.6,1.7 MovieInWindow.py,1.6,1.7

jackjansen@users.sourceforge.net jackjansen@users.sourceforge.net
Sun, 26 Jan 2003 13:36:09 -0800


Update of /cvsroot/python/python/dist/src/Mac/Demo/quicktime
In directory sc8-pr-cvs1:/tmp/cvs-serv23854

Modified Files:
	VerySimplePlayer.py MovieInWindow.py 
Log Message:
Use new file dialogs.

Index: VerySimplePlayer.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Mac/Demo/quicktime/VerySimplePlayer.py,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** VerySimplePlayer.py	30 Nov 2002 00:01:20 -0000	1.6
--- VerySimplePlayer.py	26 Jan 2003 21:36:06 -0000	1.7
***************
*** 12,16 ****
  from Carbon import Win
  from Carbon import Windows
! import macfs
  import sys
  
--- 12,17 ----
  from Carbon import Win
  from Carbon import Windows
! from Carbon import File
! import EasyDialogs
  import sys
  
***************
*** 24,29 ****
  	
  	# Get the movie file
! 	fss, ok = macfs.StandardGetFile(QuickTime.MovieFileType)
! 	if not ok:
  		sys.exit(0)
  		
--- 25,30 ----
  	
  	# Get the movie file
! 	fss = EasyDialogs.AskFileForOpen(wanted=File.FSSpec) # Was: QuickTime.MovieFileType
! 	if not fss:
  		sys.exit(0)
  		

Index: MovieInWindow.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Mac/Demo/quicktime/MovieInWindow.py,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** MovieInWindow.py	30 Nov 2002 00:01:18 -0000	1.6
--- MovieInWindow.py	26 Jan 2003 21:36:06 -0000	1.7
***************
*** 12,16 ****
  from Carbon import Win
  from Carbon import Windows
! import macfs
  import sys
  
--- 12,17 ----
  from Carbon import Win
  from Carbon import Windows
! from Carbon import File
! import EasyDialogs
  import sys
  
***************
*** 22,27 ****
  	
  	# Get the movie file
! 	fss, ok = macfs.StandardGetFile() # Was: QuickTime.MovieFileType
! 	if not ok:
  		sys.exit(0)
  		
--- 23,28 ----
  	
  	# Get the movie file
! 	fss = EasyDialogs.AskFileForOpen(wanted=File.FSSpec) # Was: QuickTime.MovieFileType
! 	if not fss:
  		sys.exit(0)