Valone, Toren W. wrote:

Ok, new to Python and Tkinter.. Following along examples in book, got to
dialog windows example coded this

# dialog1.py

from Tkinter import *

class Mydialog:
^^^^^^^^

[...]

d = MyDialog(root)
^^^^^^^^

root.wait_window(d.top)


When I run it IDLE

gives me this

Traceback (most recent call last):
  File "C:/Python24/dialog1.py", line 29, in -toplevel-
    d = MyDialog(root)
NameError: name 'MyDialog' is not defined

I have a feeling this is something very simple, but I cannot figure it out.
Help!

Python is case-sensitive!

regards
 Steve
--
Meet the Python developers and your c.l.py favorites March 23-25
Come to PyCon DC 2005                      http://www.pycon.org/
Steve Holden                           http://www.holdenweb.com/
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to