Newb Tkinter Question: Object has no attribute 'tk'

Simon Forman rogue_pedro at yahoo.com
Fri Jun 30 19:26:39 EDT 2006


python programming newb wrote:
> Hi all, first post.
>
> I'm new to python and tkinter.  I'm trying to write a program that
> opens the root window with a button that then opens a toplevel window
> that then has it's own widgets.  I can get the new toplevel window to
> open but none of the widgets appear. The console gives me:
>
> AttributeError: 'NewWindow' object has no attribute 'tk'
>
> Here's my code:


Please post the entire traceback, not just the error message, thanks.

~Simon




More information about the Python-list mailing list