2 ** Resource-IDs in use by Python.
4 ** All resources used by the python interpreter itself fall
5 ** in the range 128-256.
7 ** Standard python modules use resources in the range
10 ** Python programs that use their own resources are advised to
11 ** choose resource numbers higher than 512.
15 ** Resources that reside in the python executable (or, for
16 ** shared ppc python, in the core dynamic library)
19 /* The alert for "No Python directory, where is it?" (OBSOLETE) */
20 #define NOPYTHON_ALERT 128
25 /* The alert for "this is an applet template" */
26 #define NOPYC_ALERT 129
28 /* The dialog for our GetDirectory and PromptGetFile call */
29 #define GETDIR_ID 130 /* Resource ID for our "get directory" */
30 #define GETFILEPROMPT_ID 132 /* Resource id for prompted get file */
31 #define PROMPT_ITEM 10 /* The prompt, at the top */
32 #define SELECTCUR_ITEM 11 /* "Select current directory" button */
35 /* The dialog for interactive options */
36 #define OPT_DIALOG 131 /* Resource ID for dialog */
41 #define OPT_SUPPRESS 5
42 #define OPT_UNBUFFERED 6
43 #define OPT_DEBUGGING 7
44 #define OPT_KEEPNORMAL 8
45 #define OPT_KEEPERROR 9
46 #define OPT_CMDLINE 10
48 /* Dialog for 'No preferences directory' */
49 #define NOPREFDIR_ID 133
51 /* Dialog for 'Create preferences file?' */
52 #define NOPREFFILE_ID 134
53 #define NOPREFFILE_YES 1
54 #define NOPREFFILE_NO 2
56 /* Dialog for 'Bad preference file' */
57 #define BADPREFFILE_ID 135
60 ** The following are valid both in the binary (or shared library)
61 ** and in the Preferences file.
62 ** For all three the override is tried first, through all current
63 ** resource files. This allows an applet to override standard settings
64 ** by providing a resource of the correct type.
67 /* The STR# resource for sys.path initialization */
68 #define PYTHONPATH_ID 128
69 #define PYTHONPATHOVERRIDE_ID 129
71 /* The alis resource for locating the python home directory */
72 #define PYTHONHOME_ID 128
73 #define PYTHONHOMEOVERRIDE_ID 129
75 /* The Python options resource and offset of its members */
76 #define PYTHONOPTIONS_ID 128
77 #define PYTHONOPTIONSOVERRIDE_ID 129
78 #define POPT_INSPECT 0
79 #define POPT_VERBOSE 1
80 #define POPT_SUPPRESS 2
81 #define POPT_UNBUFFERED 3
82 #define POPT_DEBUGGING 4
83 #define POPT_KEEPNORM 5
84 #define POPT_KEEPERR 6
86 /* From macgetpath.c: */
87 void PyMac_PreferenceOptions
Py_PROTO((int *inspect
, int *verbose
, int *suppress_print
,
88 int *unbuffered
, int *debugging
, int *keep_normal
,