Compound Button Example
The new compound options for buttons, labels and menu's means we can now display both the text and image or bitmap at the same time.
An example of a compound button:
1 from Tkinter import *
2
3 root=Tk()
4 for comp in ("bottom", "center", "left", "none", "right", "top"):
5 b = Button(root, compound=comp, text=comp, bitmap="error")
6 b.pack()
7 root.mainloop()
8