diff options
Diffstat (limited to 'Mac/Demo/waste/htmled.py')
-rw-r--r-- | Mac/Demo/waste/htmled.py | 6 |
1 files changed, 3 insertions, 3 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) |