Implementing the application

To start our application script, create a folder called ABQ data entry and a file inside it called data_entry_app.py.

We'll start with the following boilerplate code we learned in Chapter 1, Introduction to Tkinter:

import tkinter as tk
from tkinter import ttk

# Start coding here


class Application(tk.Tk):
    """Application root window"""

if __name__ == "__main__":
    app = Application()
    app.mainloop()

Running this script should give you a blank Tk window.

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.