[Tkinter-discuss] Tkinter DnD - Drag and Drop

Michael Foord mike at pcblokes.com
Thu Jul 13 23:25:40 CEST 2006


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,

Fuzzyman
http://www.voidspace.org.uk/python/index.shtml



More information about the Tkinter-discuss mailing list