diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 1996-11-20 14:55:26 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 1996-11-20 14:55:26 (GMT) |
commit | a918b8c4f64a90dc2fa298d5269f042891c20fd3 (patch) | |
tree | b69c2692f3a160759fead449656dd0d1d52ee7ed /Mac/scripts/EditPythonPrefs.py | |
parent | 2a6e68f6935fe86b056be4ce416be6205afc6ac0 (diff) | |
download | cpython-a918b8c4f64a90dc2fa298d5269f042891c20fd3.zip cpython-a918b8c4f64a90dc2fa298d5269f042891c20fd3.tar.gz cpython-a918b8c4f64a90dc2fa298d5269f042891c20fd3.tar.bz2 |
Fixed to allow sys.path initializer to be longer than 255 chars.
Diffstat (limited to 'Mac/scripts/EditPythonPrefs.py')
-rw-r--r-- | Mac/scripts/EditPythonPrefs.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/Mac/scripts/EditPythonPrefs.py b/Mac/scripts/EditPythonPrefs.py index eda4bf7..389a774 100644 --- a/Mac/scripts/EditPythonPrefs.py +++ b/Mac/scripts/EditPythonPrefs.py @@ -145,9 +145,14 @@ def interact(list, pythondir, options, title): 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 @@ def interact(list, pythondir, options, title): 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: |