Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to clear the entry in a text entry box

Status
Not open for further replies.

edwong

Programmer
Mar 26, 2003
30
US
Hi,
I created a text entry box in the interface i am working on. But I don't know how to clear the previous entry after the user press enter or the execute button.
Any ideas?
 
entry widget:

pack [entry .e]
.e insert end "some text"
after 1000
.e delete 0 end

text widget:
pack [text .t]
.t insert end "some text\n"
after 1000
.t delete 1.0 end

HTH

ulis
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top