---
name: "menubutton"
section: "3tcl"
platform: "linux"
package: "tk-tile"
version: "0.8.2-2.1"
release: "Debian 6.0 (Squeeze)"
platforms: ["linux"]
url: "https://new.carta.tech/menubutton"
---

# menubutton(3tcl)

Widget that pops down a menu when pressed

## 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. -class	-compound	-cursor	-image -state	-style	-takefocus	-text -textvariable	-underline	-width

## OPTIONS

\[**-direction** *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 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.

## 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)](/menu/n.md)

## KEYWORDS

widget, button, menu
