Commit 83248363 authored by Jack Jansen's avatar Jack Jansen

Disable pythons own eventhandling on the mac.

parent 38186782
...@@ -5,6 +5,14 @@ from _tkinter import TclError ...@@ -5,6 +5,14 @@ from _tkinter import TclError
from types import * from types import *
from Tkconstants 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, CallableTypes = (FunctionType, MethodType,
BuiltinFunctionType, BuiltinMethodType) BuiltinFunctionType, BuiltinMethodType)
......
...@@ -5,6 +5,14 @@ from _tkinter import TclError ...@@ -5,6 +5,14 @@ from _tkinter import TclError
from types import * from types import *
from Tkconstants 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, CallableTypes = (FunctionType, MethodType,
BuiltinFunctionType, BuiltinMethodType) BuiltinFunctionType, BuiltinMethodType)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment