Need help installing Tkinter/tkdnd

los carlos80 at gmail.com
Tue Nov 14 02:22:59 EST 2006


Hi I am trying to install the tk drag and drop to python 2.4.

I installed python to c:\python24

I downloaded tkdnd-1.0a2.tar.gz, and TkinterDnD-0.4.zip.

After I unzipped tkdnd-1.0a2.tar.gz, I copied the lib directory to
c:\python24\tcl, now in C:\Python24\tcl\lib\tkdnd I have;
libtkdnd.dll pkgIndex.tcl tkDND_Utils.tcl.

I then unzipped TkinterDnD-0.4.zip and copied the TkinterDnD folder to
C:\Python24\Lib\site-packages. In this folder I have;
TkinterDnD.py TkinterDnD.pyc __init__.py __init__.pyc

now when I go to python I get this error:
>>> from TkinterDnD import *
>>> root = TkinterDnD.Tk()
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "C:\Python24\Lib\site-packages\TkinterDnD\TkinterDnD.py", line
352, in __init__
self.TkdndVersion = _require(self)
File "C:\Python24\Lib\site-packages\TkinterDnD\TkinterDnD.py", line
333, in _require
tkdndver = tkroot.tk.call('package', 'require', 'tkdnd')
_tkinter.TclError: can't find package tkdnd

Can someone explain what's going on? Thanks




More information about the Python-list mailing list