mirror of
https://github.com/python/cpython.git
synced 2025-12-11 19:40:17 +00:00
Use FSpCreateResFile() in stead of CreateResFile().
This commit is contained in:
parent
565e956cb0
commit
64aa1e2c83
1 changed files with 2 additions and 1 deletions
|
|
@ -5,6 +5,7 @@ import Wtraceback
|
||||||
from Wkeys import *
|
from Wkeys import *
|
||||||
|
|
||||||
import macfs
|
import macfs
|
||||||
|
import MACFS
|
||||||
import MacOS
|
import MacOS
|
||||||
import Win
|
import Win
|
||||||
import Res
|
import Res
|
||||||
|
|
@ -134,7 +135,7 @@ class Editor(W.Window):
|
||||||
try:
|
try:
|
||||||
resref = Res.FSpOpenResFile(self.path, 3)
|
resref = Res.FSpOpenResFile(self.path, 3)
|
||||||
except Res.Error:
|
except Res.Error:
|
||||||
Res.CreateResFile(self.path)
|
Res.FSpCreateResFile(self.path, self._creator, 'TEXT', MACFS.smAllScripts)
|
||||||
resref = Res.FSpOpenResFile(self.path, 3)
|
resref = Res.FSpOpenResFile(self.path, 3)
|
||||||
try:
|
try:
|
||||||
data = Res.Resource(marshal.dumps(self.settings))
|
data = Res.Resource(marshal.dumps(self.settings))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue