Errata

Note that items marked ** are fixed in the second printing.


** Special thanks xvii:

Appendix B uses the main pages for Tk

should be:

Appendix B uses the man pages for Tk


** Page 6 last line:

[1, 2, 3, 4, 10, 9]

should be:

[1, 2, 4, 10, 9]


Page 8 last 2 lines:

keys = dict.keys().sort()
for key in keys:

should be:

keys = dict.keys()
keys.sort()
for key in keys:


** Page 19 calc1.py:

Entry(self.master, relief=SUNKEN,
textvariable=variable).pack(side=TOP, expand=YES,

should be:

Entry(self, relief=SUNKEN,
textvariable=display).pack(side=TOP, expand=YES,

** Also:

lambda w=display, s=' %s '%c: w.set(w.get()+s))

should be:

lambda w=display, s=' %s '%char: w.set(w.get()+s))


** Page 27 figure 3.6:

Caption should be:

"Using the math module"


** Page 37 Radiobutton code example:

First two lines should not be indented.


** Page 70 ScrolledListbox code example:

Not an error, but possibly confusing:

Lines beginning dblclickcommand and usehullsize are indented with an extra space.


** Page 157 AppShell.py code example:

Method initializeTk is repeated (harmlessly) on page 158.


** Page 333:

"I meant to use xs and xy as the scaled coordinates,"

should be:

"I meant to use xs and ys as the scaled coordinates,"


** Page 413 Scale widget-specific options:

-from number from=number

should be:

-from number from_=number


Page 460 Canvas item references are corrupted and should read:

create_arc(*)
See "Canvas Arc" on page 468.

create_bitmap(*)
See "Canvas Bitmap" on page 470.

create_image(*)
See "Canvas Image" on page 471.

create_line(*)
See "Canvas Line" on page 472.

create_oval(*)
See "Canvas Oval" on page 474.

create_polygon(*)
See "Canvas Polygon" on page 476.

create_rectangle(*)
See "Canvas Rectangle" on page 477.

create_text(*)
See "Canvas Text" on page 478.

create_window(*)
See "Canvas Window" on page 480.


** Page 465 Canvas scale method:

scale(tagOrId, xOrigin, yOrigin, xSc)

should be:

scale(tagOrId, xOrigin, yOrigin, xScale, yScale)


** Page 523 Options specific to Scale:

from

should be:

from_


Examples:

Several small errors have been discovered in some of the examples, generally as a result in changes to the final chapter numbers. A new version of Grayson1.zip is available from the Source Code section.