package require twoMenu
?1.0?
two_menu
pathname ?options?
two_menu
is just a wrapper
around the Tk menu
command. It has better support for setting accelerator
keys, underlinig and tooltips.
two_menu
and menu
is only some additional entry options:
-alias
string- Set string as an alias to the entry which can be used instead of the index.
-tip
string- Adds tooltip string to this widget. Practically the same as -info, as no tooltips are displayed for menu entries, and the tip string is used if there is no info for two_ttInfo.
-info
string- Adds info text for setting two_ttInfo.
-xaccel
key- Adds
Control-key
binding to all and displaysCtrl+key
as accelerator in the menu.-label
string- Like in Tk menu widget, but the first
&
character will make the following character underlined (-underline option), except if the following character is another & symbol.-text
string- Just an alias to
-label
in order to be more consistent with normal widgets.