- NAME
- ttk_menubutton - Widget that pops down a menu when pressed
- SYNOPSIS
- ttk::menubutton pathName ?options?
- DESCRIPTION
- STANDARD OPTIONS
- -class
- -compound, compound, Compound
- -cursor, cursor, Cursor
- -image, image, Image
- -state
- -style
- -takefocus, takeFocus, TakeFocus
- -text, text, Text
- -textvariable, textVariable, Variable
- -underline, underline, Underline
- -width
- WIDGET-SPECIFIC OPTIONS
- -direction, direction, Direction
- -menu, menu, Menu
- WIDGET COMMAND
- SEE ALSO
- KEYWORDS
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, compound, Compound
- -cursor, cursor, Cursor
- -image, image, Image
- -state
- -style
- -takefocus, takeFocus, TakeFocus
- -text, text, Text
- -textvariable, textVariable, Variable
- -underline, underline, Underline
- -width
- Command-Line Name: -direction
- Database Name: direction
- Database Class: 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.
- Command-Line Name: -menu
- Database Name: menu
- Database Class: 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, instate, and state
methods. No other widget methods are used.
ttk_widget, menu, menubutton
widget, button, menu
Copyright © 1995-1997 Roger E. Critchlow Jr.
Copyright © 2004 Joe English