mirror of
https://github.com/python/cpython.git
synced 2025-07-23 03:05:38 +00:00
Replaced MacOS.EnableAppSwitch with MacOS.SchedParams
This commit is contained in:
parent
d3b06a871f
commit
3368cb7763
2 changed files with 5 additions and 5 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue