Default schedparams set to (0,0): no event-intervention by Python mainloop. This

was always meant to be the default, and the new example-2 was pretty critical
of this.
This commit is contained in:
Jack Jansen 1999-12-03 16:08:50 +00:00
parent dd206899db
commit 0c3e4b6ca1

View file

@ -160,9 +160,9 @@ class Application:
# applications.
break
finally:
apply(MacOS.SchedParams, self.schedparams)
apply(MacOS.SchedParams, saveparams)
schedparams = MacOS.SchedParams()
schedparams = (0, 0) # By default disable Python's event handling
def dopendingevents(self, mask = everyEvent):
"""dopendingevents - Handle all pending events"""