mirror of
https://github.com/python/cpython.git
synced 2025-07-23 11:15:24 +00:00
Disable pythons own eventhandling on the mac.
This commit is contained in:
parent
38186782e5
commit
8324836329
2 changed files with 16 additions and 0 deletions
|
@ -5,6 +5,14 @@ from _tkinter import TclError
|
|||
from types import *
|
||||
from Tkconstants import *
|
||||
|
||||
# XXXX Not really correct.
|
||||
# The following code disables all python mainloop event handling,
|
||||
# but what we really want is to disable it only for tk windows...
|
||||
import os
|
||||
if os.name == 'mac':
|
||||
import MacOS
|
||||
MacOS.EnableAppswitch(0)
|
||||
|
||||
CallableTypes = (FunctionType, MethodType,
|
||||
BuiltinFunctionType, BuiltinMethodType)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue