Finishing and testing

At this point, you should be able to run the application, enter data, and save it to the CSV file. Try it out! You should see something similar to the following screenshot:

Perhaps the first thing you notice is that clicking Save has no noticeable effect. The form stays populated, and there's no indication that anything was done. We should fix this.

We'll perform the following two things to help here:

  1. First, put a notification in our status bar that the record was saved and how many records have been saved this session. For the first part, add the following code line to the end of the Application constructor, as follows: ...

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.