Kaydet (Commit) ffad633a authored tarafından Martin v. Löwis's avatar Martin v. Löwis

Patch #518625: Return objects in Tkinter.

üst 52ea7e92
......@@ -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)
......
......@@ -312,6 +312,11 @@ Core and builtins
Extension modules
-----------------
- _tkinter now returns Tcl objects, instead of strings. Objects which
have Python equivalents are converted to Python objects, other objects
are wrapped. This can be configured through the wantobjects method,
or Tkinter.want_objects.
- The PyBSDDB wrapper around the Sleepycat Berkely DB library has been
added as the package bsddb. The traditional bsddb module is still
available in source code, but not built automatically anymore, and
......
This diff is collapsed.
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