in reply to Delete the text widget contents using perl_tk
You can pass an empty string to 'Contents' method.
$text_window->Contents('');Query or change the entire contents of the text widget. If no arguments are given, the entire contents of the text widget are returned. If any arguments are given, the entire contents of the text widget are deleted and replaced by the argument list
|
|---|