summaryrefslogtreecommitdiffstats
path: root/Lib/tkinter/Tkinter.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/tkinter/Tkinter.py')
-rwxr-xr-xLib/tkinter/Tkinter.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/Lib/tkinter/Tkinter.py b/Lib/tkinter/Tkinter.py
index 3c2b0ab..f450c82 100755
--- a/Lib/tkinter/Tkinter.py
+++ b/Lib/tkinter/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)