summaryrefslogtreecommitdiffstats
path: root/Mac/Lib/EasyDialogs.py
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>1999-02-25 22:05:45 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>1999-02-25 22:05:45 (GMT)
commitcf2efc67d93a8fe6b7820b2a99bd20cc89c2ed73 (patch)
tree32a974fe4b6fb4fbc0335f0f35a76500d4931624 /Mac/Lib/EasyDialogs.py
parentb30f52a4715407d7be78569123b7379dc47299cb (diff)
downloadcpython-cf2efc67d93a8fe6b7820b2a99bd20cc89c2ed73.zip
cpython-cf2efc67d93a8fe6b7820b2a99bd20cc89c2ed73.tar.gz
cpython-cf2efc67d93a8fe6b7820b2a99bd20cc89c2ed73.tar.bz2
Uncommented AskYesNoCancel docstring (how did it get commented in the first place?)
Diffstat (limited to 'Mac/Lib/EasyDialogs.py')
-rw-r--r--Mac/Lib/EasyDialogs.py22
1 files changed, 11 insertions, 11 deletions
diff --git a/Mac/Lib/EasyDialogs.py b/Mac/Lib/EasyDialogs.py
index 35255c5..24f6515 100644
--- a/Mac/Lib/EasyDialogs.py
+++ b/Mac/Lib/EasyDialogs.py
@@ -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: