summaryrefslogtreecommitdiffstats
path: root/Mac/Demo/quicktime
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2003-01-26 21:40:00 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2003-01-26 21:40:00 (GMT)
commitb340acf9fd893140efd65a56134a814a8d9bac73 (patch)
treec991a32a9d7b34262675c1cd97969c352c43f74e /Mac/Demo/quicktime
parentd9db3a67138deec981184c173c290025e9760f1d (diff)
downloadcpython-b340acf9fd893140efd65a56134a814a8d9bac73.zip
cpython-b340acf9fd893140efd65a56134a814a8d9bac73.tar.gz
cpython-b340acf9fd893140efd65a56134a814a8d9bac73.tar.bz2
Use new file dialogs.
Diffstat (limited to 'Mac/Demo/quicktime')
-rw-r--r--Mac/Demo/quicktime/MovieInWindow.py7
-rw-r--r--Mac/Demo/quicktime/VerySimplePlayer.py7
2 files changed, 8 insertions, 6 deletions
diff --git a/Mac/Demo/quicktime/MovieInWindow.py b/Mac/Demo/quicktime/MovieInWindow.py
index 620c16c..0df30a4 100644
--- a/Mac/Demo/quicktime/MovieInWindow.py
+++ b/Mac/Demo/quicktime/MovieInWindow.py
@@ -11,7 +11,8 @@ from Carbon import Evt
from Carbon import Events
from Carbon import Win
from Carbon import Windows
-import macfs
+from Carbon import File
+import EasyDialogs
import sys
@@ -21,8 +22,8 @@ def main():
Qt.EnterMovies()
# Get the movie file
- fss, ok = macfs.StandardGetFile() # Was: QuickTime.MovieFileType
- if not ok:
+ fss = EasyDialogs.AskFileForOpen(wanted=File.FSSpec) # Was: QuickTime.MovieFileType
+ if not fss:
sys.exit(0)
# Open the window
diff --git a/Mac/Demo/quicktime/VerySimplePlayer.py b/Mac/Demo/quicktime/VerySimplePlayer.py
index aca977f..de64e3f 100644
--- a/Mac/Demo/quicktime/VerySimplePlayer.py
+++ b/Mac/Demo/quicktime/VerySimplePlayer.py
@@ -11,7 +11,8 @@ from Carbon import Evt
from Carbon import Events
from Carbon import Win
from Carbon import Windows
-import macfs
+from Carbon import File
+import EasyDialogs
import sys
# XXXX maxbounds = (40, 40, 1000, 1000)
@@ -23,8 +24,8 @@ def main():
Qt.EnterMovies()
# Get the movie file
- fss, ok = macfs.StandardGetFile(QuickTime.MovieFileType)
- if not ok:
+ fss = EasyDialogs.AskFileForOpen(wanted=File.FSSpec) # Was: QuickTime.MovieFileType
+ if not fss:
sys.exit(0)
# Open the window