0% found this document useful (0 votes)
43 views1 page

Tkinter Bitmaps

The document discusses different types of bitmaps that can be displayed in Tkinter including error, gray75, gray50, gray25, gray12, hourglass, info, questhead, question, and warning. An example Python code demonstrates creating buttons with different bitmap types.

Uploaded by

sri
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
43 views1 page

Tkinter Bitmaps

The document discusses different types of bitmaps that can be displayed in Tkinter including error, gray75, gray50, gray25, gray12, hourglass, info, questhead, question, and warning. An example Python code demonstrates creating buttons with different bitmap types.

Uploaded by

sri
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

https://www.tutorialspoint.com/python3/tk_bitmaps.htm 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")

B1.pack()
B2.pack()
B3.pack()
B4.pack()
B5.pack()
top.mainloop()

Result
When the above code is executed, it produces the following result −

You might also like