Replaced MacOS.EnableAppswitch by MacOS.SchedParams

This commit is contained in:
Jack Jansen 1997-06-12 10:49:56 +00:00
parent caa7c46ac4
commit 7fb76e0f8a
4 changed files with 6 additions and 6 deletions

View file

@ -33,11 +33,11 @@ def mymessage(str):
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()