Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
6264a765
Commit
6264a765
authored
Feb 25, 1999
by
Jack Jansen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Uncommented AskYesNoCancel docstring (how did it get commented in the first place?)
parent
4e49dfc0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
11 deletions
+11
-11
Mac/Lib/EasyDialogs.py
Mac/Lib/EasyDialogs.py
+11
-11
No files found.
Mac/Lib/EasyDialogs.py
View file @
6264a765
...
...
@@ -169,17 +169,17 @@ def AskPassword(prompt, default='', id=257):
return
string
def
AskYesNoCancel
(
question
,
default
=
0
,
yes
=
None
,
no
=
None
,
cancel
=
None
,
id
=
258
):
##
"""Display a QUESTION string which can be answered with Yes or No.
##
##
Return 1 when the user clicks the Yes button.
##
Return 0 when the user clicks the No button.
##
Return -1 when the user clicks the Cancel button.
##
##
When the user presses Return, the DEFAULT value is returned.
##
If omitted, this is 0 (No).
##
##
The QUESTION strign ca be at most 255 characters.
##
"""
"""Display a QUESTION string which can be answered with Yes or No.
Return 1 when the user clicks the Yes button.
Return 0 when the user clicks the No button.
Return -1 when the user clicks the Cancel button.
When the user presses Return, the DEFAULT value is returned.
If omitted, this is 0 (No).
The QUESTION strign ca be at most 255 characters.
"""
d
=
GetNewDialog
(
id
,
-
1
)
if
not
d
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment