On Sun, Jun 2, 2013 at 10:50 PM, Jim Mooney <cybervigila...@gmail.com> wrote: > In regard to that, I just tried importing Tkinter, according to a > guide I'm using. Except the guide is using tkinter and not Tkinter, > but Py27 has Tkinter. Lord knows why they bothered to change one lousy > letter - it would be less confusing to have given it an entirely new > name like notyourmothersKinter ;') Also, lib-tk didn't have __init__ > for some reason so when I changed to Big T for Py27 it still didn't > import. I put __init__ in, and still no luck, so I put lib-tk into > PYTHONPATH and it worked, but then I got ambitious with PYTHONPATH and > caused a bigger problem (below).
The base sys.path configured in the registry already has lib-tk: C:\>reg query hklm\software\python\pythoncore\2.7\pythonpath HKEY_LOCAL_MACHINE\software\python\pythoncore\2.7\pythonpath (Default) REG_SZ C:\Python27\Lib;C:\Python27\DLLs;C:\Python27\Lib\lib-tk In 2.x, lib-tk needs to be on sys.path because it isn't a package. In 3.3, it was reorganized into the tkinter package. A lot more changed than simply Tkinter => tkinter. See PEP 3108 for a mapping between the two: http://www.python.org/dev/peps/pep-3108/#tkinter-package _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor