
7. The Menu Widget 23
$menu->separator(?-option => value ... ?);
Adds new separator entry to bottom of menu. See below
for options.
$menu->type(index);
Returns type of menu entry at index.
$menu->unpost;
Unmaps window so it is no longer displayed.
$menu->ypostion(index);
Returns the y-coordinate within the menu window of the
topmost pixel in the entry specified by index.
Menu Entry Options
The following options work for all cascade, checkbutton,
command, and radiobutton entries unless otherwise
specified.
-accelerator => string
Specifies string to display at right side of menu entry.
-columnbreak => value
When value is 1, entry appears at top of a new column in
menu.
-command => callback
callback to execute when the entry is invoked.
-hidemargin => value
When value is 1, the standard margins are not drawn
around entry.
-indicatoron => boolean
Whether indicator for checkbutton or radiobutton entry
should be displayed.
-activebackground -foreground
-activeforeground -image
-background -state
-bitmap -underline
-font