[Link] Copyright © tutorialspoint.
com
Advertisements
This attribute to displays a bitmap. There are following type of bitmaps available −
• "error"
• "gray75"
• "gray50"
• "gray25"
• "gray12"
• "hourglass"
• "info"
• "questhead"
• "question"
• "warning"
Example
# !/usr/bin/python3
from tkinter import *
import tkinter
top = Tk()
B1 = Button(top, text = "error", relief = RAISED,\ bitmap = "error")
B2 = Button(t vcop, text = "hourglass", relief = RAISED,\ bitmap = "hourglass")
B3 = Button(top, text = "info", relief = RAISED,\ bitmap = "info")
B4 = Button(top, text = "question", relief = RAISED,\ bitmap = "question")
B5 = Button(top, text = "warning", relief = RAISED,\ bitmap' = "warning")
[Link]()
[Link]()
[Link]()
[Link]()
[Link]()
[Link]()
Result
When the above code is executed, it produces the following result −