Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 39b4852

Browse files
committed
Report Tkinter changes.
1 parent ffad633 commit 39b4852

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

Doc/whatsnew/whatsnew23.tex

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1276,6 +1276,30 @@ \section{New and Improved Modules}
12761276
activated on an application level instead of trying to enable it on a
12771277
per-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

0 commit comments

Comments
 (0)