Cleaning up

Before coming out of application.py, make sure to remove the Save button code, since we've moved that piece of UI to the DataRecordForm.

Look for these lines in __init__() to remove them:

        self.savebutton = ttk.Button(self, text="Save",                                     command=self.on_save)
        self.savebutton.grid(sticky="e", row=2, padx=10)

You can also move the statusbar position up one row:

        self.statusbar.grid(sticky="we", row=2, padx=10)

Get Python GUI Programming with Tkinter now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.