Mercurial > cpython-lru_cache-weakref
comparison Mac/scripts/EditPythonPrefs.py @ 19640:f4af27cb2632 legacy-trunk
Added preferences/startup options for division warning
and accepting unix-style newlines on input.
| author | Jack Jansen <jack.jansen@cwi.nl> |
|---|---|
| date | Sat, 01 Sep 2001 22:36:29 +0000 |
| parents | 546ef318ba5d |
| children | caa6df9e0880 |
comparison
equal
deleted
inserted
replaced
| 19639:60f290a7eae8 | 19640:f4af27cb2632 |
|---|---|
| 52 "nosite", | 52 "nosite", |
| 53 "nonavservice", | 53 "nonavservice", |
| 54 "nointopt", | 54 "nointopt", |
| 55 "noargs", | 55 "noargs", |
| 56 "delayconsole", | 56 "delayconsole", |
| 57 "divisionwarn", | |
| 58 "unixnewlines", | |
| 57 ] | 59 ] |
| 58 opt_dialog_dict = {} | 60 opt_dialog_dict = {} |
| 59 for i in range(len(opt_dialog_map)): | 61 for i in range(len(opt_dialog_map)): |
| 60 if opt_dialog_map[i]: | 62 if opt_dialog_map[i]: |
| 61 opt_dialog_dict[opt_dialog_map[i]] = i | 63 opt_dialog_dict[opt_dialog_map[i]] = i |
| 62 # 1 thru 10 are the options | 64 # 1 thru 10 are the options |
| 63 # The GUSI creator/type and delay-console | 65 # The GUSI creator/type and delay-console |
| 64 OD_CREATOR_ITEM = 18 | 66 OD_CREATOR_ITEM = 20 |
| 65 OD_TYPE_ITEM = 19 | 67 OD_TYPE_ITEM = 21 |
| 66 OD_OK_ITEM = 1 | 68 OD_OK_ITEM = 1 |
| 67 OD_CANCEL_ITEM = 2 | 69 OD_CANCEL_ITEM = 2 |
| 68 OD_HELP_ITEM = 20 | 70 OD_HELP_ITEM = 22 |
| 69 OD_KEEPALWAYS_ITEM = 14 | 71 OD_KEEPALWAYS_ITEM = 16 |
| 70 OD_KEEPOUTPUT_ITEM = 15 | 72 OD_KEEPOUTPUT_ITEM = 17 |
| 71 OD_KEEPERROR_ITEM = 16 | 73 OD_KEEPERROR_ITEM = 18 |
| 72 OD_KEEPNEVER_ITEM = 17 | 74 OD_KEEPNEVER_ITEM = 19 |
| 73 | 75 |
| 74 def optinteract(options): | 76 def optinteract(options): |
| 75 """Let the user interact with the options dialog""" | 77 """Let the user interact with the options dialog""" |
| 76 d = GetNewDialog(OPT_DIALOG_ID, -1) | 78 d = GetNewDialog(OPT_DIALOG_ID, -1) |
| 77 htext = d.GetDialogItemAsControl(OD_CREATOR_ITEM) | 79 htext = d.GetDialogItemAsControl(OD_CREATOR_ITEM) |
