note
Shendal
Use the delete method. For example:
<CODE>
$txtWidget = $Window->Scrolled("Text");
$txtWidget->insert('end',"blah blah blah blah");
$txtWidget->delete('0.0','end');
</CODE>
This will delete all the text in your text box. If you'd like to delete just a section of it, you'll want to specify a start and end index.<br><br>
This and other Tk methods are documented in the [cpan://Tk] perldocs.<br>
<br>
Cheers,<br>
<a href="/index.pl?node_id=13044">Shendal</a><br><br>
<B>Update:</B> In my haste, I made a mistake. It has been corrected above. $txtWidget->delete(0,'end') should be $txtWidget->delete('0.0','end').<br>
35130
35130