Object-Oriented Programming in Python

Errata for Chapter 3

This errata is for the first printing (published 29 October 2007).


Page 94, Figure 3.4
The setDepth method requires a depth as a parameter. It should appear as setDepth(depth). This error also exists on pages 22, 24, and 319.

Page 110, second line of text
Replaceposition in properly with position it properly

Page 115, Widget code fragment
For better looking geometry, change the second line to read
nameInput = TextBox(150, 30, Point(100,30))

Page 122, Exercise 3.5
Actually, the circle does appear in given code. We had intended for the third line of the displayed code to have read sq.moveTo(50,50).