ttk::menubutton(n) Tk Themed Widget ttk::menubutton(n)


ttk::menubutton - Widget that pops down a menu when pressed

ttk::menubutton pathName ?options?


A ttk::menubutton widget displays a textual label and/or image, and displays a menu when pressed.

-class	-compound	-cursor
-image	-state	-style
-takefocus	-text	-textvariable
-underline	-width

See the ttk_widget manual entry for details on the standard options.

[-direction direction] Specifies where the menu is to be popped up relative to the menubutton. One of: above, below, left, right, or flush. The default is below. flush pops the menu up directly over the menubutton. [-menu menu] Specifies the path name of the menu associated with the menubutton. To be on the safe side, the menu ought to be a direct child of the menubutton.

Menubutton widgets support the standard cget, configure, identify, instate, and state methods. No other widget methods are used.

Ttk::menubutton widgets support the Toolbutton style in all standard themes, which is useful for creating widgets for toolbars.

ttk::widget(n), menu(n), menubutton(n)

widget, button, menu

8.5 Tk