what is to comelet' put tkinter to work on our database of people gui shelve interface for our database applicationthe first thing we probably want is gui for viewing the stored data-- form with field names and values--and way to fetch records by key it would also be useful to be able to update record with new field values given its key and to add new records from scratch by filling out the form to keep this simplewe'll use single gui for all of these tasks figure - shows the window we are going to code as it looks in windows the record for the key sue has been fetched and displayed (our shelve is as we last left it againthis record is really an instance of our class in our shelve filebut the user doesn' need to care figure - peoplegui py main display/input window coding the gui alsoto keep this simplewe'll assume that all records in the database have the same sets of fields it would be minor extension to generalize this for any set of fields (and come up with general form gui constructor tool in the process)but we'll defer such evolutions to later in this book example - implements the gui shown in figure - example - pp \preview\peoplegui py ""implement gui for viewing and updating class instances stored in shelvethe shelve lives on the machine this script runs onas or more local files""from tkinter import from tkinter messagebox import showerror import shelve shelvename 'class-shelvefieldnames ('name''age''job''pay' sneak preview