Tkinter Widget Bitmaps Property
tkinter also provides the ability to place built-in bitmaps in label positions. The following bitmaps are available on all operating system platforms.
The following are examples of the above bitmaps in order from left to right and top to bottom.
Tkinter Widget Bitmaps Propert Example
Show hourglass bitmap at Label position.
from tkinter import *
root = Tk()
root.title("apidemos.com")
# label = Label(root,bitmap="error")
label = Label(root,bitmap="hourglass")
# label = Label(root,bitmap="info")
# label = Label(root,bitmap="questhead")
# label = Label(root,bitmap="question")
# label = Label(root,bitmap="warning")
# label = Label(root,bitmap="gray12")
# label = Label(root,bitmap="gray25")
# label = Label(root,bitmap="gray50")
# label = Label(root,bitmap="gray75")
label.pack() # Packaging and positioning components
root.mainloop()
Output: