Disable pythons own eventhandling on the mac.

This commit is contained in:
Jack Jansen 1995-11-10 14:49:44 +00:00
parent 38186782e5
commit 8324836329
2 changed files with 16 additions and 0 deletions

View file

@ -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)