Jack Jansen | c2e6dd8 | 1995-08-14 12:34:42 +0000 | [diff] [blame] | 1 | /* |
| 2 | ** Resource-IDs in use by Python. |
| 3 | ** |
| 4 | ** All resources used by the python interpreter itself fall |
| 5 | ** in the range 128-256. |
| 6 | ** |
| 7 | ** Standard python modules use resources in the range |
| 8 | ** 256-512. |
| 9 | ** |
| 10 | ** Python programs that use their own resources are advised to |
| 11 | ** choose resource numbers higher than 512. |
| 12 | */ |
| 13 | |
| 14 | /* |
| 15 | ** Resources that reside in the python executable (or, for |
| 16 | ** shared ppc python, in the core dynamic library) |
| 17 | */ |
| 18 | |
| 19 | /* The alert for "No Python directory, where is it?" */ |
| 20 | #define NOPYTHON_ALERT 128 |
| 21 | #define YES_ITEM 1 |
| 22 | #define NO_ITEM 2 |
| 23 | #define CURWD_ITEM 3 |
| 24 | |
| 25 | /* The alert for "this is an applet template" */ |
| 26 | #define NOPYC_ALERT 129 |
| 27 | |
| 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 */ |
| 33 | |
| 34 | |
| 35 | /* The dialog for interactive options */ |
| 36 | #define OPT_DIALOG 131 /* Resource ID for dialog */ |
| 37 | #define OPT_OK 1 |
| 38 | #define OPT_CANCEL 2 |
| 39 | #define OPT_INSPECT 3 |
| 40 | #define OPT_VERBOSE 4 |
| 41 | #define OPT_SUPPRESS 5 |
| 42 | #define OPT_UNBUFFERED 6 |
| 43 | #define OPT_DEBUGGING 7 |
| 44 | |
| 45 | /* |
| 46 | ** The following are valid both in the binary (or shared library) |
| 47 | ** and in the Preferences file |
| 48 | */ |
| 49 | |
| 50 | /* The STR# resource for sys.path initialization */ |
| 51 | #define PYTHONPATH_ID 128 |
| 52 | |
| 53 | /* The alis resource for locating the python home directory */ |
| 54 | #define PYTHONHOME_ID 128 |