mirror of
https://github.com/python/cpython.git
synced 2025-07-23 19:25:40 +00:00
Fixes for the Mac. (Jack)
This commit is contained in:
parent
a5e9fb6a65
commit
9d9af2c7a8
3 changed files with 16 additions and 5 deletions
|
@ -667,7 +667,11 @@ class Tk(Misc, Wm):
|
|||
try:
|
||||
# Disable event scanning except for Command-Period
|
||||
import MacOS
|
||||
MacOS.EnableAppswitch(0)
|
||||
try:
|
||||
MacOS.SchedParams(1, 0)
|
||||
except AttributeError:
|
||||
# pre-1.5, use old routine
|
||||
MacOS.EnableAppswitch(0)
|
||||
except ImportError:
|
||||
pass
|
||||
else:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue