]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Report Tkinter changes.
authorMartin v. Löwis <martin@v.loewis.de>
Tue, 26 Nov 2002 09:47:25 +0000 (09:47 +0000)
committerMartin v. Löwis <martin@v.loewis.de>
Tue, 26 Nov 2002 09:47:25 +0000 (09:47 +0000)
Doc/whatsnew/whatsnew23.tex

index e90b60490dbf637cfa033ea0182d987a14ea9731..b1e97139da306874c0e59044737a52a0488e275b 100644 (file)
@@ -1276,6 +1276,30 @@ stamps, or if they use the tuple API. If used, the feature should be
 activated on an application level instead of trying to enable it on a
 per-use basis.
 
+\item Calling Tcl methods through \module{_tkinter} now does not
+always return strings anymore. Instead, if Tcl returns other objects,
+those objects are converted to their Python equivalent, if one exists,
+or wrapped with a \class{_tkinter.Tcl_Obj} object if no Python
+equivalent exists. This behaviour can be controlled through the
+\method{wantobjects} method of \class{tkapp} objects.
+
+When using _tkinter through Tkinter.py (i.e. for most _tkinter
+applications), this feature is always activated. It should not cause
+compatibility problems, since Tkinter would always convert string
+results to Python types were possible.
+
+If any incompatibilities are found, the old behaviour can be restored
+by invoking
+
+\begin{verbatim}
+import Tkinter
+Tkinter.want_objects = 0
+\end{verbatim}
+
+before creating the first \class{tkapp} object.
+
+Please report any such breakage as a bug.
+
 \end{itemize}