summaryrefslogtreecommitdiffstats
path: root/Lib/lib-tk
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>1995-11-10 14:49:44 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>1995-11-10 14:49:44 (GMT)
commit8324836329f86204417522d9de210becf0189a09 (patch)
tree6c3dcd63d2263505d00147221de3c4b8e7b372da /Lib/lib-tk
parent38186782e59908ad07c0c40d117a19501a43b459 (diff)
downloadcpython-8324836329f86204417522d9de210becf0189a09.zip
cpython-8324836329f86204417522d9de210becf0189a09.tar.gz
cpython-8324836329f86204417522d9de210becf0189a09.tar.bz2
Disable pythons own eventhandling on the mac.
Diffstat (limited to 'Lib/lib-tk')
-rw-r--r--Lib/lib-tk/Tkinter.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/Lib/lib-tk/Tkinter.py b/Lib/lib-tk/Tkinter.py
index 3c2b0ab..f450c82 100644
--- a/Lib/lib-tk/Tkinter.py
+++ b/Lib/lib-tk/Tkinter.py
@@ -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)