ttk::menubutton(3tk) | Tk Themed Widget | ttk::menubutton(3tk) |
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.
Command-Line Name: -direction Database Name: direction Database Class: Direction
Command-Line Name: -menu Database Name: menu Database Class: Menu
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.
The class name for a ttk::menubutton is TMenubutton.
Dynamic states: active, disabled, readonly.
TMenubutton styling options configurable with ttk::style are:
-arrowsize amount
-background color
-compound compound
-foreground color
-font font
-padding padding
-relief relief
-width amount
Some options are only available for specific themes.
See the ttk::style manual page for information on how to configure ttk styles.
widget, button, menu
8.5 | Tk |