ent insert(end'some text'delete from start to end add at end of empty text either wayif you don' delete the text firstnew text that is inserted is simply added if you want to see howtry changing the fetch function in example - to look like this--an "xis added at the beginning and end of the input field on each button or key pressdef fetch()print('input ="% "ent get()ent insert(end' 'ent insert( ' 'get text to clearent delete(' 'endnew text simply added in later exampleswe'll also see the entry widget' state='disabledoptionwhich makes it read onlyas well as its show='*optionwhich makes it display each character as (useful for password-type inputstry this out on your own by changing and running this script for quick look entry supports other options we'll skip heretoosee later examples and other resources for additional details laying out input forms as mentionedentry widgets are often used to get field values in form-like displays we're going to create such displays often in this bookbut to show you how this works in simpler termsexample - combines labelsentriesand frames to achieve the multiple-input display captured in figure - example - pp \gui\tour\entry py ""use entry widgets directly lay out by rows with fixed-width labelsthis and grid are best for forms ""from tkinter import from quitter import quitter fields 'name''job''paydef fetch(entries)for entry in entriesprint('input ="% "entry get()def makeform(rootfields)entries [for field in fieldsrow frame(rootlab label(rowwidth= text=fieldent entry(rowrow pack(side=topfill=xlab pack(side=leftent pack(side=rightexpand=yesfill=xentries append(entreturn entries get text make new row add labelentry pack row on top grow horizontal message and entry