Testing our program

At this point, you should be able to run the application and load in a sample CSV file as shown in the following screenshot:

Make sure to try opening a record, editing and saving it, as well as inserting new records and opening different files.

You should also test the following error conditions:

  • Try opening a file that isn't a CSV file, or a CSV with incorrect fields. What happens?
  • Open a valid CSV file, select a record for editing, then, before clicking Save, select a different or empty file. What happens?
  • Open two copies of the program and point them to the saved CSV file. Try alternating edit or update actions between ...

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.