diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2002-11-26 09:28:05 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2002-11-26 09:28:05 (GMT) |
commit | ffad633af9d93ac7bd7c08b3154e8e5f71b920ef (patch) | |
tree | 20afb5f27788e428e1611843d49e64d5ce7e0041 /Lib/lib-tk | |
parent | 52ea7e9244f673602a32beb4c0489bfdd59cb1d4 (diff) | |
download | cpython-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.py | 3 |
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) |