using grids and function calls the first user-interface script (example - uses the pack geometry manager and row frames with fixed-width labels to lay out the input form and runs the getfile client as standalone program as we learned in it' arguably just as easy to use the grid manager for layout and to import and call the client-side logic function instead of running program the script in example - shows how example - pp \internet\sockets\getfilegui- py ""samebut with grids and import+callnot packs and cmdlinedirect function calls are usually faster than running files""import getfile from tkinter import from tkinter messagebox import showinfo def onsubmit()getfile client(content['server'get()int(content['port'get())content['file'get()showinfo('getfilegui- ''download complete'box tk(labels ['server''port''file'rownum content {for label in labelslabel(boxtext=labelgrid(column= row=rownumentry entry(boxentry grid(column= row=rownumsticky= +wcontent[labelentry rownum + box columnconfigure( weight= make expandable simple python file server