Forgive me if this question has been asked 100 times. I tried reading through past archives, honest I did.

I'm having some trouble with Python and TK, but I'm not sure how to proceed. This is what I did:

I'm using the version of Python that came with OSX -- version 2.3. I also downloaded TclTkAquaBl - 8.4.9.0 and ran the installer. Then I fired up Python, and typed:

from Tkinter import *

and then

root = Tk()

Which were commands I got from the Python book I'm working out of. This is what happened:

from Tkinter import *
Traceback (most recent call last):
 File "<stdin>", line 1, in ?
 File "/sw/lib/python2.3/lib-tk/Tkinter.py", line 3, in ?
   Tkinter provides classes which allow the display, positioning and
NameError: name 'Tk' is not defined
root = Tk()
Traceback (most recent call last):
 File "<stdin>", line 1, in ?
NameError: name 'Tk' is not defined


It seems to me it's an improper path configuration, but for the life of me I can't figure out how to get it straight. Any help would be much appreciated.


Dave.


_______________________________________________ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig

Reply via email to