mirror of
https://github.com/python/cpython.git
synced 2025-07-22 10:45:22 +00:00
Added prompts to various file-select dialogs
Renumbered resources to above 512
This commit is contained in:
parent
ad169272fb
commit
9062fa2fb5
7 changed files with 31 additions and 35 deletions
|
@ -18,7 +18,7 @@ import Res # For Res.Error
|
|||
# resource IDs in our own resources (dialogs, etc)
|
||||
MESSAGE_ID = 256
|
||||
|
||||
DIALOG_ID = 131
|
||||
DIALOG_ID = 512
|
||||
TEXT_ITEM = 1
|
||||
OK_ITEM = 2
|
||||
CANCEL_ITEM = 3
|
||||
|
@ -85,7 +85,7 @@ def interact(list, pythondir):
|
|||
if n == REVERT_ITEM:
|
||||
return [], pythondir
|
||||
if n == DIR_ITEM:
|
||||
fss, ok = macfs.GetDirectory()
|
||||
fss, ok = macfs.GetDirectory('Select python home folder:')
|
||||
if ok:
|
||||
pythondir = fss
|
||||
tmp = string.splitfields(GetDialogItemText(h), '\r')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue