Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
83248363
Commit
83248363
authored
Nov 10, 1995
by
Jack Jansen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Disable pythons own eventhandling on the mac.
parent
38186782
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
0 deletions
+16
-0
Lib/lib-tk/Tkinter.py
Lib/lib-tk/Tkinter.py
+8
-0
Lib/tkinter/Tkinter.py
Lib/tkinter/Tkinter.py
+8
-0
No files found.
Lib/lib-tk/Tkinter.py
View file @
83248363
...
@@ -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
)
...
...
Lib/tkinter/Tkinter.py
View file @
83248363
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment