summaryrefslogtreecommitdiffstats
path: root/Mac/Demo/waste
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2000-06-20 22:01:04 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2000-06-20 22:01:04 (GMT)
commit8eff33b51fff0570fe3a68668073253ec18a2631 (patch)
tree9907a4db464e263a22dc598cf9d3d1b27cfd347b /Mac/Demo/waste
parentd13c3854629d605236c4d7cc8589a647b069207e (diff)
downloadcpython-8eff33b51fff0570fe3a68668073253ec18a2631.zip
cpython-8eff33b51fff0570fe3a68668073253ec18a2631.tar.gz
cpython-8eff33b51fff0570fe3a68668073253ec18a2631.tar.bz2
Added an optional debug handler that traps and prints all unknown appleevents.
Diffstat (limited to 'Mac/Demo/waste')
-rw-r--r--Mac/Demo/waste/htmled.py6
-rw-r--r--Mac/Demo/waste/swed.py6
2 files changed, 6 insertions, 6 deletions
diff --git a/Mac/Demo/waste/htmled.py b/Mac/Demo/waste/htmled.py
index 5aa0207..c6ae2e7 100644
--- a/Mac/Demo/waste/htmled.py
+++ b/Mac/Demo/waste/htmled.py
@@ -72,7 +72,7 @@ class WasteWindow(ScrolledWindow):
return None, None
oldrf = Res.CurResFile()
try:
- rf = Res.OpenResFile(self.path)
+ rf = Res.FSpOpenResFile(self.path, 1)
except Res.Error:
return None, None
try:
@@ -241,10 +241,10 @@ class WasteWindow(ScrolledWindow):
#
oldresfile = Res.CurResFile()
try:
- rf = Res.OpenResFile(self.path)
+ rf = Res.FSpOpenResFile(self.path, 3)
except Res.Error:
Res.CreateResFile(self.path)
- rf = Res.OpenResFile(self.path)
+ rf = Res.FSpOpenResFile(self.path, 3)
styles = Res.Resource('')
soup = Res.Resource('')
self.ted.WECopyRange(0, 0x3fffffff, None, styles, soup)
diff --git a/Mac/Demo/waste/swed.py b/Mac/Demo/waste/swed.py
index 83f29b7..473d777 100644
--- a/Mac/Demo/waste/swed.py
+++ b/Mac/Demo/waste/swed.py
@@ -59,7 +59,7 @@ class WasteWindow(ScrolledWindow):
return None, None
oldrf = Res.CurResFile()
try:
- rf = Res.OpenResFile(self.path)
+ rf = Res.FSpOpenResFile(self.path, 1)
except Res.Error:
return None, None
try:
@@ -210,10 +210,10 @@ class WasteWindow(ScrolledWindow):
#
oldresfile = Res.CurResFile()
try:
- rf = Res.OpenResFile(self.path)
+ rf = Res.FSpOpenResFile(self.path, 3)
except Res.Error:
Res.CreateResFile(self.path)
- rf = Res.OpenResFile(self.path)
+ rf = Res.FSpOpenResFile(self.path, 3)
styles = Res.Resource('')
soup = Res.Resource('')
self.ted.WECopyRange(0, 0x3fffffff, None, styles, soup)