Automating input

Preventing users from entering bad data is one way to help users enter better data; another approach is to automate. Using our understanding of how the forms are likely to be filled out, we can insert values that are very likely to be correct for certain fields.

Remember from Chapter 2, Designing GUI Applications with Tkinter, that the forms are nearly always recorded the same day that they're filled out, and that they're filled out one at a time from Plot 1 to Plot 20 in order. Also remember that the Date, Lab, and Technician values remain the same for each form which is filled in. Let's automate this for our users.

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.