Translating Indexes
The index
method
translates an index specification (such as
"active"
) into the numerical equivalent. For
instance, if the Listbox contains 12 items, $index =
$lb->index("end")
sets the variable
$index
to 11. (Remember the first item in a
Listbox is at index 0.)
Get Mastering Perl/Tk now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.