summaryrefslogtreecommitdiffstats
path: root/Doc/lib/tkinter.tex
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2002-11-05 22:11:50 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2002-11-05 22:11:50 (GMT)
commita288a234ec5c11a0c077c818cc945001f51bbc48 (patch)
treed003ec0195266256285fa3c9464ab86301b5408b /Doc/lib/tkinter.tex
parentda2525ed2a9c8ee6219b469fbbae47b9cec2c4ba (diff)
downloadcpython-a288a234ec5c11a0c077c818cc945001f51bbc48.zip
cpython-a288a234ec5c11a0c077c818cc945001f51bbc48.tar.gz
cpython-a288a234ec5c11a0c077c818cc945001f51bbc48.tar.bz2
Document that images go away when they go away. Fixes #632323.
Diffstat (limited to 'Doc/lib/tkinter.tex')
-rw-r--r--Doc/lib/tkinter.tex18
1 files changed, 18 insertions, 0 deletions
diff --git a/Doc/lib/tkinter.tex b/Doc/lib/tkinter.tex
index 8bb59d5..e577b28 100644
--- a/Doc/lib/tkinter.tex
+++ b/Doc/lib/tkinter.tex
@@ -881,6 +881,24 @@ that matches for menu items labelled \code{last}, \code{active}, or
\end{itemize}
\end{description}
+\subsubsection{Images}
+
+Bitmap/Pixelmap images can be created through the subclasses of
+\class{Tkinter.Image}:
+
+\begin{itemize}
+\item \class{BitmapImage} can be used for X11 bitmap data.
+\item \class{PhotoImage} can be used for GIF and PPM/PGM color bitmaps.
+\end{itemize}
+
+Either type of image is created through either the \code{file} or the
+\code{data} option (other options are available as well).
+
+The image object can then be used whereever an \code{image} option is
+supported by some widget (e.g. labels, buttons, menus). In these
+cases, Tk will not keep a reference to the image. When the last Python
+reference to the image object is deleted, the image data is deleted as
+well, and Tk will display an empty box wheerever the image was used.
\section{\module{Tix} ---
Extension widgets for Tk}