Re: Newb Tkinter Question: Object has no attribute 'tk'



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

.