Skip to Content
Python GUI Programming with Tkinter
book

Python GUI Programming with Tkinter

by Alan D. Moore
May 2018
Beginner to intermediate content levelBeginner to intermediate
452 pages
11h 26m
English
Packt Publishing
Content preview from Python GUI Programming with Tkinter

Using widget properties on our form

One request you received from the data entry staff is to increase the visual separation between the sections on the data entry form. Our LabelFrame widgets are simple Tkinter widgets (not Ttk), so we can accomplish this fairly simply by giving the sections colored backgrounds.

After some thought and discussion, you decide to color-code the sections as follows:

  • Record information will use khaki, suggesting the classic manila folders used for paper records
  • Environment information will use lightblue, symbolic of water and air
  • Plant information will have a lightgreen background, symbolic of plants
  • Notes are distinctive enough, so it will remain the same

Open up views.py and edit the LabelFrame calls in

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Python GUI Programming with Tkinter - Second Edition

Python GUI Programming with Tkinter - Second Edition

Alan D. Moore

Publisher Resources

ISBN: 9781788835886Supplemental Content