[Tutor] Display in a text field using tkinter
alan.gauld at btinternet.com
Sat Apr 3 14:08:20 CEST 2010
"doyin adegoke" <doyennehoney at yahoo.com> wrote
> I made the changes and the error was still there
> "print self.favorite.get()" prints the name of the selected database on
> the console
The problem is that you are still calling grid when you create the widget.
grid() returns None so all your self.xxx attributes are set to None.
You must call grid after you create the widget.
Author of the Learn to Program web site
More information about the Tutor