comparison Mac/scripts/EditPythonPrefs.py @ 4398:ec4c42bea69d legacy-trunk

Moved resources to 510/511: the numbers above 512 gave problems when editing preferences in applets with their own dialogs
author Jack Jansen <jack.jansen@cwi.nl>
date Fri, 11 Oct 1996 11:30:26 +0000
parents 8f291dc8fa9b
children 85d38456adf0
comparison
equal deleted inserted replaced
4397:890434d5bec2 4398:ec4c42bea69d
15 import Res # For Res.Error 15 import Res # For Res.Error
16 16
17 # resource IDs in our own resources (dialogs, etc) 17 # resource IDs in our own resources (dialogs, etc)
18 MESSAGE_ID = 256 18 MESSAGE_ID = 256
19 19
20 DIALOG_ID = 512 20 DIALOG_ID = 511
21 TEXT_ITEM = 1 21 TEXT_ITEM = 1
22 OK_ITEM = 2 22 OK_ITEM = 2
23 CANCEL_ITEM = 3 23 CANCEL_ITEM = 3
24 DIR_ITEM = 4 24 DIR_ITEM = 4
25 TITLE_ITEM = 5 25 TITLE_ITEM = 5
26 OPTIONS_ITEM = 7 26 OPTIONS_ITEM = 7
27 27
28 # The options dialog. There is a correspondence between 28 # The options dialog. There is a correspondence between
29 # the dialog item numbers and the option. 29 # the dialog item numbers and the option.
30 OPT_DIALOG_ID = 513 30 OPT_DIALOG_ID = 510
31 # 1 thru 9 are the options 31 # 1 thru 9 are the options
32 # The GUSI creator/type and delay-console 32 # The GUSI creator/type and delay-console
33 OD_CREATOR_ITEM = 10 33 OD_CREATOR_ITEM = 10
34 OD_TYPE_ITEM = 11 34 OD_TYPE_ITEM = 11
35 OD_DELAYCONSOLE_ITEM = 12 35 OD_DELAYCONSOLE_ITEM = 12
354 dummy = dummy2 = None # Discard them. 354 dummy = dummy2 = None # Discard them.
355 355
356 if notfound: 356 if notfound:
357 message('Warning: initial %s taken from system-wide defaults'%notfound) 357 message('Warning: initial %s taken from system-wide defaults'%notfound)
358 # Let the user play away 358 # Let the user play away
359 print 'DBG interaction'
359 result = interact(l, fss, (options, creator, type, delaycons), name) 360 result = interact(l, fss, (options, creator, type, delaycons), name)
360 361
361 # See what we have to update, and how 362 # See what we have to update, and how
362 if result == None: 363 if result == None:
363 sys.exit(0) 364 sys.exit(0)