mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Use FSpCreateResFile() in stead of CreateResFile().
Don't call OpenDeskAcc() and AppendResMenu() on Carbon.
This commit is contained in:
parent
bf21bef254
commit
01a2d9e281
9 changed files with 14 additions and 18 deletions
|
@ -14,6 +14,7 @@ import WASTEconst
|
|||
import Scrap
|
||||
import os
|
||||
import macfs
|
||||
import MACFS
|
||||
import regsub
|
||||
import string
|
||||
import htmllib
|
||||
|
@ -243,7 +244,7 @@ class WasteWindow(ScrolledWindow):
|
|||
try:
|
||||
rf = Res.FSpOpenResFile(self.path, 3)
|
||||
except Res.Error:
|
||||
Res.CreateResFile(self.path)
|
||||
Res.FSpCreateResFile(self.path, '????', 'TEXT', MACFS.smAllScripts)
|
||||
rf = Res.FSpOpenResFile(self.path, 3)
|
||||
styles = Res.Resource('')
|
||||
soup = Res.Resource('')
|
||||
|
|
|
@ -14,6 +14,7 @@ import WASTEconst
|
|||
import Scrap
|
||||
import os
|
||||
import macfs
|
||||
import MACFS
|
||||
|
||||
UNDOLABELS = [ # Indexed by WEGetUndoInfo() value
|
||||
None, "", "typing", "Cut", "Paste", "Clear", "Drag", "Style"]
|
||||
|
@ -212,7 +213,7 @@ class WasteWindow(ScrolledWindow):
|
|||
try:
|
||||
rf = Res.FSpOpenResFile(self.path, 3)
|
||||
except Res.Error:
|
||||
Res.CreateResFile(self.path)
|
||||
Res.FSpCreateResFile(self.path, '????', 'TEXT', MACFS.smAllScripts)
|
||||
rf = Res.FSpOpenResFile(self.path, 3)
|
||||
styles = Res.Resource('')
|
||||
soup = Res.Resource('')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue