summaryrefslogtreecommitdiffstats
path: root/Mac/Lib/EasyDialogs.py
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>1996-04-10 14:49:41 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>1996-04-10 14:49:41 (GMT)
commit0b690db57a786324fe256819f576d233f69440b1 (patch)
tree90ed7cbe3ab069e72a7896d7aa216aa050418823 /Mac/Lib/EasyDialogs.py
parent2b72417da0af053f6efc1b3574361744eb22d2a7 (diff)
downloadcpython-0b690db57a786324fe256819f576d233f69440b1.zip
cpython-0b690db57a786324fe256819f576d233f69440b1.tar.gz
cpython-0b690db57a786324fe256819f576d233f69440b1.tar.bz2
Added region argument to various ...Update calls.
Also, some rsrc files got rebinhexed (sigh)
Diffstat (limited to 'Mac/Lib/EasyDialogs.py')
-rw-r--r--Mac/Lib/EasyDialogs.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/Mac/Lib/EasyDialogs.py b/Mac/Lib/EasyDialogs.py
index f0c6081..1854b69 100644
--- a/Mac/Lib/EasyDialogs.py
+++ b/Mac/Lib/EasyDialogs.py
@@ -98,8 +98,12 @@ def AskYesNoCancel(question, default = 0):
tp, h, rect = d.GetDialogItem(5)
SetDialogItemText(h, question)
d.SetDialogCancelItem(4)
- if default in (2, 3, 4):
- d.SetDialogDefaultItem(default)
+ if default == 1:
+ d.SetDialogDefaultItem(2)
+ elif default == 0:
+ d.SetDialogDefaultItem(3)
+ elif default == -1:
+ d.SetDialogDefaultItem(4)
while 1:
n = ModalDialog(None)
if n == 1: return default