DataRecordForm creation

First, let's fix our DataRecordForm instantiation in Application.__init__():

        # The data record form
        self.recordform = v.DataRecordForm(
            self, self.data_model.fields, self.settings,             self.callbacks)

Previously, we'd pulled the fields argument from the static class property of CSVModel. We need to pull it from our data model instance instead, since the instance is setting up some values.

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.