Laying out the form

So far, we know that we have 17 inputs, which are grouped as follows:

  • Six fields under Record information
  • Four fields under Environmental data
  • Six fields under Plant data
  • One large Notes field

We want to group the preceding inputs using LabelFrame.

Notice that two of the first three sections have widgets in multiples of three. That suggests that we could arrange them in a grid with three items across. How should we order the fields within each group?

Ordering of fields seems like a trivial item, but for the user it can make a significant difference in usability. Users who have to jump around a form haphazardly to match their workflow are more likely to make mistakes.

As you learned, the data is entered from paper forms ...

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.