summaryrefslogtreecommitdiffstats
path: root/Mac/Lib/FrameWork.py
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>1997-06-12 10:51:18 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>1997-06-12 10:51:18 (GMT)
commit3368cb7763813910886ce58680ebbe58c72a9330 (patch)
tree7bec3fc304b4be5ca3d97ea085be86ca760431df /Mac/Lib/FrameWork.py
parentd3b06a871f8bb6bec1b02fd1f5ddb1225c26cb34 (diff)
downloadcpython-3368cb7763813910886ce58680ebbe58c72a9330.zip
cpython-3368cb7763813910886ce58680ebbe58c72a9330.tar.gz
cpython-3368cb7763813910886ce58680ebbe58c72a9330.tar.bz2
Replaced MacOS.EnableAppSwitch with MacOS.SchedParams
Diffstat (limited to 'Mac/Lib/FrameWork.py')
-rw-r--r--Mac/Lib/FrameWork.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Mac/Lib/FrameWork.py b/Mac/Lib/FrameWork.py
index da07d13..caaf81c 100644
--- a/Mac/Lib/FrameWork.py
+++ b/Mac/Lib/FrameWork.py
@@ -143,7 +143,7 @@ class Application:
def mainloop(self, mask = everyEvent, wait = 0):
self.quitting = 0
- saveyield = MacOS.EnableAppswitch(self.yield)
+ saveparams = apply(MacOS.SchedParams, self.schedparams)
try:
while not self.quitting:
try:
@@ -154,9 +154,9 @@ class Application:
# applications.
break
finally:
- MacOS.EnableAppswitch(saveyield)
+ apply(MacOS.SchedParams, self.schedparams)
- yield = -1
+ schedparams = MacOS.SchedParams()
def do1event(self, mask = everyEvent, wait = 0):
ok, event = self.getevent(mask, wait)