summaryrefslogtreecommitdiffstats
path: root/Lib/lib-tk
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2002-11-26 09:28:05 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2002-11-26 09:28:05 (GMT)
commitffad633af9d93ac7bd7c08b3154e8e5f71b920ef (patch)
tree20afb5f27788e428e1611843d49e64d5ce7e0041 /Lib/lib-tk
parent52ea7e9244f673602a32beb4c0489bfdd59cb1d4 (diff)
downloadcpython-ffad633af9d93ac7bd7c08b3154e8e5f71b920ef.zip
cpython-ffad633af9d93ac7bd7c08b3154e8e5f71b920ef.tar.gz
cpython-ffad633af9d93ac7bd7c08b3154e8e5f71b920ef.tar.bz2
Patch #518625: Return objects in Tkinter.
Diffstat (limited to 'Lib/lib-tk')
-rw-r--r--Lib/lib-tk/Tkinter.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/lib-tk/Tkinter.py b/Lib/lib-tk/Tkinter.py
index b5c07cb..f222007 100644
--- a/Lib/lib-tk/Tkinter.py
+++ b/Lib/lib-tk/Tkinter.py
@@ -45,6 +45,8 @@ try:
except ImportError:
_MacOS = None
+want_objects = 1
+
TkVersion = float(_tkinter.TK_VERSION)
TclVersion = float(_tkinter.TCL_VERSION)
@@ -1521,6 +1523,7 @@ class Tk(Misc, Wm):
if ext not in ('.py', '.pyc', '.pyo'):
baseName = baseName + ext
self.tk = _tkinter.create(screenName, baseName, className)
+ self.tk.wantobjects(want_objects)
if _MacOS and hasattr(_MacOS, 'SchedParams'):
# Disable event scanning except for Command-Period
_MacOS.SchedParams(1, 0)