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 [EMAIL PROTECTED]
"In the fields of hell where the grass grows high Are the graves of dreams allowed to die." -- Richard Harter -- http://mail.python.org/mailman/listinfo/python-list