[Tkinter-discuss] Tkinter DnD - Drag and Drop

Michael Lange klappnase at web.de
Fri Jul 14 15:09:04 CEST 2006

On Thu, 13 Jul 2006 22:25:40 +0100
Michael Foord <mike at pcblokes.com> wrote:

> Hello all,
> There is a Tcl/Tk package called tkDnD with a Python wrapper called
> TkinterDnD, which allow drag and drop operations with a Tkinter GUI.
> http://sourceforge.net/projects/tkdnd
> http://www.8ung.at/klappnase/TkinterDnD/TkinterDnD.html
> This should allow you to create callbacks for files dropped onto Tkinter
> windows, something I am keen to do.
> It looks like the TkinterDnD package is designed to be used with the
> older version 1 of tkDnD. It also looks like this doesn't work with
> Python 2.4.
> I can get the tkDnD package (v1) installed into the Tcl package that
> comes with Python (for Windows XP SP2). The TkinterDnD demo runs, and
> icons appear when you drag files over the windows. However the callbacks
> don't happen.
> Does anyone have any success in getting any combination of these
> packages working with Python 2.4 and windows ?
> All the best,

Hi Michael,

I made the same observations. Maybe the problem is that the tkdnd binary is built against an
older version of Tcl/Tk. I currently don't have a windows box running, so I planned to wait
until the unix part of tkdnd2 is fully implemented before I start updating the TkinterDnD module.
The author of tkdnd wrote at
that tkdnd2 has a compatibility layer for tkdnd1-code,
so maybe you could try to use tkdnd2 and see how far you get (I have not tried this so far).


More information about the Tkinter-discuss mailing list