"Fossies" - the Fresh Open Source Software Archive

Member "SAOImageDS9/tk8.6/doc/ttk_menubutton.n" (13 Nov 2019, 2299 Bytes) of package /linux/misc/ds9.8.1.tar.gz:


Caution: As a special service "Fossies" has tried to format the requested manual source page into HTML format but links to other man pages may be missing or even erroneous. Alternatively you can here view or download the uninterpreted manual source code. A member file download can also be achieved by clicking within a package contents listing on the according byte size field.

ttk::menubutton

NAME
SYNOPSIS
DESCRIPTION
WIDGET-SPECIFIC OPTIONS
WIDGET COMMAND
STANDARD STYLES
STYLING OPTIONS
SEE ALSO
KEYWORDS

NAME

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

SYNOPSIS

ttk::menubutton pathName ?options?

DESCRIPTION

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

WIDGET-SPECIFIC OPTIONS

[−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] 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.

STYLING OPTIONS

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
−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.

SEE ALSO

ttk::widget(n), menu(n), menubutton(n)

KEYWORDS

widget, button, menu