Skip to Main Content
Learning Perl/Tk
book

Learning Perl/Tk

by Nancy Walsh
January 1999
Beginner content levelBeginner
373 pages
9h 43m
English
O'Reilly Media, Inc.
Content preview from Learning Perl/Tk

8.7. Deleting Text

To remove text from the text widget, you can use the delete method:

$text->delete(index1 [ , index2 ]);

The first index argument is required; the second is optional. If both are specified, then the first index must be less than or equal to the second. All the characters from index1 to (but not including) index2 are removed from the text widget. If you want to delete everything from the text widget, you can use $text->delete("1.0", 'end').

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Mastering Perl/Tk

Mastering Perl/Tk

Stephen Lidie, Nancy Walsh

Publisher Resources

ISBN: 1565923146Supplemental ContentCatalog PageErrata