Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re: Tk - text widget - delete textby Shendal (Hermit) |
on Oct 03, 2000 at 21:35 UTC ( [id://35149]=note: print w/replies, xml ) | Need Help?? |
Use the delete method. For example:
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. This and other Tk methods are documented in the Tk perldocs. Cheers, Shendal Update: In my haste, I made a mistake. It has been corrected above. $txtWidget->delete(0,'end') should be $txtWidget->delete('0.0','end').
In Section
Seekers of Perl Wisdom
|
|