to avoid this problemwe can either be careful to fetch before destroyingor use tkinter variablesthe subject of the next section tkinter "variablesand form layout alternatives entry widgets (among otherssupport the notion of an associated variable--changing the associated variable changes the text displayed in the entryand changing the text in the entry changes the value of the variable these aren' normal python variable namesthough variables tied to widgets are instances of variable classes in the tkinter module library these classes are named stringvarintvardoublevarand boolean varyou pick one based on the context in which it is to be used for examplea string var class instance can be associated with an entry fieldas demonstrated in example - example - pp \gui\tour\entry py ""use stringvar variables lay out by columnsthis might not align horizontally everywhere (see entry ""from tkinter import from quitter import quitter fields 'name''job''paydef fetch(variables)for variable in variablesprint('input ="% "variable get() tkinter tourpart get from var