Hmm..If
I add a few debugging lines like that into my code, I get this:
Starting program In class Hangman done defs in class eWordEntryBox defined Exception in Tkinter callback Traceback (most recent call last): File "C:\Python31\lib\tkinter\__init__.py", line 1399, in __call__ return self.func(*args) File "C:/Users/Corey/Desktop/HangmanApp.py", line 48, in getLetter self.guess = eWordEntryBox.get() NameError: global name 'eWordEntryBox' is not defined I have the line "eWordEntryBox" right after the definition. Emile van Sebille wrote: The difference is in understanding what's executed and what's deferred. |
_______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor