This is an unofficial mirror of Tkinter reference documentation (based on Python 2.7 and Tk 8.5) created by the late John Shipman.
It was last updated in 2013 and is unmaintained. [More info]
You can put an image or bitmap into a text widget. It is treated as a single character whose size is the natural size of the object. See Section 5.9, “Images” andSection 5.7, “Bitmaps”.
Images are placed into the text widget by calling that
widget's .image_create()
method. See
below for the calling sequence and other methods for
image manipulation.
Images are manipulated by passing their name to methods on the text widget. You can give Tkinter a name for an image, or you can just let Tkinter generate a default name for that image.
An image may appear any number of times within the same
Text
widget. Each instance will carry a
unique name. This names can be used as an index.