By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
439,931 Members | 2,015 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 439,931 IT Pros & Developers. It's quick & easy.

Need help installing Tkinter/tkdnd

P: n/a
los
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

Nov 14 '06 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.