The abq_data_entry.py file

Just as before, abq_data_entry.py is the main file that gets executed to start the program. Unlike before, though, it won't contain the bulk of our program. In fact, this file should be as minimal as possible.

Open the file and enter the following code:

from abq_data_entry.application import Application

app = Application()
app.mainloop()

Save and close the file. The only purpose of this file is to import our Application class, make an instance of it, and run it. The remainder of the work will happen inside the abq_data_entry package. We haven't created that yet, so this file won't run just yet; before we do, let's deal with our documentation.

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.