root tk(ents makeform(rootfieldsroot bind(''(lambda eventfetch(ents))button(roottext='fetch'command(lambdafetch(ents))pack(side=leftquitter(rootpack(side=rightroot mainloop(figure - entry (and entry form displays the input fields here are just simple entry widgets the script builds an explicit list of these widgets to be used to fetch their values later every time you press this window' fetch buttonit grabs the current values in all the input fields and prints them to the standard output streamc:\pp \gui\tourpython entry py input ="bobinput ="technical writerinput ="jackyou get the same field dump if you press the enter key anytime this window has the focus on your screenthis event has been bound to the whole root window this timenot to single input field most of the art in form layout has to do with arranging widgets in hierarchy this script builds each label/entry row as new frame attached to the window' current topfixed-width labels are attached to the left of their rowand entries to the right because each row is distinct frameits contents are insulated from other packing going on in this window the script also arranges for just the entry fields to grow vertically on resizeas in figure - going modal again later on this tourwe'll see how to make similar form layouts with the grid geometry managerwhere we arrange by row and column numbers instead of frames but now that we have handle on form layoutlet' see how to apply the modal dialog techniques we met earlier to more complex input display tkinter tourpart