Page 327 -
P. 327
programming toolbox
Your Programming Toolbox
You’ve got Chapter 8 under your belt.
CHAPTER 8 in this chapter:
Let’s look back at what you’ve learned
Programming T ools
* MVC - Model, View, Controller.
* Think of widgets as views. Python T ools
* Use data models to keep your data
separate from your views.
* Radio buttons work together if * T ext() - handle multi-line text in
* Entry() - used by tkinter to enter
small amounts of text - one line.
they share a model.
* Object API - the application tkinter.
programmer interface provided by an * Entry fields are indexed from 0.
object. * T ext fields are indexed with a “row.
* Populate a GUI widget dynamically column" string, starting with “1.0".
and on-demand. views informed about data changes.
* The tkinter controller - keeps the
* StringVar() - a tkinter stringed
if by magic.”
variable that can update the GUI “as
* RadioButton() - useful for when
you want to select one item from a
group in tkinter.
* OptionMenu() - useful for when
you want to select one item from a
LARGE group of items in tkinter.
292 Chapter 8