Replaced MacOS.EnableAppswitch by MacOS.SchedParams
diff --git a/Mac/Lib/test/echo.py b/Mac/Lib/test/echo.py
index 7376238..1bad3e1 100644
--- a/Mac/Lib/test/echo.py
+++ b/Mac/Lib/test/echo.py
@@ -33,11 +33,11 @@
def main():
echo = EchoServer()
- yield = MacOS.EnableAppswitch(-1) # Disable Python's own "event handling"
+ saveparams = MacOS.SchedParams(0, 0) # Disable Python's own "event handling"
try:
echo.mainloop(everyEvent, 0)
finally:
- MacOS.EnableAppswitch(yield) # Let Python have a go at events
+ apply(MacOS.SchedParams, saveparams) # Let Python have a go at events
echo.close()