8.11. Showing an Index
By using the see method, you can cause the text widget to show the portion of it that contains index:
$text->see(index);
The text within the widget will be scrolled up or down as a result of this call. If the index is already visible, nothing happens.
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.