ttk_menubutton(n)

ttk_menubuttonn

Widget that pops down a menu when pressed

Usage

ttk::menubutton pathName ?options?

Overview

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

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, identify, instate, and state methods. No other widget methods are used.

Standard styles

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

Keywords

widget, button, menu

Releases

106 releases since Mac OS X 10.6; the text changed 1 time.

  1. 10.6–10.6.8
  2. 10.7–26.5

From tcl 152 in macOS 26.5. Parsed by carta from the page's man source.