comparison Mac/scripts/EditPythonPrefs.py @ 19488:42b2f1936254 legacy-trunk

Import the MacOS toolbox modules from the Carbon package.
author Jack Jansen <jack.jansen@cwi.nl>
date Sat, 25 Aug 2001 12:15:04 +0000
parents 05a913ff97a6
children 546ef318ba5d
comparison
equal deleted inserted replaced
19487:3e68e1a02ad2 19488:42b2f1936254
1 """Edit the Python Preferences file.""" 1 """Edit the Python Preferences file."""
2 # 2 #
3 # This program is getting more and more clunky. It should really 3 # This program is getting more and more clunky. It should really
4 # be rewritten in a modeless way some time soon. 4 # be rewritten in a modeless way some time soon.
5 5
6 from Dlg import * 6 from Carbon.Dlg import *
7 from Events import * 7 from Carbon.Events import *
8 from Res import * 8 from Carbon.Res import *
9 import Controls 9 from Carbon import Controls
10 import string 10 import string
11 import struct 11 import struct
12 import macfs 12 import macfs
13 import MacOS 13 import MacOS
14 import os 14 import os
15 import sys 15 import sys
16 import Res # For Res.Error 16 from Carbon import Res # For Res.Error
17 import pythonprefs 17 import pythonprefs
18 import EasyDialogs 18 import EasyDialogs
19 try: 19 try:
20 import Help 20 from Carbon import Help
21 except ImportError: 21 except ImportError:
22 Help = None 22 Help = None
23 23
24 # resource IDs in our own resources (dialogs, etc) 24 # resource IDs in our own resources (dialogs, etc)
25 MESSAGE_ID = 256 25 MESSAGE_ID = 256