This attribute to displays a bitmap. There are following type of bitmaps available −
from tkinter import * import tkinter top = Tk() B1 = Button(top, text ="error", relief=RAISED,\ bitmap="error") B2 = Button(top, 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()
When the above code is executed, it produces the following result −
python_gui_programming.htm
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4