Moving to a Specific Index

To cause the Listbox to show a specific item, 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, see Section 7.19 later in this chapter.

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.