mirror of
https://github.com/python/cpython.git
synced 2025-07-23 11:15:24 +00:00
Fixed to allow sys.path initializer to be longer than 255 chars.
This commit is contained in:
parent
2a6e68f693
commit
a918b8c4f6
2 changed files with 68 additions and 63 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue