What am I doing wrong in this simple tkinter example?
msirenef at lightbird.net
Sat Mar 16 16:10:07 CET 2013
On 03/16/2013 10:53 AM, Yves S. Garret wrote:
> Hi all, I'm well into "Python Programming for the Absolute Beginner" in order to
> become more acquainted with the language. However, when I got to page
> did my first example:
> And this is the error that I'm getting:
> This is the code that came with the book:
> What I don't understand is, why am I getting that error? I've done
> and the code looks for the most part the same. What am I doing wrong
> put the application together?
The error is that indexes are supposed to be integers, instead you have
a text string:
"That's not the correct password, so I can't s hare the secret with you."
Lark's Tongue Guide to Python: http://lightbird.net/larks/
The existence of any evil anywhere at any time absolutely ruins a total
optimism. George Santayana
More information about the Python-list