Hey tutors. Two separate submissions one day, guess I'm getting busy ;)
Anyway, I'm re-writing my hangman program to make use of my new-found
understanding of OOP, and using a GUI this time around. I decided on
coding with Tkinter, to get my feet wet with GUI stuff.
Here is the traceback:
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 45, in getLetter
self.guess = eWordEntryBox.get()
NameError: global name 'eWordEntryBox' is not defined
However, not even 30 lines down, (29, to be exact) there is this line:
eWordEntryBox = tk.Entry(fWordEntry)
Not understanding what is happening here. Same happens when I tack self
at the beginning of it, except it says global name self is not defined.
Thanks!
~Corey Richardson
_______________________________________________
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor