Ttk Menubutton widget displays a textual label and/or image, and displays a menu when pressed.
| 751 | |
| 752 | |
| 753 | class Menubutton(Widget): |
| 754 | """Ttk Menubutton widget displays a textual label and/or image, and |
| 755 | displays a menu when pressed.""" |
| 756 | |
| 757 | def __init__(self, master=None, **kw): |
| 758 | """Construct a Ttk Menubutton with parent master. |
| 759 | |
| 760 | STANDARD OPTIONS |
| 761 | |
| 762 | class, compound, cursor, image, state, style, takefocus, |
| 763 | text, textvariable, underline, width |
| 764 | |
| 765 | WIDGET-SPECIFIC OPTIONS |
| 766 | |
| 767 | direction, menu |
| 768 | """ |
| 769 | Widget.__init__(self, master, "ttk::menubutton", kw) |
| 770 | |
| 771 | |
| 772 | class Notebook(Widget): |