What am I doing wrong in this simple tkinter example?

Chris Angelico rosuav at gmail.com
Sat Mar 16 16:23:07 CET 2013


On Sun, Mar 17, 2013 at 2:16 AM, Yves S. Garret
<yoursurrogategod at gmail.com> wrote:
> In the example that I have posted from the book it works just fine.

Yep, I just checked the book's version again and the difference is
clear. Check out the two lines I quoted in my previous post, and look
at the corresponding two lines in the book's version. You should see
the difference. :)

By the way, I like the choice of secret. It lends itself well to a
discussion of recursion - how do you live to 99? Live to 98, then be
careful. Etcetera. You need just one special case: How do you live to
1? Be born, then be careful. And there you have it, a perfect problem
for defining recursion vs iteration, as both can do the job!

ChrisA



More information about the Python-list mailing list