A number of widgets require``index'' parameters to be passed. These are used to point at a specific place in a Text widget, or to particular characters in an Entry widget, or to particular menu items in a Menu widget.
Some options and methods for menus manipulate specific menu entries. Anytime a menu index is needed for an option or a parameter, you may pass in:
'active'
, which refers to the menu position that is
currently under the cursor;
"last"
which refers to the last menu
item;
@
, as in @6
, where the integer is
interpreted as a y pixel coordinate in the menu's coordinate system;
"none"
, which indicates no menu entry at all, most
often used with menu.activate() to deactivate all entries, and
finally,
last
, active
, or
none
may be interpreted as the above literals, instead.
See About this document... for information on suggesting changes.