File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1276,6 +1276,30 @@ \section{New and Improved Modules}
12761276activated on an application level instead of trying to enable it on a
12771277per-use basis.
12781278
1279+ \item Calling Tcl methods through \module {_tkinter} now does not
1280+ always return strings anymore. Instead, if Tcl returns other objects,
1281+ those objects are converted to their Python equivalent, if one exists,
1282+ or wrapped with a \class {_tkinter.Tcl_Obj} object if no Python
1283+ equivalent exists. This behaviour can be controlled through the
1284+ \method {wantobjects} method of \class {tkapp} objects.
1285+
1286+ When using _tkinter through Tkinter.py (i.e. for most _tkinter
1287+ applications), this feature is always activated. It should not cause
1288+ compatibility problems, since Tkinter would always convert string
1289+ results to Python types were possible.
1290+
1291+ If any incompatibilities are found, the old behaviour can be restored
1292+ by invoking
1293+
1294+ \begin {verbatim }
1295+ import Tkinter
1296+ Tkinter.want_objects = 0
1297+ \end {verbatim }
1298+
1299+ before creating the first \class {tkapp} object.
1300+
1301+ Please report any such breakage as a bug.
1302+
12791303\end {itemize }
12801304
12811305
You can’t perform that action at this time.
0 commit comments