diff options
-rw-r--r-- | Mac/Lib/EasyDialogs.py | 8 | ||||
-rw-r--r-- | Mac/Lib/test/AEservertest.rsrc.hqx | 4 | ||||
-rw-r--r-- | Mac/Lib/test/tlist.py | 4 | ||||
-rw-r--r-- | Mac/Lib/test/tlist_dialog.py | 4 | ||||
-rw-r--r-- | Mac/Lib/test/tlist_dialog.rsrc.hqx | 4 |
5 files changed, 14 insertions, 10 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 diff --git a/Mac/Lib/test/AEservertest.rsrc.hqx b/Mac/Lib/test/AEservertest.rsrc.hqx index 7dd9eb8..7a89e8d 100644 --- a/Mac/Lib/test/AEservertest.rsrc.hqx +++ b/Mac/Lib/test/AEservertest.rsrc.hqx @@ -2,7 +2,7 @@ :%8&&Ff9bGQ9bG'9cG#jbFh*M!(*cFQ058d9%!*!)Bm-C`J#3"!%!!!"LZJ!!BES !!!%*0K3J9#"S!"3J8(d4X'J4!$S"CbB5,`a1ZJ)-$$S!@RN4389cCA*fCA*dCA0 -d,R*cFQ-#!!!!2j!)!*!%2j!)!*!BVA-A*3#3"Q2$ra(!U'N"(8!4rr-6F!!3,[r +d,R*cFQ-#!!!!2j!)!*!%2j!)!*!BVAAK4!#3"Q2$ra(!U'N"(8!4rr-6F!!3,[r c[G)4CK"40Vj9D`%"3N5pSEj9D`%"-&%b!@FH4"8-!!!FC4*`!"!Z3a8-!!!IBJC `!@!!!3%#,&T8,5j%[3%!'c`"CM!R96iD5S!J8`)S!,m!,L)!l3N#!3"!JbME0"1 Tebm-6VS"#8TRD`%!TPG$1J!!!3#3%J)!!!!$!!!"rri!!F-#!!)L!J!%%!)!##! @@ -511,4 +511,4 @@ J!*!&!3!!!!%!!!"LZJ!!BES!!!%*!-4ke"&%!!!!(!$k!!T#6N4-!!!!@NP$6L- !!!#ZD@0c0!!!!,TKCA4P!!!!aP"C9'F!!!$5!)$rr`!!!4d!a(QX!5crr`#3"F4 iB2q3"!!!!33!a(HX!)$rr`!!!4)!a(KN!5crr`!!!6d!a(J8!5crr`!!!B%!a(J B!5crr`!!"B8!a(JJ!5crr`!!"iN!a(J3!5crr`!!#)d!a(JF!!$rr`!!#4%!N!T -KY3$%C)`16hGZCA)JFQ9cEh9bBf@$D`: +KY3$%C)`16hGZCA)JFQ9cEh9bBf8UK`: diff --git a/Mac/Lib/test/tlist.py b/Mac/Lib/test/tlist.py index 48c8c22..be46c26 100644 --- a/Mac/Lib/test/tlist.py +++ b/Mac/Lib/test/tlist.py @@ -34,7 +34,7 @@ class ListWindow(Window): window.EndUpdate() def do_update(self, *args): - self.list.LUpdate() + self.list.LUpdate(self.wid.GetWindowPort().visRgn) def do_contentclick(self, local, modifiers, evt): dclick = self.list.LClick(local, modifiers) @@ -54,7 +54,7 @@ class ListWindow(Window): for i in range(len(contents)): l.LSetCell(contents[i], (0, i)) l.LSetDrawingMode(1) - l.LUpdate() + l.LUpdate(self.wid.GetWindowPort().visRgn) class TestList(Application): diff --git a/Mac/Lib/test/tlist_dialog.py b/Mac/Lib/test/tlist_dialog.py index a5b9e04..cacfd47 100644 --- a/Mac/Lib/test/tlist_dialog.py +++ b/Mac/Lib/test/tlist_dialog.py @@ -28,7 +28,7 @@ def dodialog(items): # Draw it. # list.LSetDrawingMode(1) - list.LUpdate() + list.LUpdate(self.wid.GetWindowPort().visRgn) # # Do the (modeless) dialog # @@ -41,7 +41,7 @@ def dodialog(items): if what == updateEvt: # XXXX We just always update our list (sigh...) SetPort(window) - list.LUpdate() + list.LUpdate(self.wid.GetWindowPort().visRgn) if IsDialogEvent(ev): # It is a dialog event. See if it's ours. ok, window, item = DialogSelect(ev) diff --git a/Mac/Lib/test/tlist_dialog.rsrc.hqx b/Mac/Lib/test/tlist_dialog.rsrc.hqx index c14141e..36ceb7b 100644 --- a/Mac/Lib/test/tlist_dialog.rsrc.hqx +++ b/Mac/Lib/test/tlist_dialog.rsrc.hqx @@ -2,10 +2,10 @@ :%A4XDA0dAf4TB@a[CbjbFh*M!(*cFQ058d9%!*!)!Cqbq`#3"!%!!!!"@3!!!&N !!!"'!2SU!!$k+J!!qLS!!2SU!!$k+J!!qLVi!2SV!!$krrN4G'aTFh4IC'PKE'p -R,R*cFQ-#!!!!2j!)!*!%2j!)!*!BVA-@i3#3"J'I+J!!qLS!!2SU!!$k+J!!qLS +R,R*cFQ-#!!!!2j!)!*!%2j!)!*!BVAAK4J#3"J'I+J!!qLS!!2SU!!$k+J!!qLS !!2SU!!$k+J!!qLS!!2SUq!$k+`!!q[rj!$S!!2Vr%$S!!2SV!!$kr!!!qLS!!2S U!!$k+J!!qLS!!2SU!!$k+J!!qLS!!2SU!!$k+[J!qLX!!2Vrq3!k!!$kr`!!qLX !!2Vm!!$k+J!!qLS!!2SU!*!%2!!#!*!&UJ#J!,i!fJ3#6dX!N!8S!!S!T3$D!*! (#J!+!"`!fBJ18f9XC@0d)'%JGfpbC$S!!!!9!%B!MJ%1!Ai!!`%!!3#3"3)"!!! !!3!!!!&C!!!!@3!!!%B!b9$i%D)!!!!F!%B!!84-6dF!!!!54%P86!!!!"i#!Ir -r!!!!3!$*8E`#!Irr!*!&b8rJhh-: +r!!!!3!$*8E`#!Irr!*!&b8rJe@3: |