7.11. Moving to a Specific Index

To cause the listbox to show a specific item, you can use the see method.

$lb->see(index);

Given an index, see will cause the listbox to page up or down to show the item at that index. For an example of using see, look at the Listbox Example later in this chapter.

Get Learning 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.