mirror of
https://github.com/python/cpython
synced 2026-09-29 12:10:30 +03:00
Use the new macresource module to open the accompanying resource file (if needed).
This commit is contained in:
parent
a5d7da528b
commit
3c06b9a7d4
13 changed files with 37 additions and 102 deletions
|
|
@ -18,6 +18,7 @@ from Carbon import Res
|
|||
from Carbon import Dlg
|
||||
import EasyDialogs
|
||||
import buildtools
|
||||
import macresource
|
||||
|
||||
# Hmmm...
|
||||
MACFREEZEPATH = os.path.join(sys.prefix, ":Mac:Tools:macfreeze")
|
||||
|
|
@ -38,13 +39,7 @@ GEN68K_BUTTON = 6
|
|||
PPC_ONLY=1
|
||||
|
||||
|
||||
try:
|
||||
Res.GetResource('DITL', DLG_ID)
|
||||
except Res.Error:
|
||||
Res.FSpOpenResFile("BuildApplication.rsrc", 1)
|
||||
else:
|
||||
pass # we're an applet
|
||||
|
||||
macresource.need('DITL', DLG_ID, "BuildApplication.rsrc")
|
||||
|
||||
def main():
|
||||
try:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue