Mysterious "Attribute Errors" when GUI Programming

Robert Kern rkern at ucsd.edu
Wed Mar 9 08:42:49 CET 2005


Coral Snake wrote:

> Thank you all. It appears that I was right in my original opinion of
> source code from the Python Developer's Handbook by Andre Lessa and the
> PyGTK Tutorial. That is where these source codes came from.
> 
> The code in Question came from the Chapter Getting Started in the PyGTK
> Tutorial 

Note that the code you wrote was incorrectly indented. The original 
code[1] was *correctly* indented and ought to work.

> and from Chapter 15, page 579 in the Python Developer's
> Handbook.

I *have* heard that this book contains many errors.

[1] 
http://www.moeraki.com/pygtktutorial/pygtk2tutorial/ch-GettingStarted.html#sec-HelloWorld

-- 
Robert Kern
rkern at ucsd.edu

"In the fields of hell where the grass grows high
  Are the graves of dreams allowed to die."
   -- Richard Harter



More information about the Python-list mailing list