Mercurial > cpython-lru_cache-weakref
diff Mac/scripts/EditPythonPrefs.py @ 4550:f1244036ebab legacy-trunk
Fixed to allow sys.path initializer to be longer than 255 chars.
| author | Jack Jansen <jack.jansen@cwi.nl> |
|---|---|
| date | Wed, 20 Nov 1996 14:55:26 +0000 |
| parents | 85d38456adf0 |
| children | 77135da9f36c |
line wrap: on
line diff
--- a/Mac/scripts/EditPythonPrefs.py Tue Nov 19 17:59:07 1996 +0000 +++ b/Mac/scripts/EditPythonPrefs.py Wed Nov 20 14:55:26 1996 +0000 @@ -145,9 +145,14 @@ tp, h, rect = d.GetDialogItem(TITLE_ITEM) SetDialogItemText(h, title) tp, h, rect = d.GetDialogItem(TEXT_ITEM) - SetDialogItemText(h, string.joinfields(list, '\r')) +## SetDialogItemText(h, string.joinfields(list, '\r')) + h.data = string.joinfields(list, '\r') + d.SelectDialogItemText(TEXT_ITEM, 0, 32767) + d.SelectDialogItemText(TEXT_ITEM, 0, 0) ## d.SetDialogDefaultItem(OK_ITEM) d.SetDialogCancelItem(CANCEL_ITEM) + d.GetDialogWindow().ShowWindow() + d.DrawDialog() while 1: n = ModalDialog(None) if n == OK_ITEM: @@ -162,7 +167,7 @@ pythondir = fss if n == OPTIONS_ITEM: options = optinteract(options) - tmp = string.splitfields(GetDialogItemText(h), '\r') + tmp = string.splitfields(h.data, '\r') rv = [] for i in tmp: if i:
