Tile menubutton Table of Contents

______________________________________________________________________________

Name

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

Synopsis

ttk::menubutton pathName ?options?
_________________________________________________________________

Description

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

Standard Options

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

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

Options

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 menubut-ton. To be on the safe side, the menu ought to be a direct child of the menubutton.

Widget Command

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

See Also

widget(n) , keynav(n) , menu(n)

Keywords

widget, button, menu

tile 0.2 menubutton(n)


Table of Contents